blob: 2c5f1ad8c657b4ec2a4b8e773b9542e3ebcc5eb4 [file] [log] [blame]
#ifndef __SERVER_H__
#define __SERVER_H__
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdbool.h>
#include "dbusCommon.h"
/** thread function's definition */
static _ZMoDbusName *pSkeleton = NULL;
static gboolean Emit_My_signal1(gconstpointer p);
static gboolean Emit_My_Signal2(gconstpointer p);
static gboolean My_Method1(_ZMoDbusName* object, GDBusMethodInvocation* invocation, const gchar* in_arg, gpointer user_data);
static gboolean My_Method2(_ZMoDbusName* object, GDBusMethodInvocation* invocation, GVariant* in_arg, gpointer user_data);
static void bus_acquired_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data);
static void name_acquired_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data);
static void name_lost_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data);
void* service_thread_run(void*);
int service_thread_create(void);
bool InitDBusCommunicationServer();
bool DeinitDBusCommunicationServer(void);
#endif