Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
940efdbd
Commit
940efdbd
authored
Sep 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export vlc_object_get_name
parent
ba7f2c28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
include/vlc_objects.h
include/vlc_objects.h
+2
-0
src/libvlc.h
src/libvlc.h
+0
-5
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/misc/objects.c
src/misc/objects.c
+8
-0
No files found.
include/vlc_objects.h
View file @
940efdbd
...
...
@@ -83,6 +83,8 @@ VLC_EXPORT( void *, __vlc_object_hold, ( vlc_object_t * ) );
VLC_EXPORT
(
void
,
__vlc_object_release
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
vlc_list_t
*
,
__vlc_list_children
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
vlc_list_release
,
(
vlc_list_t
*
)
);
VLC_EXPORT
(
const
char
*
,
vlc_object_get_name
,
(
const
vlc_object_t
*
)
)
LIBVLC_USED
;
#define vlc_object_get_name(o) vlc_object_get_name(VLC_OBJECT(o))
/*}@*/
...
...
src/libvlc.h
View file @
940efdbd
...
...
@@ -198,11 +198,6 @@ typedef struct vlc_object_internals_t
#define vlc_internals( obj ) (((vlc_object_internals_t*)(VLC_OBJECT(obj)))-1)
static
inline
const
char
*
vlc_object_get_name
(
const
vlc_object_t
*
o
)
{
return
vlc_internals
(
o
)
->
psz_name
;
}
typedef
struct
sap_handler_t
sap_handler_t
;
/**
...
...
src/libvlccore.sym
View file @
940efdbd
...
...
@@ -512,6 +512,7 @@ __vlc_object_hold
__vlc_object_kill
__vlc_object_release
__vlc_object_set_destructor
vlc_object_get_name
vlc_plugin_set
vlc_poll
vlc_rand_bytes
...
...
src/misc/objects.c
View file @
940efdbd
...
...
@@ -255,6 +255,14 @@ int vlc_object_set_name(vlc_object_t *obj, const char *name)
return
(
priv
->
psz_name
||
!
name
)
?
VLC_SUCCESS
:
VLC_ENOMEM
;
}
#undef vlc_object_get_name
const
char
*
vlc_object_get_name
(
const
vlc_object_t
*
obj
)
{
vlc_object_internals_t
*
priv
=
vlc_internals
(
obj
);
return
priv
->
psz_name
;
}
/**
****************************************************************************
* Destroy a vlc object (Internal)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment