rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #ifndef __SERVER_H__ |
| 2 | #define __SERVER_H__ |
| 3 | |
| 4 | #include <string.h> |
| 5 | #include <stdlib.h> |
| 6 | #include <ctype.h> |
| 7 | #include <stdbool.h> |
| 8 | #include "dbusCommon.h" |
| 9 | /** thread function's definition */ |
| 10 | static _ZMoDbusName *pSkeleton = NULL; |
| 11 | static gboolean Emit_My_signal1(gconstpointer p); |
| 12 | static gboolean Emit_My_Signal2(gconstpointer p); |
| 13 | static gboolean My_Method1(_ZMoDbusName* object, GDBusMethodInvocation* invocation, const gchar* in_arg, gpointer user_data); |
| 14 | static gboolean My_Method2(_ZMoDbusName* object, GDBusMethodInvocation* invocation, GVariant* in_arg, gpointer user_data); |
| 15 | static void bus_acquired_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data); |
| 16 | static void name_acquired_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data); |
| 17 | static void name_lost_cb(GDBusConnection* connection, const gchar* bus_name, gpointer user_data); |
| 18 | void* service_thread_run(void*); |
| 19 | int service_thread_create(void); |
| 20 | bool InitDBusCommunicationServer(); |
| 21 | bool DeinitDBusCommunicationServer(void); |
| 22 | #endif |