#include <glib.h>
#include <glib-object.h>
#include <axsdk/axevent.h>
static void
declaration_complete(guint declaration, gpointer user_data);
static guint
static void
declaration_complete(guint declaration, gpointer user_data)
{
((void)user_data);
g_message("Declaration complete for: %d", declaration);
}
static guint
{
guint declaration = 0;
gboolean enabled = TRUE;
g_warning("Could not add key values to ax_event_key_value_set");
goto error;
}
&declaration, declaration_complete, NULL, NULL)) {
g_warning("Could not declare");
goto error;
}
error:
return declaration;
}
gint main(void)
{
GMainLoop *loop;
guint declaration;
declaration = setup_declaration(event_handler);
g_message("Got declaration: %d", declaration);
loop = g_main_loop_new(NULL, FALSE);
g_main_loop_run(loop);
declaration,
NULL);
return 0;
}