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 05bdcca..07802b3 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 ddf2f26..c07836c 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 0ecad4e..94712a1 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 79d3734..7da3d7a 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 7af61cb..02d7e94 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 bbc7a40..6ce7607 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 abe1990..1089091 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 9a88a99..9d2250b 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 047ee50..414a3b9 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 35a5e12..a3ed804 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 669d1c4..944a967 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 0a654c8..d0b8b30 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__ */