|
VLC
2.1.0-git
|
This file lists functions and structures for service discovery (SD) in vlc. More...

Go to the source code of this file.
Data Structures | |
| struct | services_discovery_t |
| Main service discovery structure to build a SD module. More... | |
| struct | services_discovery_descriptor_t |
| Service discovery descriptor. More... | |
| #define | vlc_sd_GetNames(obj, pln, pcat) vlc_sd_GetNames(VLC_OBJECT(obj), pln, pcat) |
| #define | VLC_SD_PROBE_SUBMODULE |
| #define | VLC_SD_PROBE_HELPER(name, longname, cat) |
| enum | services_discovery_category_e { SD_CAT_DEVICES = 1, SD_CAT_LAN, SD_CAT_INTERNET, SD_CAT_MYCOMPUTER } |
| Service discovery categories. More... | |
| enum | services_discovery_command_e { SD_CMD_SEARCH = 1, SD_CMD_DESCRIPTOR } |
| Service discovery control commands. More... | |
| enum | services_discovery_capability_e { SD_CAP_SEARCH = 1 } |
| Service discovery capabilities. More... | |
| static int | vlc_sd_control (services_discovery_t *p_sd, int i_control, va_list args) |
| Ask for a research in the SD. | |
| char ** | vlc_sd_GetNames (vlc_object_t *, char ***, int **) |
| services_discovery_t * | vlc_sd_Create (vlc_object_t *, const char *) |
| Create a Service discovery. | |
| bool | vlc_sd_Start (services_discovery_t *) |
| Start a Service Discovery. | |
| void | vlc_sd_Stop (services_discovery_t *) |
| Stop a Service Discovery. | |
| void | vlc_sd_Destroy (services_discovery_t *) |
| Destroy a Service Discovery. | |
| static void | vlc_sd_StopAndDestroy (services_discovery_t *p_this) |
| Helper to stop and destroy the Service Discovery. | |
| char * | services_discovery_GetLocalizedName (services_discovery_t *p_this) |
| Get the Localized Name. | |
| vlc_event_manager_t * | services_discovery_EventManager (services_discovery_t *p_this) |
| Getter for the EventManager. | |
| void | services_discovery_AddItem (services_discovery_t *p_this, input_item_t *p_item, const char *psz_category) |
| Add an item to the Service Discovery listing. | |
| void | services_discovery_RemoveItem (services_discovery_t *p_this, input_item_t *p_item) |
| Remove an item from the Service Discovery listing. | |
| void | services_discovery_RemoveAll (services_discovery_t *p_sd) |
| Remove all items from the Service Discovery listing. | |
| int | vlc_sd_probe_Add (vlc_probe_t *, const char *, const char *, int category) |
This file lists functions and structures for service discovery (SD) in vlc.
| #define vlc_sd_GetNames | ( | obj, | |
| pln, | |||
| pcat | |||
| ) | vlc_sd_GetNames(VLC_OBJECT(obj), pln, pcat) |
| #define VLC_SD_PROBE_HELPER | ( | name, | |
| longname, | |||
| cat | |||
| ) |
| #define VLC_SD_PROBE_SUBMODULE |
Service discovery categories.
| void services_discovery_AddItem | ( | services_discovery_t * | p_this, |
| input_item_t * | p_item, | ||
| const char * | psz_category | ||
| ) |
Add an item to the Service Discovery listing.
References services_discovery_t::event_manager, vlc_event_t::type, vlc_event_send(), and vlc_ServicesDiscoveryItemAdded.
| vlc_event_manager_t* services_discovery_EventManager | ( | services_discovery_t * | p_sd | ) |
Getter for the EventManager.
You can receive event notification This is the preferred way to get new items
References services_discovery_t::event_manager.
Referenced by playlist_ServicesDiscoveryAdd(), and playlist_ServicesDiscoveryRemove().
| char* services_discovery_GetLocalizedName | ( | services_discovery_t * | p_sd | ) |
Get the Localized Name.
This is useful for interfaces and libVLC
References module_get_name(), services_discovery_t::p_module, and strdup().
| void services_discovery_RemoveAll | ( | services_discovery_t * | p_sd | ) |
Remove all items from the Service Discovery listing.
References services_discovery_t::event_manager, vlc_event_t::type, vlc_event_send(), and vlc_ServicesDiscoveryItemRemoveAll.
| void services_discovery_RemoveItem | ( | services_discovery_t * | p_this, |
| input_item_t * | p_item | ||
| ) |
Remove an item from the Service Discovery listing.
References services_discovery_t::event_manager, vlc_event_t::type, vlc_event_send(), and vlc_ServicesDiscoveryItemRemoved.
|
inlinestatic |
Ask for a research in the SD.
| p_sd,: | the Service Discovery |
| i_control,: | the command to issue |
| args,: | the argument list |
< Unspecified error
References services_discovery_t::pf_control, and VLC_EGENERIC.
Referenced by playlist_ServicesDiscoveryControl().
| services_discovery_t* vlc_sd_Create | ( | vlc_object_t * | , |
| const char * | |||
| ) |
Create a Service discovery.
References config_ChainCreate(), services_discovery_t::event_manager, services_discovery_t::p_cfg, services_discovery_t::psz_name, services_discovery_Destructor(), vlc_custom_create, vlc_event_manager_init(), vlc_event_manager_register_event_type(), vlc_object_set_destructor, vlc_ServicesDiscoveryEnded, vlc_ServicesDiscoveryItemAdded, vlc_ServicesDiscoveryItemRemoveAll, vlc_ServicesDiscoveryItemRemoved, and vlc_ServicesDiscoveryStarted.
Referenced by playlist_ServicesDiscoveryAdd().
| void vlc_sd_Destroy | ( | services_discovery_t * | ) |
Destroy a Service Discovery.
References config_ChainDestroy(), services_discovery_t::p_cfg, services_discovery_t::psz_name, and vlc_object_release.
Referenced by playlist_ServicesDiscoveryAdd(), playlist_ServicesDiscoveryRemove(), and vlc_sd_StopAndDestroy().
| char** vlc_sd_GetNames | ( | vlc_object_t * | , |
| char *** | , | ||
| int ** | |||
| ) |
| int vlc_sd_probe_Add | ( | vlc_probe_t * | , |
| const char * | , | ||
| const char * | , | ||
| int | category | ||
| ) |
< Not enough memory
< Unspecified error
References vlc_sd_probe_t::longname, vlc_sd_probe_t::name, strdup(), unlikely, VLC_ENOMEM, vlc_probe_add(), and VLC_PROBE_CONTINUE.
| bool vlc_sd_Start | ( | services_discovery_t * | ) |
Start a Service Discovery.
References services_discovery_t::event_manager, module_need, msg_Err, services_discovery_t::p_module, services_discovery_t::psz_name, vlc_event_t::type, vlc_event_send(), and vlc_ServicesDiscoveryStarted.
Referenced by playlist_ServicesDiscoveryAdd().
| void vlc_sd_Stop | ( | services_discovery_t * | ) |
Stop a Service Discovery.
References services_discovery_t::event_manager, module_unneed, services_discovery_t::p_module, vlc_event_t::type, vlc_event_send(), and vlc_ServicesDiscoveryEnded.
Referenced by playlist_ServicesDiscoveryRemove(), and vlc_sd_StopAndDestroy().
|
inlinestatic |
Helper to stop and destroy the Service Discovery.
References vlc_sd_Destroy(), and vlc_sd_Stop().
1.8.1.2