Back to index

libindicate  12.10.0
Functions | Variables
test-max-indicators-server.c File Reference
#include <glib.h>
#include "libindicate/listener.h"
#include "test-max-indicators-list.h"

Go to the source code of this file.


gboolean set_max (gpointer userdata)
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
static guint count = 0
static IndicateListener * l = NULL
static IndicateListenerServer * s = NULL

Function Documentation

static gboolean failed_cb ( gpointer  data) [static]

Definition at line 47 of file test-max-indicators-server.c.

       g_debug("Done indicatating max indicators");
       return FALSE;

Here is the caller graph for this function:

int main ( int  argc,
char *  argv 

Definition at line 55 of file test-max-indicators-server.c.


       IndicateListener * listener = indicate_listener_ref_default();

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

       g_timeout_add((MAX_INDICATOR_COUNT + 4) * 100, 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 29 of file test-max-indicators-server.c.

       g_debug("Indicator Server Added:   %s %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server), type);

       if (l != NULL || s != NULL) {
              g_warning("Adding a second server?  %s", INDICATE_LISTENER_SERVER_DBUS_NAME(server));

       l = listener;
       s = server;

       g_timeout_add(100, set_max, NULL);


Here is the call graph for this function:

Here is the caller graph for this function:

gboolean set_max ( gpointer  userdata)

Definition at line 15 of file test-max-indicators-server.c.

       g_debug("Setting max indicators to: %d", max_indicator_list[count]);
       indicate_listener_set_server_max_indicators(l, s, max_indicator_list[count]);

       if (count >= MAX_INDICATOR_COUNT) {
              return FALSE;
       } else {
              return TRUE;

Here is the call graph for this function:

Variable Documentation

guint count = 0 [static]

Definition at line 9 of file test-max-indicators-server.c.

IndicateListener* l = NULL [static]

Definition at line 11 of file test-max-indicators-server.c.

GMainLoop* mainloop = NULL [static]

Definition at line 7 of file test-max-indicators-server.c.

gboolean passed = TRUE [static]

Definition at line 6 of file test-max-indicators-server.c.

IndicateListenerServer* s = NULL [static]

Definition at line 12 of file test-max-indicators-server.c.