Add DSStruct.h 54/241654/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Jul 2020 09:58:09 +0000 (18:58 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:54:24 +0000 (18:54 +0900)
Change-Id: I1a0730c2406103e02607e6d67c2eb1d5b470d6ec

src/DSCore/DSStruct.h [new file with mode: 0644]
src/meson.build

diff --git a/src/DSCore/DSStruct.h b/src/DSCore/DSStruct.h
new file mode 100644 (file)
index 0000000..92f8e39
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef __DS_STRUCT_H__
+#define __DS_STRUCT_H__
+
+#include <cstdint>
+
+namespace display_server
+{
+
+using stPosition = struct _stPosition;
+using stRect = struct _stRect;
+
+struct _stPosition
+{
+       int x;
+       int y;
+};
+
+struct _stRect
+{
+       int x;
+       int y;
+       uint32_t w;
+       uint32_t h;
+};
+
+} // namespace display_server
+
+#endif //__DS_STRUCT_H__
+
index d8616f1..855d5ef 100644 (file)
@@ -44,6 +44,7 @@ libds_srcs = [
        'DSSeat/DSTouch.h',
        'DSSignal/DSSignal.cpp',
        'DSSignal/DSSignal.h',
+       'DSCore/DSStruct.h',
        'DSCore/DSCore.h',
        'DSWindow/DSWindow.cpp',
        'DSWindow/DSWindowPrivate.cpp',