Back to index

libindicate  12.10.0
Defines | Functions | Variables
test-interests-server4.c File Reference
#include <glib.h>
#include "libindicate/listener.h"

Go to the source code of this file.


#define INTEREST   4


static void server_added (IndicateListener *listener, IndicateListenerServer *server, gchar *type, gpointer data)
static gboolean failed_cb (gpointer data)
int main (int argc, char *argv)


static gboolean passed = TRUE
static GMainLoop * mainloop = NULL

Define Documentation

#define INTEREST   4

Function Documentation

static gboolean failed_cb ( gpointer  data) [static]

Definition at line 19 of file test-interests-server4.c.

       g_debug("Done indicatating interest");
       return FALSE;

Here is the caller graph for this function:

int main ( int  argc,
char *  argv 

Definition at line 27 of file test-interests-server4.c.


       IndicateListener * listener = indicate_listener_ref_default();

       g_signal_connect(listener, INDICATE_LISTENER_SIGNAL_SERVER_ADDED, G_CALLBACK(server_added), NULL);

       g_timeout_add_seconds(2, failed_cb, NULL);

       mainloop = g_main_loop_new(NULL, FALSE);

       return !passed;

Here is the call graph for this function:

static void server_added ( IndicateListener *  listener,
IndicateListenerServer *  server,
gchar *  type,
gpointer  data 
) [static]

Definition at line 9 of file test-interests-server4.c.

       g_debug("Indicator Server Added:   %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);
       #define INTEREST 4
       g_debug("Setting Interest: %d", INTEREST);
       indicate_listener_server_show_interest(listener, server, INTEREST);

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

GMainLoop* mainloop = NULL [static]

Definition at line 6 of file test-interests-server4.c.

gboolean passed = TRUE [static]

Definition at line 5 of file test-interests-server4.c.