Add cplusplus definition to header 82/165282/4
authorchleun.moon <chleun.moon@samsung.com>
Thu, 28 Dec 2017 00:53:13 +0000 (09:53 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Fri, 5 Jan 2018 02:29:49 +0000 (11:29 +0900)
Change-Id: I5003e5e92e38a36a6d371c5830ec4846e4ef688b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
include/asp-manager-gdbus.h
include/asp-manager-util.h
include/asp-manager.h
include/asp-service.h
include/asp-session.h
include/asp-tech.h
packaging/asp-manager.spec

index a0f984495898a177b6c9feff0b974a591997fa95..c81e63e7c3c5082b136c58be83d7f0a871d3049d 100755 (executable)
 
 #include "asp-manager.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define SERVICE_DBUS_ERROR_NAME "net.asp.service.Error.Failed"
 #define SESSION_DBUS_ERROR_NAME "net.asp.session.Error.Failed"
 
@@ -61,4 +65,8 @@ void asp_manager_gdbus_notify_port_status(gchar *session_mac,
                guint32 session_id, const gchar *ip, gint32 port, gint32 protocol,
                gint32 status);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __ASP_MANAGER_GDBUS_H__ */
index ea057888ec0879c86285cf8d232dac624b19e7ee..751ab70f8dad26962971432e45de077a014c3036 100755 (executable)
 
 #endif /* USE_DLOG */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define IPSTR_MAXLEN 40
 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
@@ -62,4 +66,8 @@ typedef enum {
 gint32 macaddr_atoe(const gchar *p, guint8 mac[]);
 gint32 asp_dbus_unpack_ay(guint8 *dst, GVariant *src, gint32 size);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __ASP_MANAGER_UTIL_H__ */
index 72f3fbde6b5636106335edb2f44a108342f66bde..6f2e20a916002ea84c6ab69e1b9bc2ed27bc11ab 100755 (executable)
 #define EXPORT_API __attribute__((visibility("default")))
 
 #include <glib.h>
+#include <gio/gio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define MAC_LEN 6
 #define MACSTR_LEN 17
@@ -45,4 +50,8 @@ typedef struct {
 
 asp_s *asp_get_manager();
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __ASP_MANAGER__ */
index fbe69e1c3f03ac878a74c18dfffb75ee1f4a0251..60a7114b435f5d64ada8c12c7180026c863bc4bc 100755 (executable)
 
 #include "asp-manager-util.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define ASP_SERVICE_MACSTR_LEN 18
 #define ASP_SERVICE_DEVICE_NAME_LEN 33
 #define ASP_SERVICE_MACADDR_LEN 6
@@ -105,4 +109,8 @@ gint32 asp_service_notify_search_result(guint32 search_id,
                                                                        GHashTable *service_info,
                                                                        asp_service_status_e service_status);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __ASP_SERVICE_H__ */
index 3ea83262289250645f8eee57765494dd9c849023..efd016720b0eaae7813b31b9ff73ad0fcc2fbc7d 100755 (executable)
 
 #include <glib.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*****************************************************************************
  * Macros and Typedefs
  *****************************************************************************/
@@ -407,4 +411,8 @@ gboolean asp_session_set_session_status_cb(asp_session_session_status_cb cb, gpo
 */
 gboolean asp_session_set_port_status_cb(asp_session_port_status_cb cb, gpointer user_data);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif                                                 /* __ASP_SESSION_H__ */
index e1dd2d69a37e09befd9a434350ddde7df8c4c96f..beee8fe9f545bd4fc10d5b58892160dff83f3faa 100755 (executable)
 
 #include "asp-session.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void (*asp_tech_session_request_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, guint32 adv_id, const gchar *device_name, size_t name_length, const guint8 *session_info, size_t info_length, gboolean get_pin, guint32 pin, gpointer user_data);
 typedef void (*asp_tech_session_config_request_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, gboolean get_pin, guint32 pin, gpointer user_data);
 typedef void (*asp_tech_connect_status_cb)(gint32 error_code, const guint8 *session_mac, guint32 session_id, asp_session_connect_status_e status, gpointer user_data);
@@ -193,4 +197,8 @@ void asp_tech_set_ip_assigned_cb(gint32 tech, asp_tech_ip_assigned_cb cb, gpoint
 
 void asp_manager_event(gpointer ctx, asp_event_type_e event, asp_event_data *data);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __ASP_TECH_H__ */
index edf6e7e6b8e91eac30d2d3fc6dddb76675ada487..51cdbc1edd86414523f7a14175db3a9a41424a4c 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       asp-manager
 Summary:    ASP(application service platform) manager
-Version:    0.0.24
+Version:    0.0.25
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0