// Minimal glib stand-in, used only to syntax-check service.c and main.c on a // development machine that has no webOS SDK installed. It declares exactly the // handful of symbols this project uses and nothing else; the real headers are // what the TV build compiles against. #pragma once #include typedef int gboolean; typedef int gint; typedef unsigned int guint; typedef void* gpointer; typedef struct _GMainLoop GMainLoop; typedef struct _GMainContext GMainContext; #define TRUE 1 #define FALSE 0 #define G_SOURCE_REMOVE FALSE #define G_SOURCE_CONTINUE TRUE typedef gboolean (*GSourceFunc)(gpointer user_data); GMainLoop* g_main_loop_new(GMainContext* context, gboolean is_running); void g_main_loop_run(GMainLoop* loop); void g_main_loop_quit(GMainLoop* loop); void g_main_loop_unref(GMainLoop* loop); guint g_idle_add(GSourceFunc function, gpointer data); gboolean g_atomic_int_compare_and_exchange(gint* atomic, gint oldval, gint newval); void g_atomic_int_set(gint* atomic, gint newval);