Several demo of learning GDBus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
618 B

#ifndef _SERVER_H_
#define _SERVER_H_
#include "gdbus_demo_gen.h"
static GMainLoop *main_loop = nullptr;
static ComGdbusDemo *skeleton = nullptr;
static GDBusConnection *connection = nullptr;
void init_dbus_server();
static void* start_main_loop(void*);
static void gdbus_acquired_callback(GDBusConnection*, const gchar*, gpointer);
static void gdbus_name_acquired_callback(GDBusConnection*, const gchar*, gpointer);
static void gdbus_name_lost_callback(GDBusConnection*, const gchar*, gpointer);
static gboolean receive_text(ComGdbusDemo*, GDBusMethodInvocation*, const gchar*, gpointer);
#endif