Squashed 'LYNQ_PUBLIC/' content from commit 79d8f932f
git-subtree-dir: LYNQ_PUBLIC
git-subtree-split: 79d8f932fb4ebc4b5aec6c5ace97634912394272
Change-Id: If2527ba937f56fe989487bf71e996f7cfd9fbe61
diff --git a/common_src/lib/liblynq-broadcast/include/lynq_dbus/libclient.h b/common_src/lib/liblynq-broadcast/include/lynq_dbus/libclient.h
new file mode 100644
index 0000000..055c676
--- /dev/null
+++ b/common_src/lib/liblynq-broadcast/include/lynq_dbus/libclient.h
@@ -0,0 +1,47 @@
+#ifndef __LIB_CLIENT__
+#define __LIB_CLIENT__
+
+#include <string.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <stdbool.h>
+#include <glib-2.0/glib.h>
+
+#include "dbusCommon.h"
+#define RET_SIGNAL_HANDLE_SIZE 3
+
+typedef void (*SIGNAL1CALLBACK)(const gchar*);
+typedef void (*SIGNAL2CALLBACK)(const gint, const gchar*);
+typedef struct signalcallback
+{
+ SIGNAL1CALLBACK callback1;
+ SIGNAL2CALLBACK callback2;
+}S_SIGNAL_CALLBACK;
+
+typedef void (*METHOD1CALLBACK)(const gchar*, const GError*);
+typedef void (*METHOD2CALLBACK)(const gchar*, const gint, GError*);
+typedef struct methodcallback
+{
+ METHOD1CALLBACK callback1;
+ METHOD2CALLBACK callback2;
+}S_METHOD_CALLBACK;
+
+
+static gboolean My_Signal_1_Handler(_ZMoDbusName *object, const gchar *arg, gpointer userdata);
+static gboolean My_Signal_2_Handler(_ZMoDbusName *object, GVariant *arg, gpointer userdata);
+static void cb_OwnerNameChangedNotify(GObject *object, GParamSpec *pspec, gpointer userdata);
+bool registerClientSignalHandler(_ZMoDbusName *pProxy);
+void registerSignalCallback(S_SIGNAL_CALLBACK *callback);
+void registerMethodCallback(S_METHOD_CALLBACK *callback);
+static void MethodCallback_1(GObject* source_object, GAsyncResult* res, gpointer userdata);
+void myMethodAsync_1(const char* in_arg);
+void myMethod_1(const gchar *in_arg, gchar** out_arg, GError** pError);
+static void MethodCallback_2(GObject* source_object, GAsyncResult* res, gpointer user_data);
+void myMethodAsync_2(const gint in_arg1, const gint in_arg2);
+void myMethod_2(const gint in_arg1, const gint in_arg2, gchar **out_arg1, gint *out_arg2, GError** pError);
+void *client_run_tread(void* arg);
+int client_thread_create(void);
+bool ExampleDBusServiceIsReady(void);
+bool InitDBusCommunication(const gchar* bus_name, const gchar* object_path);
+bool DeInitDBusCommunication(void);
+#endif