Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

objects.c File Reference

#include <vlc/vlc.h>
#include <vlc/input.h>
#include "vlc_video.h"
#include "video_output.h"
#include "vlc_spu.h"
#include "audio_output.h"
#include "aout_internal.h"
#include "stream_output.h"
#include "vlc_playlist.h"
#include "vlc_interface.h"
#include "vlc_codec.h"
#include "vlc_filter.h"
#include "vlc_httpd.h"
#include "vlc_vlm.h"
#include "vlc_vod.h"
#include "vlc_tls.h"
#include "vlc_xml.h"
#include "vlc_osd.h"

Go to the source code of this file.

Functions

void * __vlc_object_create (vlc_object_t *p_this, int i_type)
void __vlc_object_destroy (vlc_object_t *p_this)
void * __vlc_object_get (vlc_object_t *p_this, int i_id)
void * __vlc_object_find (vlc_object_t *p_this, int i_type, int i_mode)
void __vlc_object_yield (vlc_object_t *p_this)
void __vlc_object_release (vlc_object_t *p_this)
void __vlc_object_attach (vlc_object_t *p_this, vlc_object_t *p_parent)
void __vlc_object_detach (vlc_object_t *p_this)
vlc_list_t__vlc_list_find (vlc_object_t *p_this, int i_type, int i_mode)


Detailed Description

This file contains the functions to handle the vlc_object_t type

Definition in file objects.c.


Function Documentation

vlc_list_t* __vlc_list_find vlc_object_t p_this,
int  i_type,
int  i_mode
 

find a list typed objects and increment their refcount

This function recursively looks for a given object type. i_mode can be one of FIND_PARENT, FIND_CHILD or FIND_ANYWHERE.

Definition at line 610 of file objects.c.

References vlc_list_t::i_count.

void __vlc_object_attach vlc_object_t p_this,
vlc_object_t p_parent
 

attach object to a parent object

This function sets p_this as a child of p_parent, and p_parent as a parent of p_this. This link can be undone using vlc_object_detach.

Definition at line 557 of file objects.c.

void* __vlc_object_create vlc_object_t p_this,
int  i_type
 

Initialize a vlc object

This function allocates memory for a vlc object and initializes it. If i_type is not a known value such as VLC_OBJECT_ROOT, VLC_OBJECT_VOUT and so on, vlc_object_create will use its value for the object size.

Definition at line 99 of file objects.c.

References var_AddCallback, and var_Create.

void __vlc_object_destroy vlc_object_t p_this  ) 
 

Destroy a vlc object

This function destroys an object that has been previously allocated with vlc_object_create. The object's refcount must be zero and it must not be attached to other objects in any way.

Definition at line 325 of file objects.c.

References var_Destroy.

void __vlc_object_detach vlc_object_t p_this  ) 
 

detach object from its parent

This function removes all links between an object and its parent.

Definition at line 583 of file objects.c.

void* __vlc_object_find vlc_object_t p_this,
int  i_type,
int  i_mode
 

find a typed object and increment its refcount

This function recursively looks for a given object type. i_mode can be one of FIND_PARENT, FIND_CHILD or FIND_ANYWHERE.

Definition at line 485 of file objects.c.

void* __vlc_object_get vlc_object_t p_this,
int  i_id
 

find an object given its ID

This function looks for the object whose i_object_id field is i_id. We use a dichotomy so that lookups are in log2(n).

Definition at line 422 of file objects.c.

void __vlc_object_release vlc_object_t p_this  ) 
 

decrement an object refcount

Definition at line 543 of file objects.c.

void __vlc_object_yield vlc_object_t p_this  ) 
 

increment an object refcount

Definition at line 532 of file objects.c.


Generated on Tue Dec 20 10:15:02 2005 for vlc-0.8.4a by  doxygen 1.4.2