X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_services_discovery.h;h=7094defa2b1966fbae665f286658e5c47e3868d0;hb=b8dddd33871f9932d58a6c7a69ba38d8e4f158bb;hp=f6eaa0e77a11f49c57c2ac3e1a0d34e0c40fbf01;hpb=dccd947213dd8a81511557eaa3dce0602500113a;p=vlc diff --git a/include/vlc_services_discovery.h b/include/vlc_services_discovery.h index f6eaa0e77a..7094defa2b 100644 --- a/include/vlc_services_discovery.h +++ b/include/vlc_services_discovery.h @@ -24,6 +24,10 @@ #ifndef VLC_SERVICES_DISCOVERY_H_ #define VLC_SERVICES_DISCOVERY_H_ +#include +#include +#include + /** * \file * This file functions and structures for service discovery in vlc @@ -37,9 +41,6 @@ extern "C" { * @{ */ -#include -#include - struct services_discovery_t { VLC_COMMON_MEMBERS @@ -88,6 +89,22 @@ VLC_EXPORT( vlc_event_manager_t *, services_discovery_EventManager, ( services_ VLC_EXPORT( void, services_discovery_AddItem, ( services_discovery_t * p_this, input_item_t * p_item, const char * psz_category ) ); VLC_EXPORT( void, services_discovery_RemoveItem, ( services_discovery_t * p_this, input_item_t * p_item ) ); + +/* SD probing */ + +VLC_EXPORT(int, vlc_sd_probe_Add, (vlc_probe_t *, const char *, const char *)); + +#define VLC_SD_PROBE_SUBMODULE \ + add_submodule() \ + set_capability( "services probe", 100 ) \ + set_callbacks( vlc_sd_probe_Open, NULL ) + +#define VLC_SD_PROBE_HELPER(name, longname) \ +static int vlc_sd_probe_Open (vlc_object_t *obj) \ +{ \ + return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, name, longname); \ +} + /** @} */ # ifdef __cplusplus }