Add extern C for compatibility with C++ in header 89/276389/1
authorHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 16 Jun 2022 01:15:40 +0000 (10:15 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 16 Jun 2022 01:15:40 +0000 (10:15 +0900)
Change-Id: I643553a04ce1375435c81a797e84620c835ca564
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
include/unit_control.h

index 432d91ea715189eb9550d4c003f20f34db00b0fb..1cf993ae5c687c2f4eb53c2e874b45d0847b804e 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef UNIT_CONTROL_H
 #define UNIT_CONTROL_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 enum {
        UNIT_CONTROL_REQUEST_SENT = 0,
        UNIT_CONTROL_OK,
@@ -37,4 +41,8 @@ int actd_restart_unit_async(BusType bus_type, const char *unit, actd_unit_cb cb,
 int actd_register_unit_state_callback(BusType bus_type, const char *unit, actd_unit_cb cb, void *user_data);
 int actd_unregister_unit_state_callback(BusType bus_type, const char *unit, actd_unit_cb cb);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* UNIT_CONTROL_H */