udev.c File Reference

List of multimedia devices for VLC media player. More...

Include dependency graph for udev.c:


Data Structures

struct  device
struct  subsys
struct  services_discovery_sys_t

Functions

static int OpenV4L (vlc_object_t *)
static int OpenALSA (vlc_object_t *)
static int OpenDisc (vlc_object_t *)
static void Close (vlc_object_t *obj)
 Releases resources.
static int vlc_sd_probe_Open (vlc_object_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int cmpdev (const void *a, const void *b)
 Compares two devices (to support binary search).
static void DestroyDevice (void *data)
static char * decode_property (struct udev_device *, const char *)
static int AddDevice (services_discovery_t *sd, struct udev_device *dev)
 Adds a udev device.
static void RemoveDevice (services_discovery_t *sd, struct udev_device *dev)
 Removes a udev device (if present).
static void * Run (void *)
static int Open (vlc_object_t *obj, const struct subsys *subsys)
 Probes and initializes.
static int hex (char c)
 Converts an hexadecimal digit to an integer.
static char * decode (const char *enc)
 Decodes a udev hexadecimal-encoded property.
static bool is_v4l_legacy (struct udev_device *dev)
static char * v4l_get_mrl (struct udev_device *dev)
static char * v4l_get_name (struct udev_device *dev)
static char * v4l_get_cat (struct udev_device *dev)
static int alsa_get_device (struct udev_device *dev, unsigned *restrict pcard, unsigned *restrict pdevice)
static char * alsa_get_mrl (struct udev_device *dev)
static char * alsa_get_name (struct udev_device *dev)
static char * alsa_get_cat (struct udev_device *dev)
static char * disc_get_mrl (struct udev_device *dev)
static char * disc_get_name (struct udev_device *dev)
static char * disc_get_cat (struct udev_device *dev)

Detailed Description

List of multimedia devices for VLC media player.


Function Documentation

static int AddDevice ( services_discovery_t sd,
struct udev_device *  dev 
) [static]

static char* alsa_get_cat ( struct udev_device *  dev  )  [static]

References strdup().

Referenced by OpenALSA().

static int alsa_get_device ( struct udev_device *  dev,
unsigned *restrict  pcard,
unsigned *restrict  pdevice 
) [static]

Referenced by alsa_get_mrl(), and alsa_get_name().

static char* alsa_get_mrl ( struct udev_device *  dev  )  [static]

References alsa_get_device(), and asprintf().

Referenced by OpenALSA().

static char* alsa_get_name ( struct udev_device *  dev  )  [static]

References _, alsa_get_device(), asprintf(), and name.

Referenced by OpenALSA().

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static int cmpdev ( const void *  a,
const void *  b 
) [static]

Compares two devices (to support binary search).

Referenced by AddDevice(), and RemoveDevice().

static char* decode ( const char *  enc  )  [static]

Decodes a udev hexadecimal-encoded property.

References hex(), and strdup().

static char * decode_property ( struct udev_device *  dev,
const char *  name 
) [static]

References decode().

Referenced by disc_get_name(), and v4l_get_cat().

static void DestroyDevice ( void *  data  )  [static]

static char* disc_get_cat ( struct udev_device *  dev  )  [static]

References list, N_, name, strdup(), unlikely, and vlc_gettext().

Referenced by OpenDisc().

static char* disc_get_mrl ( struct udev_device *  dev  )  [static]

References asprintf().

Referenced by OpenDisc().

static char* disc_get_name ( struct udev_device *  dev  )  [static]

References decode_property().

Referenced by OpenDisc().

static int hex ( char  c  )  [static]

Converts an hexadecimal digit to an integer.

Referenced by ASF_ReadObject_extended_content_description(), decode(), decode_URI(), encode_URI_bytes(), and sprintf_hexa().

static bool is_v4l_legacy ( struct udev_device *  dev  )  [static]

Referenced by v4l_get_mrl().

static int Open ( vlc_object_t obj,
const struct subsys subsys 
) [static]

int OpenALSA ( vlc_object_t obj  )  [static]

int OpenDisc ( vlc_object_t obj  )  [static]

int OpenV4L ( vlc_object_t obj  )  [static]

static void RemoveDevice ( services_discovery_t sd,
struct udev_device *  dev 
) [static]

Removes a udev device (if present).

References cmpdev(), DestroyDevice(), services_discovery_t::p_sys, p_sys, and services_discovery_sys_t::root.

Referenced by Run().

static void * Run ( void *  data  )  [static]

static char* v4l_get_cat ( struct udev_device *  dev  )  [static]

References decode_property().

Referenced by OpenV4L().

static char* v4l_get_mrl ( struct udev_device *  dev  )  [static]

References asprintf(), and is_v4l_legacy().

Referenced by OpenV4L().

static char* v4l_get_name ( struct udev_device *  dev  )  [static]

References strdup().

Referenced by OpenV4L().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 

static int vlc_sd_probe_Open ( vlc_object_t obj  )  [static]


Generated on Tue May 25 08:05:27 2010 for VLC by  doxygen 1.5.6