123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- #ifndef foopublishhfoo
- #define foopublishhfoo
- typedef struct AvahiSEntryGroup AvahiSEntryGroup;
- #include <avahi-common/cdecl.h>
- #include <avahi-core/core.h>
- AVAHI_C_DECL_BEGIN
- typedef void (*AvahiSEntryGroupCallback) (AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata);
- const AvahiRecord *avahi_server_iterate(AvahiServer *s, AvahiSEntryGroup *g, void **state);
- AvahiSEntryGroup *avahi_s_entry_group_new(AvahiServer *s, AvahiSEntryGroupCallback callback, void* userdata);
- void avahi_s_entry_group_free(AvahiSEntryGroup *g);
- int avahi_s_entry_group_commit(AvahiSEntryGroup *g);
- void avahi_s_entry_group_reset(AvahiSEntryGroup *g);
- int avahi_s_entry_group_is_empty(AvahiSEntryGroup *g);
- AvahiEntryGroupState avahi_s_entry_group_get_state(AvahiSEntryGroup *g);
- void avahi_s_entry_group_set_data(AvahiSEntryGroup *g, void* userdata);
- void* avahi_s_entry_group_get_data(AvahiSEntryGroup *g);
- int avahi_server_add(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- AvahiRecord *r );
- int avahi_server_add_address(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- AvahiAddress *a);
- int avahi_server_add_service(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- const char *type,
- const char *domain,
- const char *host,
- uint16_t port,
- ... ) AVAHI_GCC_SENTINEL;
- int avahi_server_add_service_strlst(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- const char *type,
- const char *domain,
- const char *host,
- uint16_t port,
- AvahiStringList *strlst);
- int avahi_server_add_service_subtype(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- const char *type,
- const char *domain,
- const char *subtype );
- int avahi_server_update_service_txt_strlst(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- const char *type,
- const char *domain,
- AvahiStringList *strlst);
- int avahi_server_update_service_txt(
- AvahiServer *s,
- AvahiSEntryGroup *g,
- AvahiIfIndex interface,
- AvahiProtocol protocol,
- AvahiPublishFlags flags,
- const char *name,
- const char *type,
- const char *domain,
- ...) AVAHI_GCC_SENTINEL;
- int avahi_server_get_group_of_service(AvahiServer *s, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiSEntryGroup** ret_group);
- AVAHI_C_DECL_END
- #endif
|