7 typedef struct _flxServer flxServer;
13 FLX_SERVER_ENTRY_NULL = 0,
14 FLX_SERVER_ENTRY_UNIQUE = 1,
15 FLX_SERVER_ENTRY_NOPROBE = 2,
16 FLX_SERVER_ENTRY_NOANNOUNCE = 4
17 } flxServerEntryFlags;
19 flxServer *flx_server_new(GMainContext *c);
20 void flx_server_free(flxServer* s);
22 gint flx_server_get_next_id(flxServer *s);
29 flxServerEntryFlags flags,
32 void flx_server_add_ptr(
37 flxServerEntryFlags flags,
41 void flx_server_add_address(
46 flxServerEntryFlags flags,
50 void flx_server_add_text(
55 flxServerEntryFlags flags,
57 ... /* text records, terminated by NULL */);
59 void flx_server_add_text_va(
64 flxServerEntryFlags flags,
68 void flx_server_add_service(
78 ... /* text records, terminated by NULL */);
80 void flx_server_add_service_va(
93 void flx_server_remove(flxServer *s, gint id);
95 void flx_server_post_query(flxServer *s, gint interface, guchar protocol, flxKey *key);
96 void flx_server_post_response(flxServer *s, gint interface, guchar protocol, flxRecord *record, gboolean flush_cache);
98 const flxRecord *flx_server_iterate(flxServer *s, gint id, void **state);
100 void flx_server_dump(flxServer *s, FILE *f);