seat: add extern 'C' in seat.h 10/279810/2
authorduna.oh <duna.oh@samsung.com>
Fri, 12 Aug 2022 10:36:10 +0000 (19:36 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 18 Aug 2022 06:20:55 +0000 (06:20 +0000)
Without this extern "C", C++ program (ex. test cases) does not recognize
the symbols in this header file.

Change-Id: I8d86fbfe59aa7f8f051ba34e7240ac5bbfcc9969

include/libds/seat.h

index aced712..8c3d6ce 100644 (file)
@@ -9,6 +9,10 @@
 #include <libds/surface.h>
 #include <libds/data_device.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct ds_seat;
 
 struct ds_seat_client;
@@ -205,4 +209,8 @@ void ds_seat_touch_add_grab_start_listener(struct ds_seat *seat,
 void ds_seat_set_selection(struct ds_seat *seat, struct ds_data_source *source,
         uint32_t serial);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif