]> git.meshlink.io Git - catta/blobdiff - main.c
* correctly build probe packets
[catta] / main.c
diff --git a/main.c b/main.c
index 26a54629e9d3d23de8998b0fd7df32a11235f08f..987df2253758522dea68a47c7609234786589773 100644 (file)
--- a/main.c
+++ b/main.c
@@ -30,8 +30,8 @@ static void subscription(flxSubscription *s, flxRecord *r, gint interface, gucha
     g_free(t);
 }
 
-static void entry_group_callback(flxServer *s, flxEntryGroup *g, flxEntryGroupStatus status, gpointer userdata) {
-    g_message("entry group state: %i", status);
+static void entry_group_callback(flxServer *s, flxEntryGroup *g, flxEntryGroupState state, gpointer userdata) {
+    g_message("entry group state: %i", state);
 }
 
 int main(int argc, char *argv[]) {
@@ -60,14 +60,14 @@ int main(int argc, char *argv[]) {
 
     loop = g_main_loop_new(NULL, FALSE);
     
-    g_timeout_add(1000*20, dump_timeout, flx);
-    g_timeout_add(1000*30, quit_timeout, loop);
+  /*   g_timeout_add(1000*20, dump_timeout, flx); */
+/*     g_timeout_add(1000*30, quit_timeout, loop); */
     
     g_main_loop_run(loop);
     g_main_loop_unref(loop);
 
 /*     flx_subscription_free(s); */
-/*     flx_entry_group_free(g); */
+    flx_entry_group_free(g); 
     flx_server_free(flx);
     
     return 0;