]> git.meshlink.io Git - catta/blobdiff - flx.h
some preliminary work for adding legacy unicast and unicast response support
[catta] / flx.h
diff --git a/flx.h b/flx.h
index e641a850afa646307fb2ea4e9fb159ba07d48f12..0f7a0246e426abea6e6144be3bf9390a1850bdd3 100644 (file)
--- a/flx.h
+++ b/flx.h
@@ -23,9 +23,9 @@ typedef enum {
     FLX_ENTRY_GROUP_REGISTERING,
     FLX_ENTRY_GROUP_ESTABLISHED,
     FLX_ENTRY_GROUP_COLLISION
-} flxEntryGroupStatus;
+} flxEntryGroupState;
 
-typedef void (*flxEntryGroupCallback) (flxServer *s, flxEntryGroup *g, flxEntryGroupStatus status, gpointer userdata);
+typedef void (*flxEntryGroupCallback) (flxServer *s, flxEntryGroup *g, flxEntryGroupState state, gpointer userdata);
 
 flxServer *flx_server_new(GMainContext *c);
 void flx_server_free(flxServer* s);
@@ -36,7 +36,7 @@ void flx_server_dump(flxServer *s, FILE *f);
 flxEntryGroup *flx_entry_group_new(flxServer *s, flxEntryGroupCallback callback, gpointer userdata);
 void flx_entry_group_free(flxEntryGroup *g);
 void flx_entry_group_commit(flxEntryGroup *g);
-flxEntryGroupStatus flx_entry_group_get_status(flxEntryGroup *g);
+flxEntryGroupState flx_entry_group_get_state(flxEntryGroup *g);
 
 void flx_server_add(
     flxServer *s,
@@ -82,6 +82,15 @@ void flx_server_add_text_va(
     const gchar *name,
     va_list va);
 
+void flx_server_add_text_strlst(
+    flxServer *s,
+    flxEntryGroup *g,
+    gint interface,
+    guchar protocol,
+    flxEntryFlags flags,
+    const gchar *name,
+    flxStringList *strlst);
+
 void flx_server_add_service(
     flxServer *s,
     flxEntryGroup *g,
@@ -106,6 +115,18 @@ void flx_server_add_service_va(
     guint16 port,
     va_list va);
 
+void flx_server_add_service_strlst(
+    flxServer *s,
+    flxEntryGroup *g,
+    gint interface,
+    guchar protocol,
+    const gchar *type,
+    const gchar *name,
+    const gchar *domain,
+    const gchar *host,
+    guint16 port,
+    flxStringList *strlst);
+
 typedef enum {
     FLX_SUBSCRIPTION_NEW,
     FLX_SUBSCRIPTION_REMOVE,