VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_objects.h File Reference

Common VLC object definitions. More...

Include dependency graph for vlc_objects.h:

Go to the source code of this file.

Data Structures

struct  vlc_object_t
 VLC object common members. More...
 
struct  libvlc_int_t
 

Macros

#define VLC_OBJECT(x)
 Type-safe vlc_object_t cast.
 
#define vlc_object_delete(obj)   vlc_object_delete(VLC_OBJECT(obj))
 
#define vlc_object_parent(o)   vlc_object_parent(VLC_OBJECT(o))
 
#define vlc_object_logger(o)   vlc_object_logger(VLC_OBJECT(o))
 
#define vlc_object_get_name(obj)   var_GetString(obj, "module-name")
 Tries to get the name of module bound to an object.
 
#define vlc_object_create(a, b)   vlc_object_create( VLC_OBJECT(a), b )
 
#define vlc_object_find_name(a, b)    vlc_object_find_name( VLC_OBJECT(a),b)
 
#define vlc_object_instance(o)   vlc_object_instance(VLC_OBJECT(o))
 
#define vlc_object_release(o)   vlc_object_release(VLC_OBJECT(o))
 
#define vlc_obj_malloc(o, s)   vlc_obj_malloc(VLC_OBJECT(o), s)
 
#define vlc_obj_calloc(o, n, s)   vlc_obj_calloc(VLC_OBJECT(o), n, s)
 
#define vlc_obj_strdup(o, s)   vlc_obj_strdup(VLC_OBJECT(o), s)
 
#define vlc_obj_free(o, p)   vlc_obj_free(VLC_OBJECT(o), p)
 

Functions

void * vlc_object_create (vlc_object_t *parent, size_t i_size)
 Allocates and initializes a vlc object.
 
void vlc_object_delete (vlc_object_t *obj)
 Drops the strong reference to an object.
 
size_t vlc_list_children (vlc_object_t *, vlc_object_t **, size_t)
 
const char * vlc_object_typename (const vlc_object_t *obj)
 Returns the object type name.
 
vlc_object_tvlc_object_parent (vlc_object_t *obj)
 Gets the parent of an object.
 
static struct vlc_loggervlc_object_logger (vlc_object_t *obj)
 
struct vlc_tracervlc_object_get_tracer (vlc_object_t *obj)
 Get tracer of a vlc instance from an object.
 
static libvlc_int_tvlc_object_instance (vlc_object_t *obj)
 
vout_thread_tvout_Hold (vout_thread_t *vout)
 
void vout_Release (vout_thread_t *vout)
 
audio_output_taout_Hold (audio_output_t *aout)
 
void aout_Release (audio_output_t *aout)
 
static void * vlc_object_hold (vlc_object_t *o)
 
static void vlc_object_release (vlc_object_t *o)
 
void * vlc_obj_malloc (vlc_object_t *obj, size_t size)
 Allocates memory for a module.
 
void * vlc_obj_calloc (vlc_object_t *obj, size_t nmemb, size_t size)
 Allocates a zero-initialized table for a module.
 
char * vlc_obj_strdup (vlc_object_t *obj, const char *str)
 Duplicates a string for a module.
 
void vlc_obj_free (vlc_object_t *obj, void *ptr)
 Manually frees module memory.
 

Detailed Description

Common VLC object definitions.