Remove unnecessary extern C declaration 51/231351/2
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 21 Apr 2020 09:37:02 +0000 (18:37 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Fri, 24 Apr 2020 05:31:45 +0000 (14:31 +0900)
Change-Id: I08407fe374f046ffccafa043cefe924868dd898d

12 files changed:
inc/application_manager.h
inc/application_manager_aul.h
inc/client_manager.h
inc/preference_manager.h
inc/preference_manager_vconf.h
inc/service_config.h
inc/service_ipc_dbus.h
inc/service_ipc_dbus_dispatcher.h
inc/service_main.h
inc/service_plugin.h
inc/service_plugin_interface.h
plugins/wakeup-manager/inc/wakeup_manager_main.h

index 05bdccad4d1662971506c2f0e4992d3b4d7c081b..07802b3af1eadee7af70cce7a5bbbc79661f79ab 100644 (file)
 #include <boost/optional.hpp>
 #include <string>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 class IApplicationManager {
 public:
        virtual bool is_application_running(pid_t pid) = 0;
@@ -35,8 +31,4 @@ public:
        virtual boost::optional<pid_t> get_pid_by_appid(const std::string& appid) = 0;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __APPLICATION_MANAGER_H__ */
index ddf2f26d04382ce9c36550365b22020a7c686d56..c07836cad2f88a28a4d43776810c532fc1b909d0 100644 (file)
 
 #include "application_manager.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 class CApplicationManagerAul : public IApplicationManager {
 public:
        CApplicationManagerAul();
@@ -37,8 +33,4 @@ public:
        boost::optional<pid_t> get_pid_by_appid(const std::string& appid) override;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __APPLICATION_MANAGER_AUL_H__ */
index 0ecad4eb7e4539e68640e6a0b2d7cd4cbcf6766a..94712a1e89b1fd45e8099c894df761bc4cff4c2f 100644 (file)
 #include <string>
 #include <glib.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef struct {
        pid_t pid;
        std::string appid;
@@ -60,8 +56,4 @@ private:
        GSList* mClientList{nullptr};
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __CLIENT_MANAGER_H__ */
index 79d373474a21a9673e57d53011ffd379e8bd25d8..7da3d7a2a34655ea8d7d9ee6a5a330b96d31ff1b 100644 (file)
 #include <string>
 #include <boost/optional.hpp>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef void (*preference_changed_cb)(std::string key, void* user_data);
 
 class IPreferenceManager {
@@ -39,8 +35,4 @@ public:
                        const std::string& key, preference_changed_cb callback) = 0;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __PREFERENCE_MANAGER_H__ */
index 7af61cb36296b3c32ff6b1076bb04cf8f95005ef..02d7e949b8c3680b33dc907dc1da4170efbd46a0 100644 (file)
 #include <list>
 #include <tuple>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef std::tuple<preference_changed_cb, void*> CallbackEntry;
 
 class CPreferenceManagerVconf : public IPreferenceManager {
@@ -52,8 +48,4 @@ private:
        std::map<std::string, std::list<CallbackEntry>> mCallbackEntries;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __PREFERENCE_MANAGER_VCONF_H__ */
index bbc7a40d4c87221c94ee525894a5a5b44dfad279..6ce7607792624c45de16e1a5db1f5ce9520488c2 100644 (file)
 #include <string>
 #include <boost/optional.hpp>
 
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
 /**************************************************************************************
  *** Definitions for xml file
  *************************************************************************************/
@@ -124,10 +119,6 @@ private:
                const char *path, void* user_data);
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 /**
  * @}
  */
index abe1990779b5d03c8801a82f345b82a173db08ee..1089091224e1e321c70aafc1119d4119fd107433 100644 (file)
 #ifndef __SERVICE_IPC_DBUS_H__
 #define __SERVICE_IPC_DBUS_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <dbus/dbus.h>
 #include <Ecore.h>
 
@@ -85,8 +81,4 @@ private:
        IApplicationManager* mApplicationManager{nullptr};
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SERVICE_IPC_DBUS_H__ */
index 9a88a998a5b6e7ecffc0a8feaf4979c7bbeefcff..9d2250b0b2a3920c9af65404ddfdbacfe459b94b 100644 (file)
 
 #include <dbus/dbus.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 class CServiceMain;
 
 class IServiceIpcObserver {
@@ -87,9 +83,4 @@ private:
        IServiceIpcObserver *mIpcObserver{nullptr};
 };
 
-#ifdef __cplusplus
-}
-#endif
-
-
 #endif /* __SERVICE_IPC_DBUS_DISPATCHER_H__ */
index 047ee5053e47ecb66ed1e99b40859e4fd80da713..414a3b96af16215db2879aca87fd352e6a9f271c 100644 (file)
 #include "application_manager.h"
 #include "preference_manager.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef enum {
        CLIENT_LAUNCH_MODE_ACTIVATION,
        CLIENT_LAUNCH_MODE_PRELAUNCH,
@@ -204,8 +200,4 @@ private:
        IPreferenceManager& mPreferenceManager;
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SERVICE_MAIN_H__ */
index 35a5e120b634e1ee8facfdacfd46f4f79a312324..a3ed80499e9a0375fe66c4d18a52a8a32739339c 100644 (file)
 #include "service_ipc_dbus.h"
 #include "service_plugin_interface.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 class CServiceMain;
 
 class CServicePlugin {
@@ -102,8 +98,4 @@ private:
     CServiceMain* mServiceMain{nullptr};
 };
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SERVICE_PLUGIN_H__ */
index 669d1c46e106fd56a0c6dad47cbadc1eb96fdb44..944a9670ae9b750b45fc7b1cdda0004071dc9111 100644 (file)
 
 #include <tzplatform_config.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 typedef struct {
        int plugin_version;
        bool ui_panel_enabled;
@@ -160,8 +156,4 @@ typedef struct {
        wakeup_manager_set_voice_key_status_changed_callback            set_voice_key_status_changed_callback;
 } wakeup_manager_interface;
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __SERVICE_PLUGIN_INTERFACE_H__ */
index 0a654c8b8c2a79b9ed2f199ae57335c883d50f2a..d0b8b3003c87161197a68273f9a9e5723264ee45 100644 (file)
@@ -4,11 +4,6 @@
 #include <dlog.h>
 #include <glib.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
 #ifdef  LOG_TAG
 #undef  LOG_TAG
 #endif
@@ -39,8 +34,4 @@ extern "C" {
 #define MWR_SLOGW(fmt, args...) MWR_SECURE_LOG_(DLOG_WARN, LOG_TAG, fmt, ##args)
 #define MWR_SLOGE(fmt, args...) MWR_SECURE_LOG_(DLOG_ERROR, LOG_TAG, fmt, ##args)
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* __MUTLI_WAKEUP_MAIN_H__ */