static void do_kill(char *dst) { if (dst) bnep_kill_connection((void *) strtoba(dst)); else bnep_kill_all_connections(); }
static void manager_unregister(void *data) { info("Unregistered manager path"); if (server_paths) { g_slist_foreach(server_paths, (GFunc) g_free, NULL); g_slist_free(server_paths); server_paths = NULL; } if (connection_paths) { g_slist_foreach(connection_paths, (GFunc) g_free, NULL); g_slist_free(connection_paths); connection_paths = NULL; } bnep_kill_all_connections(); }