Add cplusplus definition to header 74/164874/1
authorJiung <jiung.yu@samsung.com>
Thu, 21 Dec 2017 06:38:09 +0000 (15:38 +0900)
committerJiung <jiung.yu@samsung.com>
Thu, 21 Dec 2017 06:49:35 +0000 (15:49 +0900)
Change-Id: I12ea115b16538ff160495ca0e42d7c05d893aeb5
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
16 files changed:
include/wifi-direct-asp.h
include/wifi-direct-event.h
include/wifi-direct-group.h
include/wifi-direct-ipc.h
include/wifi-direct-log.h
include/wifi-direct-manager.h
include/wifi-direct-peer.h
include/wifi-direct-service.h
include/wifi-direct-session.h
include/wifi-direct-state.h
include/wifi-direct-util.h
oem/wifi-direct-oem.h
packaging/wifi-direct-manager.spec
plugin/wpasupplicant/ctrl_iface_dbus/include/wfd-plugin-log.h
plugin/wpasupplicant/ctrl_iface_dbus/include/wfd-plugin-wpasupplicant.h
plugin/wpasupplicant/emul/include/wfd-plugin-wpasupplicant.h

index 45df7b180d82bbcbcc2d2d37b873d166e982e956..60ebda601342ba6c7ed8a977a5d00defd93aa386 100644 (file)
@@ -53,6 +53,7 @@ void wfd_asp_connect_status(unsigned char *session_mac,
 void wfd_asp_session_peer_ip(unsigned char *session_mac,
                unsigned int session_id, unsigned char *service_mac,
                unsigned char *session_ip);
+
 #ifdef __cplusplus
 }
 #endif
index ec0292eac7bb8ac592fc701eef68b0b718a60113..b3f87c2e296ba76e7594282d64533abf1e8f3585 100644 (file)
 #ifndef __WIFI_DIRECT_EVENT_H__
 #define __WIFI_DIRECT_EVENT_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void wfd_event_deactivated(wfd_oem_event_s *event);
 void wfd_event_peer_found(wfd_oem_event_s *event);
 void wfd_event_peer_disappeared(wfd_oem_event_s *event);
@@ -60,5 +64,8 @@ void wfd_event_asp_prov_start(wfd_oem_event_s *event);
 void wfd_event_asp_prov_done(wfd_oem_event_s *event);
 
 void wfd_event_init(wfd_oem_event_cbs_s *event_cb);
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* __WIFI_DIRECT_EVENT_H__ */
index 513599bf37a2d28293eb94c86aab8a06db6b1a71..4085d27f954814fa7288274cac0cf67f402305af 100644 (file)
 #ifndef __WIFI_DIRECT_GROUP_H__
 #define __WIFI_DIRECT_GROUP_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define IFACE_NAME_LEN 16
 
 typedef enum {
@@ -66,4 +70,8 @@ int wfd_group_make_persistent();
 int wfd_group_is_autonomous(wfd_group_s *group);
 wfd_device_s *wfd_group_find_member_by_addr(wfd_group_s *group, unsigned char *addr);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_GROUP_H__ */
index e9d51dbe002b0dc54467e829581c9c1772837104..28e710c352ed31cc93b0fcd10713744c32b30f66 100644 (file)
 #ifndef __WIFI_DIRECT_IPC_H__
 #define __WIFI_DIRECT_IPC_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "wifi-direct-error.h"
 
 #define true 1
@@ -239,4 +243,8 @@ typedef struct {
        unsigned char go_mac_address[6];
 } wfd_persistent_group_info_s;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_IPC_H__ */
index e36616a72356482b17360be677160f408b49512c..9dd196a11e275a104a1d2c0fab88f1c4b9c80895 100644 (file)
 #ifndef __WIFI_DIRECT_LOG_H__
 #define __WIFI_DIRECT_LOG_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef USE_DLOG
 #include <dlog.h>
 
@@ -63,4 +67,9 @@
 #define WDS_SECLOGD(format, args...)
 
 #endif /* USE_DLOG */
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_LOG_H__ */
index a4b0b9c6b5976dbb1504d961366f12a77a707e3e..7af213d9a1261277f2d75335d871dffaeafe23a0 100644 (file)
 #ifndef __WIFI_DIRECT_MANAGER_H__
 #define __WIFI_DIRECT_MANAGER_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define DEFAULT_IFNAME "p2p0"
 #define GROUP_IFNAME   "p2p0"
 #define DEFAULT_PRIMARY_DEVICE_TYPE WIFI_DIRECT_PRIMARY_DEVICE_TYPE_TELEPHONE
@@ -226,5 +230,8 @@ void wfd_manager_add_active_client(const char *client_id);
 void wfd_manager_remove_active_client(const char *name,
                                                 const gchar *old_owner,
                                                 const char *new_owner);
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* __WIFI_DIRECT_MANAGER_H__ */
index 283e7bf885a139168c2fb1bc48567cd8da27bece..7ac03beeee44d6b0a033d62ae182ec0c10ebc2cc 100644 (file)
@@ -28,6 +28,9 @@
 #ifndef __WIFI_DIRECT_PEER_H__
 #define __WIFI_DIRECT_PEER_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 wfd_device_s *wfd_add_peer(void *data, unsigned char *dev_addr, char *dev_name);
 int wfd_remove_peer(void *data, unsigned char *dev_addr);
@@ -42,4 +45,9 @@ int wfd_peer_get_data(unsigned char *dev_addr, int type, int data);
 int wfd_peer_set_data(unsigned char *dev_addr, int type, int data);
 #endif
 wfd_device_s *wfd_peer_find_by_addr(void *data, unsigned char *addr);
+
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_PEER_H__ */
index 94f123bb1b70ed50a04ecb03c7441ebe5090c6ba..72d7550d3eb1c714e7411f743a345e9ad1a9a39f 100644 (file)
 #ifndef __WIFI_DIRECT_SERVICE_H__
 #define __WIFI_DIRECT_SERVICE_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum {
        WFD_SERVICE_TYPE_ALL,
        WFD_SERVICE_TYPE_BONJOUR,
@@ -83,5 +87,8 @@ int wfd_service_disc_req(unsigned char *addr, int type, char *data);
 int wfd_service_disc_cancel(int handle);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* __WIFI_DIRECT_SERVICE_H__ */
index 3d1c7fea0079ccc7271caa5b8f4158211ccb0430..b563491b018d35d12979653555f9065190f1b9ef 100644 (file)
 #ifndef __WIFI_DIRECT_SESSION_H__
 #define __WIFI_DIRECT_SESSION_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum {
        SESSION_TYPE_NORMAL,
        SESSION_TYPE_INVITE,
@@ -92,4 +96,8 @@ int wfd_session_asp_session_start(wfd_session_s *session, wfd_oem_asp_prov_s *pa
 int wfd_session_asp_connect(wfd_session_s *session, int role);
 int wfd_session_asp_persistent_connect(wfd_session_s *session, int persist_group_id);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_SESSION_H__ */
index 4d804ba263283ecbb5f1dc4afbc8264dbb0afb3a..f94e35162b5353fd7bec76c2ad1f563181decee8 100644 (file)
 #ifndef __WIFI_DIRECT_STATE_H__
 #define __WIFI_DIRECT_STATE_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int wfd_state_set(wfd_manager_s *manager, int state);
 int wfd_state_get(wfd_manager_s *manager, int *state);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_STATE_H__ */
index a4d3f724f9d7a8cad5448b2930bc582da658322c..50a4f4a9688944f36b6754b79ab43115c4561ebd 100644 (file)
 
 #ifndef __WIFI_DIRECT_UTIL_H__
 #define __WIFI_DIRECT_UTIL_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
 #define IP2STR(a) (a)[0], (a)[1], (a)[2], (a)[3]
@@ -82,4 +87,8 @@ int wfd_util_ip_over_eap_assign(wfd_device_s *peer, const char *ifname);
 int wfd_util_ip_unset(const char *ifname);
 gboolean wfd_util_is_remove_group_allowed(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_UTIL_H__ */
index a37d52a977814afb05edbb18f3a5b1427f235e77..b4506fb6f7e2d37674c636dfabd8c5bee5e9c18b 100644 (file)
 #ifndef __WIFI_DIRECT_OEM_H__
 #define __WIFI_DIRECT_OEM_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define SUPPL_PLUGIN_PATH "/usr/lib/wifi-direct-plugin-wpasupplicant.so"
 #define SUPPL_PLUGIN_64BIT_PATH "/usr/lib64/wifi-direct-plugin-wpasupplicant.so"
 
@@ -776,4 +780,8 @@ typedef struct {
 int wfd_oem_prd_init(wfd_oem_ops_s *ops);
 #endif /* TIZEN_ENABLE_PRD */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WIFI_DIRECT_OEM_H__ */
index dc338267c8bf8d84c0a4a2384c57de29910eae3b..c33d33ceb6dcff20b292c985b1ab3b531fc7c578 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.256
+Version:       1.2.257
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index a515aa5e424845b4cf2ea628ecbd5d6fef771a59..6809ee8e067f928dce0006e44ffebaa23913da59 100644 (file)
 #ifndef __WFD_PLUGIN_LOG_H_
 #define __WFD_PLUGIN_LOG_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef USE_DLOG
 #include <dlog.h>
 
@@ -64,4 +68,8 @@
 
 #endif /* USE_DLOG */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WFD_PLUGIN_LOG_H_ */
index 304cb5ff8da750660ab1367972a5fa3d4a4dd18e..344cbf56b9b3d929037457a13a64d0b73e17ea7f 100644 (file)
@@ -28,6 +28,9 @@
 #ifndef __WFD_PLUGIN_WPASUPPLICANT_H__
 #define __WFD_PLUGIN_WPASUPPLICANT_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5]
 #define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x"
@@ -380,4 +383,8 @@ int ws_add_vsie(wfd_oem_vsie_frames_e frame_id, const char* vsie);
 int ws_get_vsie(wfd_oem_vsie_frames_e frame_id, char **vsie);
 int ws_remove_vsie(wfd_oem_vsie_frames_e frame_id, const char *vsie);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WFD_PLUGIN_WPASUPPLICANT_H__ */
index 9edeb9f018ead7667ed34c93fc03564e0498dad7..76f7a88267bc1fcbda0f184742b84caf92297f36 100644 (file)
 #ifndef __WFD_PLUGIN_WPASUPPLICANT_H__
 #define __WFD_PLUGIN_WPASUPPLICANT_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifdef USE_DLOG
 #include <dlog.h>
 
@@ -131,4 +135,8 @@ int ws_add_vsie(wfd_oem_vsie_frames_e frame_id, const char* vsie);
 int ws_get_vsie(wfd_oem_vsie_frames_e frame_id, char **vsie);
 int ws_remove_vsie(wfd_oem_vsie_frames_e frame_id, const char *vsie);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* __WFD_PLUGIN_WPASUPPLICANT_H__ */