From b2337d59955fd91526d12ea5fbdd062bd850394d Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 11 Aug 2020 21:34:04 +0900 Subject: [PATCH 01/16] DSWaylandCompositor: add currentTime() Change-Id: Iec7f08f6b82ef783312630b2b08ce91f351eb796 Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/DSWaylandCompositor.cpp | 5 +++++ src/DSWaylandServer/DSWaylandCompositor.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/DSWaylandServer/DSWaylandCompositor.cpp b/src/DSWaylandServer/DSWaylandCompositor.cpp index a56856e..69bd763 100644 --- a/src/DSWaylandServer/DSWaylandCompositor.cpp +++ b/src/DSWaylandServer/DSWaylandCompositor.cpp @@ -405,6 +405,11 @@ uint32_t DSWaylandCompositor::nextSerial() return wl_display_next_serial(priv->_display); } +uint32_t DSWaylandCompositor::currentTime() +{ + return ecore_time_unix_get(); +} + void DSWaylandCompositor::addClient(DSWaylandClient *client) { DS_GET_PRIV(DSWaylandCompositor); diff --git a/src/DSWaylandServer/DSWaylandCompositor.h b/src/DSWaylandServer/DSWaylandCompositor.h index fc1213c..ba7ff81 100644 --- a/src/DSWaylandServer/DSWaylandCompositor.h +++ b/src/DSWaylandServer/DSWaylandCompositor.h @@ -36,6 +36,7 @@ public: std::string socketName(); struct ::wl_display *display(); uint32_t nextSerial(); + uint32_t currentTime(); std::list clients(); DSWaylandSeat *defaultSeat(); -- 2.7.4 From 4f05f4e11f04ec07c16dd1fb58be4dddc4a78065 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 11 Aug 2020 21:42:08 +0900 Subject: [PATCH 02/16] DSWaylandServer: fix send_enter() of wl_keyboard class Change-Id: I8ebcbabbc4a863856d97d70a3f0cd4450c6307b8 Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/dswayland-server-wayland.cpp | 10 ++++------ src/DSWaylandServer/dswayland-server-wayland.h | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/DSWaylandServer/dswayland-server-wayland.cpp b/src/DSWaylandServer/dswayland-server-wayland.cpp index 51308e8..a6cb680 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.cpp +++ b/src/DSWaylandServer/dswayland-server-wayland.cpp @@ -3861,7 +3861,7 @@ namespace DSWaylandServer { } - void wl_keyboard::send_enter(uint32_t serial, struct ::wl_resource *surface, const std::string &keys) + void wl_keyboard::send_enter(uint32_t serial, struct ::wl_resource *surface, std::string keys) { DS_ASSERT_X(m_resource, "wl_keyboard::enter", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -3875,18 +3875,16 @@ namespace DSWaylandServer { keys); } - void wl_keyboard::send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, const std::string &keys) + void wl_keyboard::send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, std::string keys) { struct wl_array keys_data; - keys_data.size = keys.size(); - keys_data.data = static_cast(const_cast(keys.c_str())); - keys_data.alloc = 0; - + wl_array_init(&keys_data); wl_keyboard_send_enter( resource, serial, surface, &keys_data); + wl_array_release(&keys_data); } diff --git a/src/DSWaylandServer/dswayland-server-wayland.h b/src/DSWaylandServer/dswayland-server-wayland.h index 2c0e8b3..9e54b16 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.h +++ b/src/DSWaylandServer/dswayland-server-wayland.h @@ -1673,8 +1673,8 @@ namespace DSWaylandServer { void send_keymap(uint32_t format, int32_t fd, uint32_t size); void send_keymap(struct ::wl_resource *resource, uint32_t format, int32_t fd, uint32_t size); - void send_enter(uint32_t serial, struct ::wl_resource *surface, const std::string &keys); - void send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, const std::string &keys); + void send_enter(uint32_t serial, struct ::wl_resource *surface, std::string keys); + void send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, std::string keys); void send_leave(uint32_t serial, struct ::wl_resource *surface); void send_leave(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface); void send_key(uint32_t serial, uint32_t time, uint32_t key, uint32_t state); -- 2.7.4 From f29c03e9f29bbbf450e5dd5b5cb9f237e48eaa12 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 11 Aug 2020 21:45:46 +0900 Subject: [PATCH 03/16] DSWaylandSeat: add setXkb()/getXkb()/setCurrentTime()/getCurrentTime() Change-Id: I116051e624c65f04107924bd3a412eeddecf58e6 Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/DSWaylandSeat.cpp | 35 +++++++++++++++++++++++++++++- src/DSWaylandServer/DSWaylandSeat.h | 8 +++++++ src/DSWaylandServer/DSWaylandSeatPrivate.h | 4 ++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/src/DSWaylandServer/DSWaylandSeat.cpp b/src/DSWaylandServer/DSWaylandSeat.cpp index 93d7474..d03e1a5 100644 --- a/src/DSWaylandServer/DSWaylandSeat.cpp +++ b/src/DSWaylandServer/DSWaylandSeat.cpp @@ -5,6 +5,7 @@ #include "DSWaylandPointer.h" #include "DSWaylandKeyboard.h" #include "DSWaylandTouch.h" +#include "DSXkb.h" namespace display_server { @@ -15,9 +16,11 @@ DSWaylandSeatPrivate::DSWaylandSeatPrivate(DSWaylandCompositor *compositor, DSWa __p_ptr(seat), __cap(DSWaylandSeat::capNone), __compositor(compositor), + __xkb(nullptr), __pointer(nullptr), __keyboard(nullptr), - __touch(nullptr) + __touch(nullptr), + __currentEventTime(0) { if (!compositor) return; @@ -179,6 +182,30 @@ std::string DSWaylandSeat::getName() return priv->__seatName; } +void DSWaylandSeat::setCurrentEventTime(uint32_t timestamp) +{ + DS_GET_PRIV(DSWaylandSeat); + priv->__currentEventTime = timestamp; +} + +uint32_t DSWaylandSeat::getCurrentEventTime() +{ + DS_GET_PRIV(DSWaylandSeat); + return priv->__currentEventTime; +} + +void DSWaylandSeat::setXkb(DSXkb *xkb) +{ + DS_GET_PRIV(DSWaylandSeat); + priv->__xkb = xkb; +} + +DSXkb *DSWaylandSeat::getXkb() +{ + DS_GET_PRIV(DSWaylandSeat); + return priv->__xkb; +} + DSWaylandPointer *DSWaylandSeat::getPointer() { DS_GET_PRIV(DSWaylandSeat); @@ -197,4 +224,10 @@ DSWaylandTouch *DSWaylandSeat::getTouch() return priv->__touch; } +DSWaylandCompositor *DSWaylandSeat::getCompositor() +{ + DS_GET_PRIV(DSWaylandSeat); + return priv->__compositor; +} + } diff --git a/src/DSWaylandServer/DSWaylandSeat.h b/src/DSWaylandServer/DSWaylandSeat.h index a2ecd07..e6e1499 100644 --- a/src/DSWaylandServer/DSWaylandSeat.h +++ b/src/DSWaylandServer/DSWaylandSeat.h @@ -7,6 +7,7 @@ namespace display_server { +class DSXkb; class DSWaylandSeatPrivate; class DSWaylandCompositor; class DSWaylandPointer; @@ -38,9 +39,16 @@ public: void setName(std::string name); std::string getName(); + void setCurrentEventTime(uint32_t timestamp); + uint32_t getCurrentEventTime(); + + void setXkb(DSXkb *xkb); + DSXkb *getXkb(); + DSWaylandPointer *getPointer(); DSWaylandKeyboard *getKeyboard(); DSWaylandTouch *getTouch(); + DSWaylandCompositor *getCompositor(); protected: diff --git a/src/DSWaylandServer/DSWaylandSeatPrivate.h b/src/DSWaylandServer/DSWaylandSeatPrivate.h index 3ddc15f..c4123b7 100644 --- a/src/DSWaylandServer/DSWaylandSeatPrivate.h +++ b/src/DSWaylandServer/DSWaylandSeatPrivate.h @@ -8,6 +8,7 @@ namespace display_server { +class DSXkb; class DSWaylandPointer; class DSWaylandKeyboard; class DSWaylandTouch; @@ -32,11 +33,14 @@ protected: private: DSWaylandSeat::seatCapability __cap; DSWaylandCompositor *__compositor; + DSXkb *__xkb; std::string __seatName; DSWaylandPointer *__pointer; DSWaylandKeyboard *__keyboard; DSWaylandTouch *__touch; + + uint32_t __currentEventTime; }; } -- 2.7.4 From 85696121239c4e7bff3f7611e1acf46b365403ac Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 11 Aug 2020 21:52:03 +0900 Subject: [PATCH 04/16] DSWaylandKeyboard: implements event send functions for wl_keyboard Change-Id: I624efe06267cb4f07d07598f265ff42548411f5a Signed-off-by: Sung-Jin Park --- src/DSWaylandServer/DSWaylandKeyboard.cpp | 182 ++++++++++++++++++++++++- src/DSWaylandServer/DSWaylandKeyboard.h | 3 + src/DSWaylandServer/DSWaylandKeyboardPrivate.h | 39 ++++-- 3 files changed, 210 insertions(+), 14 deletions(-) diff --git a/src/DSWaylandServer/DSWaylandKeyboard.cpp b/src/DSWaylandServer/DSWaylandKeyboard.cpp index 3dc8880..2bed2ca 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.cpp +++ b/src/DSWaylandServer/DSWaylandKeyboard.cpp @@ -1,6 +1,12 @@ #include "DSWaylandKeyboard.h" #include "DSWaylandKeyboardPrivate.h" #include "DSWaylandClient.h" +#include "DSWaylandSeat.h" +#include "DSWaylandSurface.h" +#include "DSWaylandCompositor.h" +#include "DSXkb.h" + +#include namespace display_server { @@ -10,20 +16,54 @@ DSWaylandKeyboardPrivate::DSWaylandKeyboardPrivate(DSWaylandSeat *seat, DSWaylan : DSObjectPrivate(keyboard), __p_ptr(keyboard), __seat(seat), - __waylandSurface(nullptr), + __xkb(seat->getXkb()), + __compositor(seat->getCompositor()), + __focusSurface(nullptr), + __focusClient(nullptr), __repeatRate(0), __repeatDelay(0) { + if (__xkb) + { + __fdKeymap = __xkb->getKeymapFd(); + __fdKeymapSize = __xkb->getKeymapSize(); + __formatKeymap = WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1; + __depressed = __xkb->getModifierDepressed(); + __latched = __xkb->getModifierLatched(); + __locked = __xkb->getModifierLocked(); + __group = __xkb->getModifierGroup(); + } + else + { + /* open fd of null keymap */ + __fdKeymap = open("/dev/null", O_RDONLY); + __fdKeymapSize = 0; + __formatKeymap = WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP; + __depressed = 0; + __latched = 0; + __locked = 0; + __group = 0; + } + + DSLOG_INF("DSWaylandKeyboardPrivate", "__fdKeymap=%d, __fdKeymapSize=%d, __formatKeymap=%d", + __fdKeymap, __fdKeymapSize, __formatKeymap); + wl_keyboard(); + __keys.clear(); } DSWaylandKeyboardPrivate::~DSWaylandKeyboardPrivate() { + if (__fdKeymap >= 0) + close(__fdKeymap); } void DSWaylandKeyboardPrivate::keyboard_bind_resource(Resource *resource) { DSLOG_INF("DSWaylandKeyboardPrivate",""); + + sendKeymap(resource); + sendRepeatInfo(resource); } void DSWaylandKeyboardPrivate::keyboard_destroy_resource(Resource *resource) @@ -37,6 +77,109 @@ void DSWaylandKeyboardPrivate::keyboard_release(Resource *resource) wl_resource_destroy(resource->handle); } +void DSWaylandKeyboardPrivate::sendKeymap(Resource *resource) +{ + send_keymap(resource->handle, __formatKeymap, __fdKeymap, __fdKeymapSize); +} + +void DSWaylandKeyboardPrivate::sendRepeatInfo(Resource *resource) +{ + if (WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION > resource->version()) + return; + + send_repeat_info(resource->handle, __repeatRate, __repeatDelay); +} + +void DSWaylandKeyboardPrivate::sendEnter(struct ::wl_resource *surface) +{ + auto client = wl_resource_get_client(surface); + auto resMap = resourceMap(); + auto func = [&](std::pair res) + { + if (res.first == client) + { + send_enter(res.second->handle, __compositor->nextSerial(), surface, __keys); + } + }; + + std::for_each(resMap.begin(), resMap.end(), func); + + //TODO : send key press event(s) of the pressed key(s) to current focus window +} + +void DSWaylandKeyboardPrivate::sendLeave(struct ::wl_resource *surface) +{ + auto client = wl_resource_get_client(surface); + auto resMap = resourceMap(); + auto func = [&](std::pair res) + { + if (res.first == client) + { + send_leave(res.second->handle, __compositor->nextSerial(), surface); + } + }; + + //TODO : send key release events of the pressed keys to current focus window + + std::for_each(resMap.begin(), resMap.end(), func); +} + +void DSWaylandKeyboardPrivate::sendModifiers(struct ::wl_resource *surface) +{ + bool need_send = false; + uint32_t mod = 0; + + if (!__xkb) + return; + + mod = __xkb->getModifierDepressed(); + need_send |= (__depressed != mod); + __depressed = mod; + + mod = __xkb->getModifierLatched(); + need_send |= (__latched != mod); + __latched = mod; + + mod = __xkb->getModifierLocked(); + need_send |= (__locked != mod); + __locked = mod; + + mod = __xkb->getModifierGroup(); + need_send |= (__group != mod); + __group = mod; + + if (!need_send) + return; + + auto client = wl_resource_get_client(surface); + auto resMap = resourceMap(); + auto func = [&](std::pair res) + { + if (res.first == client) + { + send_modifiers(res.second->handle, __compositor->nextSerial(), __depressed, __latched, __locked, __group); + } + }; + std::for_each(resMap.begin(), resMap.end(), func); +} + +void DSWaylandKeyboardPrivate::sendKey(uint32_t key, uint32_t state) +{ + if (!__focusSurface) + { + DSLOG_INF("DSWaylandKeyboardPrivate", "No focusSurface !"); + return; + } + + auto resMap = resourceMap(); + auto func = [&](std::pair res) + { + if (res.first == __focusClient) + send_key(res.second->handle, __compositor->nextSerial(), __seat->getCurrentEventTime(), key, state); + }; + std::for_each(resMap.begin(), resMap.end(), func); +} + /* Begin Public Class Implementation */ DSWaylandKeyboard::DSWaylandKeyboard(DSWaylandSeat *seat) : DSObject(), _d_ptr(std::make_unique(seat, this)) @@ -96,13 +239,46 @@ void DSWaylandKeyboard::addClient(DSWaylandClient *client, uint32_t id, int vers void DSWaylandKeyboard::setFocus(DSWaylandSurface *waylandSurface) { DS_GET_PRIV(DSWaylandKeyboard); - priv->__waylandSurface = waylandSurface; + + if (priv->__focusSurface != waylandSurface) + { + if (priv->__focusSurface) + { + struct ::wl_resource *surfaceToLeave = priv->__focusSurface->getWlResource(); + priv->sendModifiers(surfaceToLeave); + priv->sendLeave(surfaceToLeave); + } + + struct ::wl_resource *surfaceToEnter = waylandSurface->getWlResource(); + priv->sendEnter(surfaceToEnter); + + priv->__focusSurface = waylandSurface; + priv->__focusClient = wl_resource_get_client(waylandSurface->getWlResource()); + } } DSWaylandSurface *DSWaylandKeyboard::getFocus() { DS_GET_PRIV(DSWaylandKeyboard); - return priv->__waylandSurface; + return priv->__focusSurface; +} + +void DSWaylandKeyboard::sendKeyDown(uint32_t keycode) +{ + DS_GET_PRIV(DSWaylandKeyboard); + priv->sendKey(keycode, WL_KEYBOARD_KEY_STATE_PRESSED); + + if (priv->__focusSurface) + priv->sendModifiers(priv->__focusSurface->getWlResource()); +} + +void DSWaylandKeyboard::sendKeyUp(uint32_t keycode) +{ + DS_GET_PRIV(DSWaylandKeyboard); + priv->sendKey(keycode, WL_KEYBOARD_KEY_STATE_RELEASED); + + if (priv->__focusSurface) + priv->sendModifiers(priv->__focusSurface->getWlResource()); } } diff --git a/src/DSWaylandServer/DSWaylandKeyboard.h b/src/DSWaylandServer/DSWaylandKeyboard.h index c927100..040a600 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.h +++ b/src/DSWaylandServer/DSWaylandKeyboard.h @@ -30,6 +30,9 @@ public: void setFocus(DSWaylandSurface *waylandSurface); DSWaylandSurface *getFocus(); + void sendKeyDown(uint32_t keycode); + void sendKeyUp(uint32_t keycode); + protected: private: diff --git a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h index 1946d7f..a23abb0 100644 --- a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h +++ b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h @@ -1,16 +1,21 @@ #ifndef __DS_WAYLAND_KEYBOARD_PRIVATE_H__ #define __DS_WAYLAND_KEYBOARD_PRIVATE_H__ -#include "dswayland-server-wayland.h" - #include "DSCore.h" #include "DSObjectPrivate.h" +#include "dswayland-server-wayland.h" +#include "wayland-util.h" + +struct wl_client; +struct wl_array; namespace display_server { +class DSXkb; class DSWaylandSeat; class DSWaylandSurface; +class DSWaylandCompositor; class DS_DECL_EXPORT DSWaylandKeyboardPrivate : public DSObjectPrivate, public DSWaylandServer::wl_keyboard { @@ -28,21 +33,33 @@ protected: virtual void keyboard_release(Resource *resource); /* APIs must be provided */ - /* - void sendKeymap(struct ::wl_client *client, uint32_t format, int32_t fd, uint32_t size); - void sendEnter(struct ::wl_client *client, uint32_t serial, struct ::wl_resource *surface, const std::string &keys); - void sendLeave(struct ::wl_client *client, uint32_t serial, struct ::wl_resource *surface); - void sendKey(struct ::wl_client *client, uint32_t serial, uint32_t time, uint32_t key, uint32_t state); - void sendModifiers(struct ::wl_client *client, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group); - void sendRepeat_info(struct ::wl_client *client, int32_t rate, int32_t delay); - */ + void sendKey(uint32_t key, uint32_t state); + void sendKeymap(Resource *resource); + void sendRepeatInfo(Resource *resource); + void sendEnter(struct ::wl_resource *surface); + void sendLeave(struct ::wl_resource *surface); + void sendModifiers(struct ::wl_resource *surface); private: DSWaylandSeat *__seat; - DSWaylandSurface *__waylandSurface; + DSXkb *__xkb; + DSWaylandCompositor *__compositor; + DSWaylandSurface *__focusSurface; + struct ::wl_client *__focusClient; uint32_t __repeatRate; uint32_t __repeatDelay; + std::string __keys; + + int __fdKeymap; + uint32_t __fdKeymapSize; + uint32_t __formatKeymap; + + /* modifiers status */ + uint32_t __depressed; + uint32_t __latched; + uint32_t __locked; + uint32_t __group; }; } -- 2.7.4 From 791c670768405031d143e948b48178979848086a Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 11 Aug 2020 22:01:00 +0900 Subject: [PATCH 05/16] DSSeat: install input event handlers, implement key event propagation Change-Id: Ibd077012d85f6a2753076b3362a76e815a95c1cb Signed-off-by: Sung-Jin Park --- src/DSSeat/DSKeyboard.cpp | 48 ++++++++++++++++++++++++++++++- src/DSSeat/DSKeyboard.h | 7 +++++ src/DSSeat/DSSeat.cpp | 72 +++++++++++++++++++++-------------------------- src/DSSeat/DSSeat.h | 11 +++++--- 4 files changed, 93 insertions(+), 45 deletions(-) diff --git a/src/DSSeat/DSKeyboard.cpp b/src/DSSeat/DSKeyboard.cpp index 36f14cf..b646058 100644 --- a/src/DSSeat/DSKeyboard.cpp +++ b/src/DSSeat/DSKeyboard.cpp @@ -41,6 +41,52 @@ void DSKeyboard::processEvent(DSInputKeyboardEvent *ev, void *data) DSLOG_ERR("DSKeyboard", "No kbdFocus available."); return; } + + if (ev->getType() == DSInputEvent::KeyDownEvent) + { + DSLOG_DBG("DSSeat", "[keyDown] name: %s, keycode: %d, devicename: %s, timestamp: %u\n", + ev->getKeyname().c_str(), ev->getKeycode(), ev->getDevice()->getName().c_str(), ev->getTimestamp()); + keyDown(ev->getKeycode()); + } + else + { + DSLOG_DBG("DSSeat", "[keyUp] name: %s, keycode: %d, devicename: %s, timestamp: %u\n", + ev->getKeyname().c_str(), ev->getKeycode(), ev->getDevice()->getName().c_str(), ev->getTimestamp()); + keyDown(ev->getKeycode()); + } + +} + +void DSKeyboard::keyDown(uint32_t keycode) +{ + if (__dswlKeyboard) + { + __dswlKeyboard->sendKeyDown(keycode); + } +} + +void DSKeyboard::keyUp(uint32_t keycode) +{ + if (__dswlKeyboard) + { + __dswlKeyboard->sendKeyUp(keycode); + } +} + +void DSKeyboard::setRepeatRate(uint32_t rate) +{ + if (__dswlKeyboard) + { + __dswlKeyboard->setRepeatRate(rate); + } +} + +void DSKeyboard::setRepeatDelay(uint32_t delay) +{ + if (__dswlKeyboard) + { + __dswlKeyboard->setRepeatDelay(delay); + } } void DSKeyboard::setFocus(std::shared_ptr window) @@ -77,4 +123,4 @@ std::shared_ptr DSKeyboard::getFocus() return __kbdFocus; } -} // namespace display_server \ No newline at end of file +} // namespace display_server diff --git a/src/DSSeat/DSKeyboard.h b/src/DSSeat/DSKeyboard.h index 800326c..2f2ac27 100644 --- a/src/DSSeat/DSKeyboard.h +++ b/src/DSSeat/DSKeyboard.h @@ -22,6 +22,13 @@ public: virtual ~DSKeyboard(); void processEvent(DSInputKeyboardEvent *ev, void *data); + + void keyDown(uint32_t keycode); + void keyUp(uint32_t keycode); + + void setRepeatRate(uint32_t rate); + void setRepeatDelay(uint32_t delay); + void setFocus(std::shared_ptr window); std::shared_ptr getFocus(); diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index 2fbdadb..42a0268 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -27,7 +27,7 @@ DSSeat::DSSeat() __dswlSeat(nullptr), __dswlComp(nullptr), __compositor(nullptr), - __xkb(nullptr), + __xkb(new DSXkb(this)), __zone(nullptr), __keyboard(nullptr), __pointer(nullptr), @@ -63,16 +63,40 @@ DSSeat::DSSeat(DSCompositor *compositor, std::string name) __dswlSeat = __dswlComp->addSeat(DSWaylandSeat::capNone); DS_ASSERT(__dswlSeat != nullptr); + __dswlSeat->setXkb(__xkb); + if (!name.empty()) __dswlSeat->setName(name); __input = new DSInput(this, __xkb); DS_ASSERT(__input != nullptr); + __initSlots(); + __initEventHandlers(); + __input->init(); +} + +DSSeat::~DSSeat() +{ + if (__input) + delete __input; + + if (__dswlComp && __dswlSeat) + __dswlComp->removeSeat(__dswlSeat); + + if (__dswlComp) + DSWaylandCompositor::releaseInstance(); +} + +void DSSeat::__initSlots() +{ __signalHandleKeyEvent.connect(this, std::bind(&DSSeat::__onKeyEvent, this, std::placeholders::_1)); __signalHandlePointerEvent.connect(this, std::bind(&DSSeat::__onPointerEvent, this, std::placeholders::_1)); __signalHandleTouchEvent.connect(this, std::bind(&DSSeat::__onTouchEvent, this, std::placeholders::_1)); +} +void DSSeat:: __initEventHandlers() +{ __input->registerCallbackDeviceAdd(this, std::bind(&DSSeat::slotDeviceAdd, this, std::placeholders::_1)); __input->registerCallbackDeviceRemove(this, std::bind(&DSSeat::slotDeviceRemove, this, std::placeholders::_1)); __input->registerCallbackKeyDown(this, inputEventHandlerKey); @@ -83,19 +107,6 @@ DSSeat::DSSeat(DSCompositor *compositor, std::string name) __input->registerCallbackTouchDown(this, inputEventHandlerTouch); __input->registerCallbackTouchMove(this, inputEventHandlerTouch); __input->registerCallbackTouchUp(this, inputEventHandlerTouch); - __input->init(); -} - -DSSeat::~DSSeat() -{ - if (__input) - delete __input; - - if (__dswlComp && __dswlSeat) - __dswlComp->removeSeat(__dswlSeat); - - if (__dswlComp) - DSWaylandCompositor::releaseInstance(); } bool DSSeat::attachZone(std::shared_ptr zone) @@ -342,7 +353,7 @@ std::string DSSeat::getName() return __dswlSeat->getName(); } -void DSSeat::__onKeyEvent(DSInputKeyboardEvent *event) +void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev) { if (__keyboard == nullptr) { @@ -350,10 +361,11 @@ void DSSeat::__onKeyEvent(DSInputKeyboardEvent *event) return; } - __keyboard->processEvent(event, nullptr); + __dswlSeat->setCurrentEventTime(ev->getTimestamp()); + __keyboard->processEvent(ev, nullptr); } -void DSSeat::__onPointerEvent(DSInputMouseEvent *event) +void DSSeat::__onPointerEvent(DSInputMouseEvent *ev) { if (__pointer == nullptr) { @@ -361,10 +373,10 @@ void DSSeat::__onPointerEvent(DSInputMouseEvent *event) return; } - __pointer->processEvent(event, nullptr); + __pointer->processEvent(ev, nullptr); } -void DSSeat::__onTouchEvent(DSInputTouchEvent *event) +void DSSeat::__onTouchEvent(DSInputTouchEvent *ev) { if (__touch == nullptr) { @@ -372,7 +384,7 @@ void DSSeat::__onTouchEvent(DSInputTouchEvent *event) return; } - __touch->processEvent(event, nullptr); + __touch->processEvent(ev, nullptr); } void DSSeat::__onWindowCreated(std::shared_ptr window) @@ -409,15 +421,6 @@ void DSSeat::__onWindowCreated(std::shared_ptr window) Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event) { DSInputKeyboardEvent *ev = static_cast< DSInputKeyboardEvent* >(event); - std::string typeString; - - if (ev->getType() == DSInputEvent::KeyDownEvent) - typeString = "down"; - else - typeString = "up"; - - DSLOG_DBG("DSSeat", "[key %s] keycode: %d, devicename: %s\n", typeString.c_str(), ev->getKeycode(), ev->getDevice()->getName().c_str()); - __signalHandleKeyEvent.emit(ev); return EINA_TRUE; @@ -426,17 +429,6 @@ Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event) Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event) { DSInputMouseEvent *ev = static_cast< DSInputMouseEvent* >(event); - std::string typeString; - - if (ev->getType() == DSInputEvent::MouseDownEvent) - typeString = "down"; - else if (ev->getType() == DSInputEvent::MouseMoveEvent) - typeString = "move"; - else - typeString = "up"; - - DSLOG_DBG("DSSeat", "[mouse %s] button: %d (%d, %d, %d), devicename: %s\n", typeString.c_str(), ev->getButton(), ev->getX(), ev->getY(), ev->getZ(), ev->getDevice()->getName().c_str()); - __signalHandlePointerEvent.emit(ev); return EINA_TRUE; diff --git a/src/DSSeat/DSSeat.h b/src/DSSeat/DSSeat.h index 3c8ea65..5ee4880 100644 --- a/src/DSSeat/DSSeat.h +++ b/src/DSSeat/DSSeat.h @@ -4,6 +4,7 @@ #include "DSCore.h" #include "DSObject.h" #include "DSSignal.h" +#include #include namespace display_server @@ -64,6 +65,9 @@ private: std::shared_ptr __focusWin; + void __initSlots(); + void __initEventHandlers(); + /* ecore key/mouse/touch event handler */ static Eina_Bool inputEventHandlerKey(void *data, int type, void *event); static Eina_Bool inputEventHandlerMouse(void *data, int type, void *event); @@ -75,11 +79,10 @@ private: static DSSignal __signalHandleTouchEvent; /* slots */ - void __onKeyEvent(DSInputKeyboardEvent *event); - void __onPointerEvent(DSInputMouseEvent *event); - void __onTouchEvent(DSInputTouchEvent *event); + void __onKeyEvent(DSInputKeyboardEvent *ev); + void __onPointerEvent(DSInputMouseEvent *ev); + void __onTouchEvent(DSInputTouchEvent *ev); void __onWindowCreated(std::shared_ptr window); - }; } -- 2.7.4 From f12f6ec00565c160005cb149b9241d1143b28d9e Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 12 Aug 2020 10:38:47 +0900 Subject: [PATCH 06/16] DSSeat: add getXkb() Change-Id: Ic1f36dff62ac90dd00561838ed99f6abc70c35cb Signed-off-by: Sung-Jin Park --- src/DSSeat/DSSeat.cpp | 5 +++++ src/DSSeat/DSSeat.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index 42a0268..cf04773 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -348,6 +348,11 @@ void DSSeat::removeTouch() } } +DSXkb *DSSeat::getXkb() +{ + return __xkb; +} + std::string DSSeat::getName() { return __dswlSeat->getName(); diff --git a/src/DSSeat/DSSeat.h b/src/DSSeat/DSSeat.h index 5ee4880..1ca7d5f 100644 --- a/src/DSSeat/DSSeat.h +++ b/src/DSSeat/DSSeat.h @@ -48,6 +48,8 @@ public: void removeKeyboard(); void removeTouch(); + DSXkb *getXkb(); + private: DSInput *__input; DSWaylandSeat *__dswlSeat; -- 2.7.4 From 0789e4194d096fd1594a8b2d455bfba4ff0932ab Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 12 Aug 2020 10:37:44 +0900 Subject: [PATCH 07/16] tests: update tests for DSWaylandCompositor, DSWaylandSeat, DSWaylandKeyboard and DSKeyboard Change-Id: Ibe0eca9fbcb0b963eed7194e57374bf32d72f363 Signed-off-by: Sung-Jin Park --- tests/DSKeyboard-test.cpp | 6 +++++ tests/DSWaylandCompositor-test.cpp | 20 ++++++++++++++++ tests/DSWaylandKeyboard-test.cpp | 12 ++++++++++ tests/DSWaylandSeat-test.cpp | 49 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) diff --git a/tests/DSKeyboard-test.cpp b/tests/DSKeyboard-test.cpp index 0db9a36..fe4262c 100644 --- a/tests/DSKeyboard-test.cpp +++ b/tests/DSKeyboard-test.cpp @@ -79,6 +79,12 @@ TEST_F(DSKeyboardTest, BasicMethods) { keyboard->setFocus(window); EXPECT_TRUE(window == keyboard->getFocus()); + + keyboard->keyDown(100); + keyboard->keyUp(100); + + keyboard->setRepeatRate(25); + keyboard->setRepeatDelay(400); } } } diff --git a/tests/DSWaylandCompositor-test.cpp b/tests/DSWaylandCompositor-test.cpp index 7a459e3..0c29a43 100644 --- a/tests/DSWaylandCompositor-test.cpp +++ b/tests/DSWaylandCompositor-test.cpp @@ -87,6 +87,26 @@ TEST_F(DSWaylandCompositorTest, NextSerialGet) } } +TEST_F(DSWaylandCompositorTest, GetCurrentTime) +{ + bool res; + uint32_t currentTime; + + DSWaylandCompositor *comp = DSWaylandCompositor::getInstance(); + EXPECT_TRUE(comp != nullptr); + + if (comp) + { + res = comp->create(); + EXPECT_TRUE(res == true); + + currentTime = comp->currentTime(); + EXPECT_TRUE(currentTime <= comp->currentTime()); + + DSWaylandCompositor::releaseInstance(); + } +} + TEST_F(DSWaylandCompositorTest, AddRemoveClient) { bool res; diff --git a/tests/DSWaylandKeyboard-test.cpp b/tests/DSWaylandKeyboard-test.cpp index 3769679..c4bd123 100644 --- a/tests/DSWaylandKeyboard-test.cpp +++ b/tests/DSWaylandKeyboard-test.cpp @@ -87,3 +87,15 @@ TEST_F(DSWaylandKeyboardTest, SetGetFocus) } } +TEST_F(DSWaylandKeyboardTest, BasicMethods) +{ + auto keyboard = new DSWaylandKeyboard(nullptr); + EXPECT_TRUE(keyboard != nullptr); + + if (keyboard) + { + keyboard->sendKeyDown(100); + keyboard->sendKeyUp(100); + } +} + diff --git a/tests/DSWaylandSeat-test.cpp b/tests/DSWaylandSeat-test.cpp index d4bf446..7ad984e 100644 --- a/tests/DSWaylandSeat-test.cpp +++ b/tests/DSWaylandSeat-test.cpp @@ -1,6 +1,8 @@ #include "libds-tests.h" #include "DSWaylandCompositor.h" #include "DSWaylandSeat.h" +#include "DSSeat.h" +#include "DSXkb.h" using namespace display_server; @@ -114,3 +116,50 @@ TEST_F(DSWaylandSeatTest, getKeyboardPointerTouch) } } +TEST_F(DSWaylandSeatTest, GetSetCurrentEventTime) +{ + DSWaylandCompositor *comp = DSWaylandCompositor::getInstance(); + EXPECT_TRUE(comp != nullptr); + + if (comp) + { + auto seat = new DSWaylandSeat(comp, DSWaylandSeat::capDefault); + EXPECT_TRUE(seat != nullptr); + + uint32_t currentTime = comp->currentTime(); + seat->setCurrentEventTime(currentTime); + EXPECT_TRUE(currentTime == seat->getCurrentEventTime()); + + DSWaylandCompositor::releaseInstance(); + } +} + +TEST_F(DSWaylandSeatTest, GetSetXkb) +{ + DSWaylandCompositor *comp = DSWaylandCompositor::getInstance(); + EXPECT_TRUE(comp != nullptr); + + if (comp) + { + auto seat = new DSSeat(); + EXPECT_TRUE(seat != nullptr); + + if (seat) + { + auto xkb = seat->getXkb(); + EXPECT_TRUE(xkb != nullptr); + + if (xkb) + { + auto waylandSeat = new DSWaylandSeat(comp, DSWaylandSeat::capDefault); + EXPECT_TRUE(waylandSeat != nullptr); + + waylandSeat->setXkb(xkb); + EXPECT_TRUE(xkb == waylandSeat->getXkb()); + } + } + + DSWaylandCompositor::releaseInstance(); + } +} + -- 2.7.4 From f5c362cebc819c3083ebed35fee072ad36bdcf5d Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Wed, 12 Aug 2020 11:54:48 +0900 Subject: [PATCH 08/16] IDSWaylandShellSurface/ZxdgSurfaceV6: add APIs to set/get DSWaylandSurface Change-Id: I9fb21e442a5d25e61c52d299659671293aaa4eb5 --- src/DSWaylandServer/DSWaylandZxdgShellV6.cpp | 46 ++++++++++++++++++++--- src/DSWaylandServer/DSWaylandZxdgShellV6.h | 7 +++- src/DSWaylandServer/DSWaylandZxdgShellV6Private.h | 5 ++- src/DSWaylandServer/IDSWaylandShell.h | 5 ++- tests/DSWaylandZxdgShellV6-test.cpp | 18 +++++++++ 5 files changed, 72 insertions(+), 9 deletions(-) diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp index 6ee322a..f4f529e 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp @@ -1,6 +1,7 @@ #include "DSWaylandZxdgShellV6.h" #include "DSWaylandZxdgShellV6Private.h" #include "DSWaylandCompositor.h" +#include "DSWaylandSurface.h" #define ZXDG_SHELL_V6_VERSION 1 #define ZXDG_POSITIONER_V6_VERSION 1 @@ -88,14 +89,26 @@ void DSWaylandZxdgShellV6Private::zxdg_shell_v6_create_positioner(zxdg_shell_v6: } void DSWaylandZxdgShellV6Private::zxdg_shell_v6_get_xdg_surface(zxdg_shell_v6::Resource *resource, uint32_t id, struct ::wl_resource *surface) { + DSLOG_DBG("DSWaylandZxdgShell", ""); DS_GET_PUB(DSWaylandZxdgShellV6); DSWaylandZxdgSurfaceV6 *zxdgSurf = new DSWaylandZxdgSurfaceV6(resource->client(), id, ZXDG_SURFACE_V6_VERSION); - zxdgSurf->setWlSurface(surface); + if (zxdgSurf) + { + zxdgSurf->setWlSurface(surface); - pub->addSurface(zxdgSurf); - // emit a signal of the zxdg surface created - pub->__zxdgSurfaceCreatedSignal.emit(zxdgSurf); + DSWaylandSurface *dswlSurface = DSWaylandSurface::fromWlResource(surface); + if (dswlSurface) + { + zxdgSurf->setSurface(dswlSurface); + } + + DSLOG_DBG("DSWaylandZxdgShell", "DSWaylandZxdgSurface:%p, DSWaylandSurface:%p, wl_surface:%p", zxdgSurf, dswlSurface, surface); + + pub->addSurface(zxdgSurf); + // emit a signal of the zxdg surface created + pub->__zxdgSurfaceCreatedSignal.emit(zxdgSurf); + } } void DSWaylandZxdgShellV6Private::zxdg_shell_v6_pong(zxdg_shell_v6::Resource *resource, uint32_t serial) { @@ -226,6 +239,18 @@ struct ::wl_resource *DSWaylandZxdgSurfaceV6::getWlSurface(void) return priv->getWlSurface(); } +void DSWaylandZxdgSurfaceV6::setSurface(DSWaylandSurface *surface) +{ + DS_GET_PRIV(DSWaylandZxdgSurfaceV6); + priv->setSurface(surface); +} + +DSWaylandSurface *DSWaylandZxdgSurfaceV6::getSurface(void) +{ + DS_GET_PRIV(DSWaylandZxdgSurfaceV6); + return priv->getSurface(); +} + void DSWaylandZxdgSurfaceV6::setWindowTitle(const std::string &title) { DS_GET_PRIV(DSWaylandZxdgSurfaceV6); @@ -269,7 +294,8 @@ std::string DSWaylandZxdgSurfaceV6::getAppID() DSWaylandZxdgSurfaceV6Private::DSWaylandZxdgSurfaceV6Private(DSWaylandZxdgSurfaceV6 *p_ptr) - : DSObjectPrivate(p_ptr), __p_ptr(p_ptr), __x(0), __y(0), __w(0), __h(0) + : DSObjectPrivate(p_ptr), __p_ptr(p_ptr), __x(0), __y(0), __w(0), __h(0), + __wlSurface(nullptr), __dsSurface(nullptr) { } @@ -287,6 +313,16 @@ struct ::wl_resource *DSWaylandZxdgSurfaceV6Private::getWlSurface(void) return __wlSurface; } +void DSWaylandZxdgSurfaceV6Private::setSurface(DSWaylandSurface *surface) +{ + __dsSurface = surface; +} + +DSWaylandSurface *DSWaylandZxdgSurfaceV6Private::getSurface(void) +{ + return __dsSurface; +} + void DSWaylandZxdgSurfaceV6Private::zxdg_surface_v6_bind_resource(zxdg_surface_v6::Resource *resource) { } diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.h b/src/DSWaylandServer/DSWaylandZxdgShellV6.h index 2883fd9..0ff0c63 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6.h +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.h @@ -76,8 +76,11 @@ public: void init(struct ::wl_client *client, int id, int ver); // TODO: Do we use ::wl_resource or DSWaylandSurface? - void setWlSurface(struct ::wl_resource *surface); - struct ::wl_resource *getWlSurface(void); + void setWlSurface(struct ::wl_resource *surface) override; + struct ::wl_resource *getWlSurface(void) override; + + void setSurface(DSWaylandSurface *surface) override; + DSWaylandSurface *getSurface(void) override; void setWindowTitle(const std::string &title); void setAppID(const std::string &appId); diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h index 795e8ad..4bb2ffe 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h @@ -70,6 +70,9 @@ public: void setWlSurface(struct ::wl_resource *surface); struct ::wl_resource *getWlSurface(void); + void setSurface(DSWaylandSurface *surface); + DSWaylandSurface *getSurface(void); + protected: void zxdg_surface_v6_bind_resource(zxdg_surface_v6::Resource *resource) override; void zxdg_surface_v6_destroy_resource(zxdg_surface_v6::Resource *resource) override; @@ -88,8 +91,8 @@ protected: std::string getAppID(); private: - DSWindow *window; struct ::wl_resource *__wlSurface; + DSWaylandSurface *__dsSurface; DSWaylandZxdgToplevelV6 *__toplevel; DSWaylandZxdgPopupV6 *__popup; DSWaylandZxdgSurfaceV6::Xdg_Surface_Role __role; diff --git a/src/DSWaylandServer/IDSWaylandShell.h b/src/DSWaylandServer/IDSWaylandShell.h index a541ea4..53d5cae 100644 --- a/src/DSWaylandServer/IDSWaylandShell.h +++ b/src/DSWaylandServer/IDSWaylandShell.h @@ -4,7 +4,7 @@ #include #include #include - +#include "DSWaylandSurface.h" #include namespace display_server @@ -29,6 +29,9 @@ public: // TODO: we need change ::wl_resource to DSWaylandSurface virtual void setWlSurface(struct ::wl_resource *surface) = 0; virtual struct ::wl_resource *getWlSurface(void) = 0; + + virtual void setSurface(DSWaylandSurface *surface) = 0; + virtual DSWaylandSurface *getSurface(void) = 0; }; diff --git a/tests/DSWaylandZxdgShellV6-test.cpp b/tests/DSWaylandZxdgShellV6-test.cpp index 1e7f302..4771e30 100644 --- a/tests/DSWaylandZxdgShellV6-test.cpp +++ b/tests/DSWaylandZxdgShellV6-test.cpp @@ -71,6 +71,24 @@ TEST_F(DSWaylandZxdgShellV6Test, NewDSWaylandZxdgSurfaceV6) delete zxdgSurface; } +TEST_F(DSWaylandZxdgShellV6Test, SetSurface) +{ + auto dsSurface = std::make_shared(); + EXPECT_TRUE(dsSurface != nullptr); + + auto zxdgSurface = std::make_shared(); + EXPECT_TRUE(zxdgSurface != nullptr); + + if (zxdgSurface && dsSurface) + { + DSWaylandSurface *ptrDsSurface = dsSurface.get(); + zxdgSurface->setSurface(ptrDsSurface); + + DSWaylandSurface *resultSurf = zxdgSurface->getSurface(); + EXPECT_TRUE(resultSurf == ptrDsSurface); + } +} + TEST_F(DSWaylandZxdgShellV6Test, SurfaceSetWindowTitle) { DSWaylandZxdgSurfaceV6 *zxdgSurface = new DSWaylandZxdgSurfaceV6; -- 2.7.4 From 216a2baa1652a803499c1437c1d45b8e70be3c3d Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Wed, 12 Aug 2020 12:04:03 +0900 Subject: [PATCH 09/16] DSZone: add code to find DSWindowShell by DSWaylandSurface Change-Id: Ib063a1203b4b948c066b7a24ffc3289f78527648 --- src/DSCore/DSCore.h | 1 + src/DSZone/DSZone.cpp | 36 +++++++++++++++++++++++++++++++++++- src/DSZone/DSZone.h | 3 +++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/src/DSCore/DSCore.h b/src/DSCore/DSCore.h index e47fe64..181c8bf 100644 --- a/src/DSCore/DSCore.h +++ b/src/DSCore/DSCore.h @@ -9,6 +9,7 @@ #include #include #include +#include /* Macros for visibility */ #define DS_DECL_EXPORT __attribute__((visibility("default"))) diff --git a/src/DSZone/DSZone.cpp b/src/DSZone/DSZone.cpp index 6d6f262..06af517 100644 --- a/src/DSZone/DSZone.cpp +++ b/src/DSZone/DSZone.cpp @@ -90,6 +90,19 @@ void DSZone::__onShellSurfaceCreated(IDSWaylandShellSurface *waylandShellSurface { struct ::wl_resource *wlSurface = waylandShellSurface->getWlSurface(); DSLOG_DBG("DSZone", "get wl_surface:%p", wlSurface); + + DSWaylandSurface *dsSurface = waylandShellSurface->getSurface(); + DSLOG_DBG("DSZone", "get DSWaylandSurface:%p", dsSurface); + + if (dsSurface) + { + // find DSWindowShell associated with DSWaylandSurface + DSWindowShell *dsWinShell = __findWindowShell(dsSurface); + if (dsWinShell) + { + DSLOG_DBG("DSZONE", "Find DSWindowShell (%p)... setWlShellSurface!", dsWinShell); + } + } } } @@ -119,6 +132,24 @@ std::shared_ptr DSZone::__findWindow(DSWaylandSurface *dswlSurface) return nullptr; } +DSWindowShell *DSZone::__findWindowShell(DSWaylandSurface *dswlSurface) +{ + DSWindowShell *dsWinShell = nullptr; + + std::map::iterator iter; + iter = __windowShellMap.find(dswlSurface); + if(iter == __windowShellMap.end()) + { + DSLOG_DBG("DSZone", "Doesn't Exist DSWindowShell... DSWaylandSurface(%p)", dswlSurface); + return nullptr; + } + + dsWinShell = iter->second; + DSLOG_DBG("DSZone", "Find DSWindowShell(%p)... DSWaylandSurface(%p)", dsWinShell, dswlSurface); + + return dsWinShell; +} + std::shared_ptr DSZone::__createWindow(std::shared_ptr waylandSurface) { std::shared_ptr window = std::make_shared(waylandSurface); @@ -132,8 +163,11 @@ std::shared_ptr DSZone::__createWindow(std::shared_ptr DSZone::__createWindowShell(std::shared_ptr window) { - std::shared_ptr shell = std::make_shared(window.get()); + DSWindow *ptrWindow = window.get(); + + std::shared_ptr shell = std::make_shared(ptrWindow); __windowShellList.push_front(shell); + __windowShellMap.insert(std::make_pair(ptrWindow->surface(), shell.get())); // emit a signal of the shell created __windowShellCreatedSignal.emit(shell); diff --git a/src/DSZone/DSZone.h b/src/DSZone/DSZone.h index 44591da..6502b57 100644 --- a/src/DSZone/DSZone.h +++ b/src/DSZone/DSZone.h @@ -42,6 +42,7 @@ private: std::shared_ptr __createWindow(std::shared_ptr waylandSurface); std::shared_ptr __createWindowShell(std::shared_ptr window); std::shared_ptr __findWindow(DSWaylandSurface *dswlSurface); + DSWindowShell* __findWindowShell(DSWaylandSurface *dswlSurface); stPosition __position; stSize __size; @@ -50,6 +51,8 @@ private: DSWaylandCompositor *__waylandCompositor; IDSWaylandShell *__waylandShell; + std::map __windowShellMap; + // signals DSSignal> __windowCreatedSignal; DSSignal> __windowShellCreatedSignal; -- 2.7.4 From 4fad2772d839fa97067e0fb1c8d06b2a6562d0fc Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 12 Aug 2020 14:50:10 +0900 Subject: [PATCH 10/16] all files: add LICENSE information Change-Id: I4b4fba3fbcf7bc7820c6506ce057c05e3b9c2d3a Signed-off-by: Sung-Jin Park --- samples/exampleClient.c | 23 ++++++++++ samples/exampleClientNoShellRendering.cpp | 23 ++++++++++ samples/exampleClientShellRendering.cpp | 23 ++++++++++ samples/exampleCompositor.cpp | 23 ++++++++++ samples/exampleObjectPimpl.cpp | 23 ++++++++++ samples/exampleProperty.cpp | 23 ++++++++++ samples/exampleSignalSlot.cpp | 23 ++++++++++ src/DSBase/DSRefBase.h | 23 ++++++++++ src/DSBuffer/DSBufferManager.cpp | 23 ++++++++++ src/DSBuffer/DSBufferManager.h | 23 ++++++++++ src/DSBuffer/DSBufferManagerPrivate.h | 23 ++++++++++ src/DSBuffer/DSBufferQueueTBMImpl.cpp | 23 ++++++++++ src/DSBuffer/DSBufferQueueTBMImpl.h | 23 ++++++++++ src/DSBuffer/DSBufferRef.cpp | 23 ++++++++++ src/DSBuffer/DSBufferRef.h | 23 ++++++++++ src/DSBuffer/DSBufferRefPrivate.h | 23 ++++++++++ src/DSBuffer/DSBufferTBMImpl.cpp | 23 ++++++++++ src/DSBuffer/DSBufferTBMImpl.h | 23 ++++++++++ src/DSBuffer/IDSBuffer.h | 25 ++++++++++- src/DSBuffer/IDSBufferQueue.h | 23 ++++++++++ src/DSCallback/DSCallback.h | 23 ++++++++++ src/DSCanvas/DSCanvas.cpp | 23 ++++++++++ src/DSCanvas/DSCanvas.h | 25 ++++++++++- src/DSCanvas/DSCanvasPrivate.h | 25 ++++++++++- src/DSClient/DSClient.cpp | 23 ++++++++++ src/DSClient/DSClient.h | 25 ++++++++++- src/DSClient/DSClientPrivate.h | 25 ++++++++++- src/DSCompositor/DSCompositor.cpp | 25 ++++++++++- src/DSCompositor/DSCompositor.h | 25 ++++++++++- src/DSCompositor/DSCompositorPrivate.h | 23 ++++++++++ src/DSCore/DSCore.h | 23 ++++++++++ src/DSCore/DSStruct.h | 23 ++++++++++ src/DSDebug/DSDebugLog.cpp | 22 ++++++++++ src/DSDebug/DSDebugLog.h | 23 ++++++++++ src/DSDisplayArea/DSDisplayArea.cpp | 23 ++++++++++ src/DSDisplayArea/DSDisplayArea.h | 23 ++++++++++ src/DSDisplayArea/DSDisplayAreaPrivate.h | 23 ++++++++++ src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp | 22 ++++++++++ src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.h | 25 ++++++++++- .../DSDisplayDeviceHWCWindowTDMImpl.cpp | 22 ++++++++++ .../DSDisplayDeviceHWCWindowTDMImpl.h | 23 ++++++++++ .../DSDisplayDeviceHWCWindowTDMTargetImpl.cpp | 22 ++++++++++ .../DSDisplayDeviceHWCWindowTDMTargetImpl.h | 23 ++++++++++ .../DSDisplayDeviceOutputModeTDMImpl.cpp | 22 ++++++++++ .../DSDisplayDeviceOutputModeTDMImpl.h | 25 ++++++++++- .../DSDisplayDeviceOutputTDMImpl.cpp | 23 ++++++++++ src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h | 23 ++++++++++ src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp | 23 ++++++++++ src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h | 23 ++++++++++ src/DSDisplayDevice/IDSDisplayDevice.h | 23 ++++++++++ src/DSDisplayDevice/IDSDisplayDeviceHWC.h | 23 ++++++++++ src/DSDisplayDevice/IDSDisplayDeviceHWCWindow.h | 23 ++++++++++ src/DSDisplayDevice/IDSDisplayDeviceOutput.h | 23 ++++++++++ src/DSDisplayDevice/IDSDisplayDeviceOutputMode.h | 23 ++++++++++ src/DSEventLoop/DSEventLoop.cpp | 23 ++++++++++ src/DSEventLoop/DSEventLoop.h | 25 ++++++++++- src/DSInput/DSInput.cpp | 23 ++++++++++ src/DSInput/DSInput.h | 23 ++++++++++ src/DSInput/DSInputEvent.h | 23 ++++++++++ src/DSInput/DSInputPrivate.h | 25 ++++++++++- src/DSInput/DSLibinput.cpp | 23 ++++++++++ src/DSInput/DSLibinput.h | 25 ++++++++++- src/DSObject/DSObject.cpp | 23 ++++++++++ src/DSObject/DSObject.h | 23 ++++++++++ src/DSObject/DSObjectPrivate.cpp | 23 ++++++++++ src/DSObject/DSObjectPrivate.h | 23 ++++++++++ src/DSObject/IDSObjectObserver.h | 23 ++++++++++ src/DSOutput/DSOutputImpl.cpp | 23 ++++++++++ src/DSOutput/DSOutputImpl.h | 25 ++++++++++- src/DSOutput/IDSOutput.h | 25 ++++++++++- src/DSPolicyArea/DSPolicyArea.cpp | 25 ++++++++++- src/DSPolicyArea/DSPolicyArea.h | 25 ++++++++++- src/DSPolicyArea/DSPolicyAreaPrivate.h | 25 ++++++++++- src/DSProperty/DSProperty.cpp | 23 ++++++++++ src/DSProperty/DSProperty.h | 23 ++++++++++ src/DSProperty/DSPropertyPrivate.cpp | 23 ++++++++++ src/DSProperty/DSPropertyPrivate.h | 23 ++++++++++ src/DSRender/DSRenderEngineDaliImpl.cpp | 23 ++++++++++ src/DSRender/DSRenderEngineDaliImpl.h | 23 ++++++++++ src/DSRender/DSRenderEngineEcoreEvasImpl.cpp | 23 ++++++++++ src/DSRender/DSRenderEngineEcoreEvasImpl.h | 23 ++++++++++ src/DSRender/DSRenderView.cpp | 23 ++++++++++ src/DSRender/DSRenderView.h | 23 ++++++++++ src/DSRender/DSRenderViewDaliImpl.cpp | 23 ++++++++++ src/DSRender/DSRenderViewDaliImpl.h | 23 ++++++++++ src/DSRender/DSRenderViewEcoreEvasImpl.cpp | 23 ++++++++++ src/DSRender/DSRenderViewEcoreEvasImpl.h | 23 ++++++++++ src/DSRender/IDSRenderEngine.h | 23 ++++++++++ src/DSSeat/DSKeyboard.cpp | 23 ++++++++++ src/DSSeat/DSKeyboard.h | 25 ++++++++++- src/DSSeat/DSPointer.cpp | 25 ++++++++++- src/DSSeat/DSPointer.h | 25 ++++++++++- src/DSSeat/DSSeat.cpp | 23 ++++++++++ src/DSSeat/DSSeat.h | 23 ++++++++++ src/DSSeat/DSTouch.cpp | 25 ++++++++++- src/DSSeat/DSTouch.h | 25 ++++++++++- src/DSSignal/DSSignal.cpp | 23 ++++++++++ src/DSSignal/DSSignal.h | 23 ++++++++++ src/DSTextInput/DSTextInput.cpp | 23 ++++++++++ src/DSTextInput/DSTextInput.h | 23 ++++++++++ src/DSTextInput/DSTextInputPrivate.h | 23 ++++++++++ src/DSWaylandExtension/DSTizenAppinfo.cpp | 25 ++++++++++- src/DSWaylandExtension/DSTizenAppinfo.h | 25 ++++++++++- src/DSWaylandExtension/DSTizenAppinfoMgr.cpp | 25 ++++++++++- src/DSWaylandExtension/DSTizenAppinfoMgr.h | 25 ++++++++++- src/DSWaylandExtension/DSWaylandExtension.cpp | 23 ++++++++++ src/DSWaylandExtension/DSWaylandExtension.h | 25 ++++++++++- src/DSWaylandExtension/DSWaylandExtensionPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandBuffer.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandBuffer.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandBufferPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandCallback.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandCallback.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandCallbackPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandClient.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandClient.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandClientPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandCompositor.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandCompositor.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandCompositorPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputMethod.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputMethod.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputMethodContext.h | 23 ++++++++++ .../DSWaylandInputMethodContextPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputMethodPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputPanel.cpp | 25 ++++++++++- src/DSWaylandServer/DSWaylandInputPanel.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputPanelPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandInputPanelSurface.h | 23 ++++++++++ .../DSWaylandInputPanelSurfacePrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandKeyboard.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandKeyboard.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandKeyboardPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandOutput.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandOutput.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandOutputPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandPointer.cpp | 25 ++++++++++- src/DSWaylandServer/DSWaylandPointer.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandPointerPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandSeat.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandSeat.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandSeatPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandSurface.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandSurface.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandSurfacePrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTextInput.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTextInput.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTextInputManager.h | 23 ++++++++++ .../DSWaylandTextInputManagerPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTextInputPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenAppinfo.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenAppinfo.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenAppinfoPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenIndicator.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenIndicator.h | 23 ++++++++++ .../DSWaylandTizenIndicatorPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenInputDevice.h | 23 ++++++++++ .../DSWaylandTizenInputDeviceManager.cpp | 23 ++++++++++ .../DSWaylandTizenInputDeviceManager.h | 23 ++++++++++ .../DSWaylandTizenInputDeviceManagerPrivate.h | 23 ++++++++++ .../DSWaylandTizenInputDevicePrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenPolicy.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenPolicy.h | 25 ++++++++++- src/DSWaylandServer/DSWaylandTizenPolicyPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenPosition.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenPosition.h | 23 ++++++++++ .../DSWaylandTizenPositionPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenSurface.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenSurface.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTizenSurfacePrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTouch.cpp | 25 ++++++++++- src/DSWaylandServer/DSWaylandTouch.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandTouchPrivate.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandZxdgShellV6.cpp | 23 ++++++++++ src/DSWaylandServer/DSWaylandZxdgShellV6.h | 23 ++++++++++ src/DSWaylandServer/DSWaylandZxdgShellV6Private.h | 23 ++++++++++ src/DSWaylandServer/IDSWaylandShell.h | 23 ++++++++++ src/DSWindow/DSWindow.cpp | 25 ++++++++++- src/DSWindow/DSWindow.h | 25 ++++++++++- src/DSWindow/DSWindowPrivate.h | 25 ++++++++++- src/DSWindowShell/DSWindowShell.cpp | 25 ++++++++++- src/DSWindowShell/DSWindowShell.h | 25 ++++++++++- src/DSWindowShell/DSWindowShellPrivate.cpp | 25 ++++++++++- src/DSWindowShell/DSWindowShellPrivate.h | 25 ++++++++++- src/DSXkb/DSXkb.cpp | 23 ++++++++++ src/DSXkb/DSXkb.h | 23 ++++++++++ src/DSXkb/DSXkbPrivate.h | 23 ++++++++++ src/DSZone/DSZone.cpp | 23 ++++++++++ src/DSZone/DSZone.h | 23 ++++++++++ tests/DSBufferManager-test.cpp | 23 ++++++++++ tests/DSBufferRef-test.cpp | 23 ++++++++++ tests/DSBufferTBMImpl-test.cpp | 23 ++++++++++ tests/DSCanvas-test.cpp | 23 ++++++++++ tests/DSClient-test.cpp | 23 ++++++++++ tests/DSCompositor-test.cpp | 23 ++++++++++ tests/DSDebugLog-test.cpp | 25 ++++++++++- tests/DSDisplayArea-test.cpp | 23 ++++++++++ tests/DSDisplayDeviceTDMImpl-test.cpp | 25 ++++++++++- tests/DSEventLoop-test.cpp | 23 ++++++++++ tests/DSInput-test.cpp | 23 ++++++++++ tests/DSKeyboard-test.cpp | 23 ++++++++++ tests/DSObject-test.cpp | 23 ++++++++++ tests/DSOutputImpl-test.cpp | 23 ++++++++++ tests/DSPointer-test.cpp | 23 ++++++++++ tests/DSPolicyArea-test.cpp | 25 ++++++++++- tests/DSProperty-test.cpp | 23 ++++++++++ tests/DSRefBase-test.cpp | 23 ++++++++++ tests/DSRenderEngineDaliImpl-test.cpp | 23 ++++++++++ tests/DSRenderEngineEcoreEvasImpl-test.cpp | 23 ++++++++++ tests/DSSeat-test.cpp | 23 ++++++++++ tests/DSSignal-test.cpp | 23 ++++++++++ tests/DSTextInput-test.cpp | 23 ++++++++++ tests/DSTizenAppinfo-test.cpp | 25 ++++++++++- tests/DSTouch-test.cpp | 23 ++++++++++ tests/DSWaylandBuffer-test.cpp | 23 ++++++++++ tests/DSWaylandCallback-test.cpp | 23 ++++++++++ tests/DSWaylandClient-test.cpp | 23 ++++++++++ tests/DSWaylandCompositor-test.cpp | 23 ++++++++++ tests/DSWaylandExtension-test.cpp | 23 ++++++++++ tests/DSWaylandInputMethod-test.cpp | 23 ++++++++++ tests/DSWaylandInputMethodContext-test.cpp | 23 ++++++++++ tests/DSWaylandInputPanel-test.cpp | 23 ++++++++++ tests/DSWaylandInputPanelSurface-test.cpp | 23 ++++++++++ tests/DSWaylandKeyboard-test.cpp | 23 ++++++++++ tests/DSWaylandOutput-test.cpp | 23 ++++++++++ tests/DSWaylandPointer-test.cpp | 23 ++++++++++ tests/DSWaylandSeat-test.cpp | 23 ++++++++++ tests/DSWaylandSurface-test.cpp | 23 ++++++++++ tests/DSWaylandTextInput-test.cpp | 23 ++++++++++ tests/DSWaylandTextInputManager-test.cpp | 23 ++++++++++ tests/DSWaylandTizenAppinfo-test.cpp | 25 ++++++++++- tests/DSWaylandTizenIndicator-test.cpp | 25 ++++++++++- tests/DSWaylandTizenInputDevice-test.cpp | 23 ++++++++++ tests/DSWaylandTizenInputDeviceManager-test.cpp | 23 ++++++++++ tests/DSWaylandTizenPolicy-test.cpp | 23 ++++++++++ tests/DSWaylandTizenSurface-test.cpp | 23 ++++++++++ tests/DSWaylandTouch-test.cpp | 23 ++++++++++ tests/DSWaylandZxdgShellV6-test.cpp | 23 ++++++++++ tests/DSWindow-test.cpp | 23 ++++++++++ tests/DSWindowShell-test.cpp | 23 ++++++++++ tests/DSXkb-test.cpp | 23 ++++++++++ tests/DSZone-test.cpp | 23 ++++++++++ tests/libds-mock.h | 51 ++++++++++------------ tests/libds-tests.cpp | 51 ++++++++++------------ tests/libds-tests.h | 51 ++++++++++------------ 245 files changed, 5677 insertions(+), 125 deletions(-) diff --git a/samples/exampleClient.c b/samples/exampleClient.c index 8a9edd0..a8c262d 100644 --- a/samples/exampleClient.c +++ b/samples/exampleClient.c @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleClientNoShellRendering.cpp b/samples/exampleClientNoShellRendering.cpp index f08ee70..5922d0d 100644 --- a/samples/exampleClientNoShellRendering.cpp +++ b/samples/exampleClientNoShellRendering.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleClientShellRendering.cpp b/samples/exampleClientShellRendering.cpp index c34dd90..bc98223 100644 --- a/samples/exampleClientShellRendering.cpp +++ b/samples/exampleClientShellRendering.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleCompositor.cpp b/samples/exampleCompositor.cpp index 438c642..601658b 100644 --- a/samples/exampleCompositor.cpp +++ b/samples/exampleCompositor.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleObjectPimpl.cpp b/samples/exampleObjectPimpl.cpp index 369c35e..0ea9beb 100644 --- a/samples/exampleObjectPimpl.cpp +++ b/samples/exampleObjectPimpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleProperty.cpp b/samples/exampleProperty.cpp index 70f62c8..379af73 100644 --- a/samples/exampleProperty.cpp +++ b/samples/exampleProperty.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/samples/exampleSignalSlot.cpp b/samples/exampleSignalSlot.cpp index 9cbb9b2..be91d27 100644 --- a/samples/exampleSignalSlot.cpp +++ b/samples/exampleSignalSlot.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include #include #include diff --git a/src/DSBase/DSRefBase.h b/src/DSBase/DSRefBase.h index f8e6a48..a2579f7 100644 --- a/src/DSBase/DSRefBase.h +++ b/src/DSBase/DSRefBase.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_REF_BASE_H_ #define __DS_REF_BASE_H_ diff --git a/src/DSBuffer/DSBufferManager.cpp b/src/DSBuffer/DSBufferManager.cpp index 28a9275..8c96912 100644 --- a/src/DSBuffer/DSBufferManager.cpp +++ b/src/DSBuffer/DSBufferManager.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSBufferManager.h" #include "DSBufferManagerPrivate.h" #include "DSDebugLog.h" diff --git a/src/DSBuffer/DSBufferManager.h b/src/DSBuffer/DSBufferManager.h index 6cec3c6..eddc501 100644 --- a/src/DSBuffer/DSBufferManager.h +++ b/src/DSBuffer/DSBufferManager.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_MANAGER_H__ #define __DS_BUFFER_MANAGER_H__ diff --git a/src/DSBuffer/DSBufferManagerPrivate.h b/src/DSBuffer/DSBufferManagerPrivate.h index 14a7adc..24e80ba 100644 --- a/src/DSBuffer/DSBufferManagerPrivate.h +++ b/src/DSBuffer/DSBufferManagerPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_MANAGER_PRIVATE_H__ #define __DS_BUFFER_MANAGER_PRIVATE_H__ diff --git a/src/DSBuffer/DSBufferQueueTBMImpl.cpp b/src/DSBuffer/DSBufferQueueTBMImpl.cpp index f0ae5b3..eed20ff 100644 --- a/src/DSBuffer/DSBufferQueueTBMImpl.cpp +++ b/src/DSBuffer/DSBufferQueueTBMImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSBufferQueueTBMImpl.h" #include "DSBufferTBMImpl.h" #include "DSDebugLog.h" diff --git a/src/DSBuffer/DSBufferQueueTBMImpl.h b/src/DSBuffer/DSBufferQueueTBMImpl.h index f5919b3..27b8165 100644 --- a/src/DSBuffer/DSBufferQueueTBMImpl.h +++ b/src/DSBuffer/DSBufferQueueTBMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_QUEUE_TBM_IMPL_H_ #define __DS_BUFFER_QUEUE_TBM_IMPL_H_ diff --git a/src/DSBuffer/DSBufferRef.cpp b/src/DSBuffer/DSBufferRef.cpp index e454f09..2dce15e 100644 --- a/src/DSBuffer/DSBufferRef.cpp +++ b/src/DSBuffer/DSBufferRef.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSBufferRef.h" #include "DSBufferRefPrivate.h" #include "DSDebugLog.h" diff --git a/src/DSBuffer/DSBufferRef.h b/src/DSBuffer/DSBufferRef.h index 27ab348..b96d016 100644 --- a/src/DSBuffer/DSBufferRef.h +++ b/src/DSBuffer/DSBufferRef.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_REF_H__ #define __DS_BUFFER_REF_H__ diff --git a/src/DSBuffer/DSBufferRefPrivate.h b/src/DSBuffer/DSBufferRefPrivate.h index a429880..40f1fb2 100644 --- a/src/DSBuffer/DSBufferRefPrivate.h +++ b/src/DSBuffer/DSBufferRefPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_REF_PRIVATE_H__ #define __DS_BUFFER_REF_PRIVATE_H__ diff --git a/src/DSBuffer/DSBufferTBMImpl.cpp b/src/DSBuffer/DSBufferTBMImpl.cpp index f3f97cb..faa906a 100644 --- a/src/DSBuffer/DSBufferTBMImpl.cpp +++ b/src/DSBuffer/DSBufferTBMImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSBufferTBMImpl.h" #include "DSDebugLog.h" #include diff --git a/src/DSBuffer/DSBufferTBMImpl.h b/src/DSBuffer/DSBufferTBMImpl.h index 2be30fe..642ff4f 100644 --- a/src/DSBuffer/DSBufferTBMImpl.h +++ b/src/DSBuffer/DSBufferTBMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_BUFFER_TBM_IMPL_H_ #define __DS_BUFFER_TBM_IMPL_H_ diff --git a/src/DSBuffer/IDSBuffer.h b/src/DSBuffer/IDSBuffer.h index 27075c7..ff3413c 100644 --- a/src/DSBuffer/IDSBuffer.h +++ b/src/DSBuffer/IDSBuffer.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_BUFFER_H_ #define __I_DS_BUFFER_H_ @@ -26,4 +49,4 @@ public: } -#endif \ No newline at end of file +#endif diff --git a/src/DSBuffer/IDSBufferQueue.h b/src/DSBuffer/IDSBufferQueue.h index b158072..5a8a4a0 100644 --- a/src/DSBuffer/IDSBufferQueue.h +++ b/src/DSBuffer/IDSBufferQueue.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_BUFFER_QUEUE_H__ #define __I_DS_BUFFER_QUEUE_H__ diff --git a/src/DSCallback/DSCallback.h b/src/DSCallback/DSCallback.h index 9746f2e..477ca7c 100644 --- a/src/DSCallback/DSCallback.h +++ b/src/DSCallback/DSCallback.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_CALLBACK_H_ #define __DS_CALLBACK_H_ diff --git a/src/DSCanvas/DSCanvas.cpp b/src/DSCanvas/DSCanvas.cpp index a1fc99e..ded3bff 100644 --- a/src/DSCanvas/DSCanvas.cpp +++ b/src/DSCanvas/DSCanvas.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSCanvas.h" #include "DSCanvasPrivate.h" #include "DSPolicyAreaPrivate.h" diff --git a/src/DSCanvas/DSCanvas.h b/src/DSCanvas/DSCanvas.h index 830f615..95c3f0e 100644 --- a/src/DSCanvas/DSCanvas.h +++ b/src/DSCanvas/DSCanvas.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_CANVAS_H__ #define __DS_CANVAS_H__ @@ -24,4 +47,4 @@ public: } -#endif \ No newline at end of file +#endif diff --git a/src/DSCanvas/DSCanvasPrivate.h b/src/DSCanvas/DSCanvasPrivate.h index ce34d63..b1735f4 100644 --- a/src/DSCanvas/DSCanvasPrivate.h +++ b/src/DSCanvas/DSCanvasPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_CANVAS_PRIVATE_H__ #define __DS_CANVAS_PRIVATE_H__ @@ -27,4 +50,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSClient/DSClient.cpp b/src/DSClient/DSClient.cpp index 45b72ac..1c6afc7 100644 --- a/src/DSClient/DSClient.cpp +++ b/src/DSClient/DSClient.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSClient.h" #include "DSClientPrivate.h" #include "DSWaylandCompositor.h" diff --git a/src/DSClient/DSClient.h b/src/DSClient/DSClient.h index 9f851ce..d645184 100644 --- a/src/DSClient/DSClient.h +++ b/src/DSClient/DSClient.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_SEAT_H__ #define __DS_SEAT_H__ @@ -33,4 +56,4 @@ private: } -#endif //__DS_SEAT_H__ \ No newline at end of file +#endif //__DS_SEAT_H__ diff --git a/src/DSClient/DSClientPrivate.h b/src/DSClient/DSClientPrivate.h index 62ef3b8..bef50f2 100644 --- a/src/DSClient/DSClientPrivate.h +++ b/src/DSClient/DSClientPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_SEAT_PRIVATE_H__ #define __DS_SEAT_PRIVATE_H__ @@ -27,4 +50,4 @@ private: } -#endif //__DS_SEAT_PRIVATE_H__ \ No newline at end of file +#endif //__DS_SEAT_PRIVATE_H__ diff --git a/src/DSCompositor/DSCompositor.cpp b/src/DSCompositor/DSCompositor.cpp index f042897..1c46a96 100644 --- a/src/DSCompositor/DSCompositor.cpp +++ b/src/DSCompositor/DSCompositor.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSCore.h" #include "DSCompositor.h" #include "DSCompositorPrivate.h" @@ -124,4 +147,4 @@ void DSCompositorPrivate::__initializeBufferManager() __dsBufferManager = DSBufferManager::getInstance(); } -} // namespace display_server \ No newline at end of file +} // namespace display_server diff --git a/src/DSCompositor/DSCompositor.h b/src/DSCompositor/DSCompositor.h index 0d04919..2307859 100644 --- a/src/DSCompositor/DSCompositor.h +++ b/src/DSCompositor/DSCompositor.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_COMPOSITOR_H__ #define __DS_COMPOSITOR_H__ @@ -32,4 +55,4 @@ protected: } -#endif \ No newline at end of file +#endif diff --git a/src/DSCompositor/DSCompositorPrivate.h b/src/DSCompositor/DSCompositorPrivate.h index 6df74b7..6e21ed8 100644 --- a/src/DSCompositor/DSCompositorPrivate.h +++ b/src/DSCompositor/DSCompositorPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_COMPOSITORPRIVATE_H__ #define __DS_COMPOSITORPRIVATE_H__ diff --git a/src/DSCore/DSCore.h b/src/DSCore/DSCore.h index 181c8bf..4ab573b 100644 --- a/src/DSCore/DSCore.h +++ b/src/DSCore/DSCore.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_CORE_H__ #define __DS_CORE_H__ diff --git a/src/DSCore/DSStruct.h b/src/DSCore/DSStruct.h index 01c997c..eb6da6c 100644 --- a/src/DSCore/DSStruct.h +++ b/src/DSCore/DSStruct.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_STRUCT_H__ #define __DS_STRUCT_H__ diff --git a/src/DSDebug/DSDebugLog.cpp b/src/DSDebug/DSDebugLog.cpp index 730a9ec..fd15355 100644 --- a/src/DSDebug/DSDebugLog.cpp +++ b/src/DSDebug/DSDebugLog.cpp @@ -1,3 +1,25 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include #include diff --git a/src/DSDebug/DSDebugLog.h b/src/DSDebug/DSDebugLog.h index 33c19b5..d9a3dad 100644 --- a/src/DSDebug/DSDebugLog.h +++ b/src/DSDebug/DSDebugLog.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DSDEBUG_H_ #define _DSDEBUG_H_ diff --git a/src/DSDisplayArea/DSDisplayArea.cpp b/src/DSDisplayArea/DSDisplayArea.cpp index 69c1118..00804e0 100644 --- a/src/DSDisplayArea/DSDisplayArea.cpp +++ b/src/DSDisplayArea/DSDisplayArea.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSDisplayArea.h" #include "DSDisplayAreaPrivate.h" #include "DSOutputImpl.h" diff --git a/src/DSDisplayArea/DSDisplayArea.h b/src/DSDisplayArea/DSDisplayArea.h index 8097d5c..b743b1d 100644 --- a/src/DSDisplayArea/DSDisplayArea.h +++ b/src/DSDisplayArea/DSDisplayArea.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_DISPLAY_AREA_H__ #define __DS_DISPLAY_AREA_H__ diff --git a/src/DSDisplayArea/DSDisplayAreaPrivate.h b/src/DSDisplayArea/DSDisplayAreaPrivate.h index 7323552..1b92f99 100644 --- a/src/DSDisplayArea/DSDisplayAreaPrivate.h +++ b/src/DSDisplayArea/DSDisplayAreaPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_DISPLAY_AREA_PRIVATE_H__ #define __DS_DISPLAY_AREA_PRIVATE_H__ diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp index 03bdf80..bb52d70 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.cpp @@ -1,3 +1,25 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include "DSDisplayDeviceHWCTDMImpl.h" #include "DSDisplayDeviceHWCWindowTDMImpl.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.h b/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.h index 3432b9e..f852caf 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCTDMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_DISPLAY_DEVICE_HWC_TDM_IMPL_H_ #define _DS_DISPLAY_DEVICE_HWC_TDM_IMPL_H_ @@ -38,4 +61,4 @@ private: }; } -#endif \ No newline at end of file +#endif diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.cpp index 54cce58..a1671ec 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.cpp @@ -1,3 +1,25 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include "DSDisplayDeviceHWCWindowTDMImpl.h" #include "DSDebugLog.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.h b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.h index 4ac989b..90ef3f5 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_HWC_WINDOW_TDM_IMPL_H_ #define _I_DS_DISPLAY_DEVICE_HWC_WINDOW_TDM_IMPL_H_ diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.cpp index 056b585..7008623 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.cpp @@ -1,3 +1,25 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include "DSDisplayDeviceHWCWindowTDMTargetImpl.h" #include "DSDebugLog.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.h b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.h index 027d553..e5c08d0 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceHWCWindowTDMTargetImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_HWC_WINDOW_TDM_TARGET_IMPL_H_ #define _I_DS_DISPLAY_DEVICE_HWC_WINDOW_TDM_TARGET_IMPL_H_ diff --git a/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.cpp index 371c4d3..cbae76e 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.cpp @@ -1,3 +1,25 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include "DSDisplayDeviceOutputModeTDMImpl.h" #include "DSDebugLog.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.h b/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.h index 5606b8c..29a4ba4 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceOutputModeTDMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_DISPLAY_DEVICE_OUTPUT_MODE_TDM_IMPL_H__ #define __DS_DISPLAY_DEVICE_OUTPUT_MODE_TDM_IMPL_H__ @@ -26,4 +49,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp index 514ae74..b167a01 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSDisplayDeviceOutputTDMImpl.h" #include "DSDisplayDeviceHWCTDMImpl.h" #include "DSDisplayDeviceOutputModeTDMImpl.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h b/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h index afd5294..6f411ab 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceOutputTDMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_OUTPUT_TDM_IMPL_H_ #define _I_DS_DISPLAY_DEVICE_OUTPUT_TDM_IMPL_H_ diff --git a/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp b/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp index 6f304ca..ecf0415 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp +++ b/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSDisplayDeviceTDMImpl.h" #include "DSDisplayDeviceOutputTDMImpl.h" #include "DSDisplayDeviceHWCTDMImpl.h" diff --git a/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h b/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h index df4bc05..5c6078b 100644 --- a/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h +++ b/src/DSDisplayDevice/DSDisplayDeviceTDMImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_DISPLAY_DEVICE_TDM_IMPL_H_ #define _DS_DISPLAY_DEVICE_TDM_IMPL_H_ diff --git a/src/DSDisplayDevice/IDSDisplayDevice.h b/src/DSDisplayDevice/IDSDisplayDevice.h index 1d4257f..18ea745 100644 --- a/src/DSDisplayDevice/IDSDisplayDevice.h +++ b/src/DSDisplayDevice/IDSDisplayDevice.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_H_ #define _I_DS_DISPLAY_DEVICE_H_ diff --git a/src/DSDisplayDevice/IDSDisplayDeviceHWC.h b/src/DSDisplayDevice/IDSDisplayDeviceHWC.h index e6abd81..ca02b5f 100644 --- a/src/DSDisplayDevice/IDSDisplayDeviceHWC.h +++ b/src/DSDisplayDevice/IDSDisplayDeviceHWC.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_HWC_H_ #define _I_DS_DISPLAY_DEVICE_HWC_H_ diff --git a/src/DSDisplayDevice/IDSDisplayDeviceHWCWindow.h b/src/DSDisplayDevice/IDSDisplayDeviceHWCWindow.h index deac3e6..cd18a5b 100644 --- a/src/DSDisplayDevice/IDSDisplayDeviceHWCWindow.h +++ b/src/DSDisplayDevice/IDSDisplayDeviceHWCWindow.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_HWC_WINDOW_H_ #define _I_DS_DISPLAY_DEVICE_HWC_WINDOW_H_ diff --git a/src/DSDisplayDevice/IDSDisplayDeviceOutput.h b/src/DSDisplayDevice/IDSDisplayDeviceOutput.h index 495d325..0a2d378 100644 --- a/src/DSDisplayDevice/IDSDisplayDeviceOutput.h +++ b/src/DSDisplayDevice/IDSDisplayDeviceOutput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _I_DS_DISPLAY_DEVICE_OUTPUT_H_ #define _I_DS_DISPLAY_DEVICE_OUTPUT_H_ diff --git a/src/DSDisplayDevice/IDSDisplayDeviceOutputMode.h b/src/DSDisplayDevice/IDSDisplayDeviceOutputMode.h index df8d6e5..c3509bd 100644 --- a/src/DSDisplayDevice/IDSDisplayDeviceOutputMode.h +++ b/src/DSDisplayDevice/IDSDisplayDeviceOutputMode.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_DISPLAY_DEVICE_OUTPUT_MODE_H__ #define __I_DS_DISPLAY_DEVICE_OUTPUT_MODE_H__ diff --git a/src/DSEventLoop/DSEventLoop.cpp b/src/DSEventLoop/DSEventLoop.cpp index 633a82e..26fdf07 100644 --- a/src/DSEventLoop/DSEventLoop.cpp +++ b/src/DSEventLoop/DSEventLoop.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSEventLoop.h" #include "DSDebugLog.h" #include diff --git a/src/DSEventLoop/DSEventLoop.h b/src/DSEventLoop/DSEventLoop.h index f11e733..c2ea27d 100644 --- a/src/DSEventLoop/DSEventLoop.h +++ b/src/DSEventLoop/DSEventLoop.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_EVENT_LOOP_H__ #define __DS_EVENT_LOOP_H__ @@ -44,4 +67,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSInput/DSInput.cpp b/src/DSInput/DSInput.cpp index a06024f..cb61726 100644 --- a/src/DSInput/DSInput.cpp +++ b/src/DSInput/DSInput.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSInput.h" #include "DSInputPrivate.h" #include "DSSeat.h" diff --git a/src/DSInput/DSInput.h b/src/DSInput/DSInput.h index 21b9f50..7d13d50 100644 --- a/src/DSInput/DSInput.h +++ b/src/DSInput/DSInput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DSINPUT_H_ #define _DSINPUT_H_ diff --git a/src/DSInput/DSInputEvent.h b/src/DSInput/DSInputEvent.h index a9b4f77..aa12dc2 100644 --- a/src/DSInput/DSInputEvent.h +++ b/src/DSInput/DSInputEvent.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_INPUT_EVENT_H_ #define _DS_INPUT_EVENT_H_ diff --git a/src/DSInput/DSInputPrivate.h b/src/DSInput/DSInputPrivate.h index 95b0c23..59b6741 100644 --- a/src/DSInput/DSInputPrivate.h +++ b/src/DSInput/DSInputPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DSINPUTPRIVATE_H_ #define _DSINPUTPRIVATE_H_ @@ -32,4 +55,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSInput/DSLibinput.cpp b/src/DSInput/DSLibinput.cpp index 25f3443..dd43408 100644 --- a/src/DSInput/DSLibinput.cpp +++ b/src/DSInput/DSLibinput.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSLibinput.h" #include #include diff --git a/src/DSInput/DSLibinput.h b/src/DSInput/DSLibinput.h index b934bd7..409a987 100644 --- a/src/DSInput/DSLibinput.h +++ b/src/DSInput/DSLibinput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DSLIBINPUT_H_ #define _DSLIBINPUT_H_ @@ -51,4 +74,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSObject/DSObject.cpp b/src/DSObject/DSObject.cpp index 2c0f327..d20665e 100644 --- a/src/DSObject/DSObject.cpp +++ b/src/DSObject/DSObject.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSObject.h" namespace display_server diff --git a/src/DSObject/DSObject.h b/src/DSObject/DSObject.h index bfefe32..6c79fbb 100644 --- a/src/DSObject/DSObject.h +++ b/src/DSObject/DSObject.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_OBJECT_H_ #define __DS_OBJECT_H_ diff --git a/src/DSObject/DSObjectPrivate.cpp b/src/DSObject/DSObjectPrivate.cpp index 6dee536..e14a26a 100644 --- a/src/DSObject/DSObjectPrivate.cpp +++ b/src/DSObject/DSObjectPrivate.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSObject.h" namespace display_server diff --git a/src/DSObject/DSObjectPrivate.h b/src/DSObject/DSObjectPrivate.h index 5eb8f58..8712b9a 100644 --- a/src/DSObject/DSObjectPrivate.h +++ b/src/DSObject/DSObjectPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_OBJECT_PRIVATE_H_ #define __DS_OBJECT_PRIVATE_H_ diff --git a/src/DSObject/IDSObjectObserver.h b/src/DSObject/IDSObjectObserver.h index 6f36717..516c265 100644 --- a/src/DSObject/IDSObjectObserver.h +++ b/src/DSObject/IDSObjectObserver.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_OBJECT_OBSERVER_H_ #define __I_DS_OBJECT_OBSERVER_H_ diff --git a/src/DSOutput/DSOutputImpl.cpp b/src/DSOutput/DSOutputImpl.cpp index 60dfbd8..3a8b7e8 100644 --- a/src/DSOutput/DSOutputImpl.cpp +++ b/src/DSOutput/DSOutputImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSOutputImpl.h" #include "DSDebugLog.h" diff --git a/src/DSOutput/DSOutputImpl.h b/src/DSOutput/DSOutputImpl.h index 528ce63..39757b2 100644 --- a/src/DSOutput/DSOutputImpl.h +++ b/src/DSOutput/DSOutputImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_OUTPUT_IMPL_H__ #define __I_DS_OUTPUT_IMPL_H__ @@ -27,4 +50,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSOutput/IDSOutput.h b/src/DSOutput/IDSOutput.h index 53a068d..543d753 100644 --- a/src/DSOutput/IDSOutput.h +++ b/src/DSOutput/IDSOutput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_OUTPUT_H__ #define __I_DS_OUTPUT_H__ @@ -16,4 +39,4 @@ public: } -#endif \ No newline at end of file +#endif diff --git a/src/DSPolicyArea/DSPolicyArea.cpp b/src/DSPolicyArea/DSPolicyArea.cpp index 55d86bf..3a380ae 100644 --- a/src/DSPolicyArea/DSPolicyArea.cpp +++ b/src/DSPolicyArea/DSPolicyArea.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSPolicyArea.h" #include "DSPolicyAreaPrivate.h" @@ -99,4 +122,4 @@ std::shared_ptr DSPolicyAreaPrivate::getZone() } -} // namespace display_server \ No newline at end of file +} // namespace display_server diff --git a/src/DSPolicyArea/DSPolicyArea.h b/src/DSPolicyArea/DSPolicyArea.h index 506ebb2..74c9b26 100644 --- a/src/DSPolicyArea/DSPolicyArea.h +++ b/src/DSPolicyArea/DSPolicyArea.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_POLICY_AREA_H__ #define __DS_POLICY_AREA_H__ @@ -24,4 +47,4 @@ public: } -#endif \ No newline at end of file +#endif diff --git a/src/DSPolicyArea/DSPolicyAreaPrivate.h b/src/DSPolicyArea/DSPolicyAreaPrivate.h index e99666c..c6431c2 100644 --- a/src/DSPolicyArea/DSPolicyAreaPrivate.h +++ b/src/DSPolicyArea/DSPolicyAreaPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_POLICY_AREA_PRIVATE_H__ #define __DS_POLICY_AREA_PRIVATE_H__ @@ -30,4 +53,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSProperty/DSProperty.cpp b/src/DSProperty/DSProperty.cpp index 76ef81c..ac581a7 100644 --- a/src/DSProperty/DSProperty.cpp +++ b/src/DSProperty/DSProperty.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSProperty.h" namespace display_server diff --git a/src/DSProperty/DSProperty.h b/src/DSProperty/DSProperty.h index 306b6f5..3039fba 100644 --- a/src/DSProperty/DSProperty.h +++ b/src/DSProperty/DSProperty.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_PROPERTY_H_ #define __DS_PROPERTY_H_ diff --git a/src/DSProperty/DSPropertyPrivate.cpp b/src/DSProperty/DSPropertyPrivate.cpp index 00dd756..c6f2ae8 100644 --- a/src/DSProperty/DSPropertyPrivate.cpp +++ b/src/DSProperty/DSPropertyPrivate.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSProperty.h" namespace display_server { diff --git a/src/DSProperty/DSPropertyPrivate.h b/src/DSProperty/DSPropertyPrivate.h index 5044991..d851a29 100644 --- a/src/DSProperty/DSPropertyPrivate.h +++ b/src/DSProperty/DSPropertyPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_PROPERTY_PRIVATE_H_ #define __DS_PROPERTY_PRIVATE_H_ diff --git a/src/DSRender/DSRenderEngineDaliImpl.cpp b/src/DSRender/DSRenderEngineDaliImpl.cpp index 2d2f85b..2ee8a4f 100644 --- a/src/DSRender/DSRenderEngineDaliImpl.cpp +++ b/src/DSRender/DSRenderEngineDaliImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSRenderEngineDaliImpl.h" #include "DSRenderViewDaliImpl.h" #include "DSDebugLog.h" diff --git a/src/DSRender/DSRenderEngineDaliImpl.h b/src/DSRender/DSRenderEngineDaliImpl.h index b3940d1..7c23148 100644 --- a/src/DSRender/DSRenderEngineDaliImpl.h +++ b/src/DSRender/DSRenderEngineDaliImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_RENDER_ENGINE_DALI_IMPL_H_ #define __DS_RENDER_ENGINE_DALI_IMPL_H_ diff --git a/src/DSRender/DSRenderEngineEcoreEvasImpl.cpp b/src/DSRender/DSRenderEngineEcoreEvasImpl.cpp index c211ad5..d2854fd 100644 --- a/src/DSRender/DSRenderEngineEcoreEvasImpl.cpp +++ b/src/DSRender/DSRenderEngineEcoreEvasImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSRenderEngineEcoreEvasImpl.h" #include "DSRenderViewEcoreEvasImpl.h" #include "DSDebugLog.h" diff --git a/src/DSRender/DSRenderEngineEcoreEvasImpl.h b/src/DSRender/DSRenderEngineEcoreEvasImpl.h index 5e9e696..cf23fba 100644 --- a/src/DSRender/DSRenderEngineEcoreEvasImpl.h +++ b/src/DSRender/DSRenderEngineEcoreEvasImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_RENDER_ENGINE_ECORE_EVAS_IMPL_H_ #define __DS_RENDER_ENGINE_ECORE_EVAS_IMPL_H_ diff --git a/src/DSRender/DSRenderView.cpp b/src/DSRender/DSRenderView.cpp index 7dd282d..fa7caf2 100644 --- a/src/DSRender/DSRenderView.cpp +++ b/src/DSRender/DSRenderView.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSRenderView.h" namespace display_server diff --git a/src/DSRender/DSRenderView.h b/src/DSRender/DSRenderView.h index b6eb9c2..71f95b2 100644 --- a/src/DSRender/DSRenderView.h +++ b/src/DSRender/DSRenderView.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_RENDER_VIEW_H__ #define __DS_RENDER_VIEW_H__ diff --git a/src/DSRender/DSRenderViewDaliImpl.cpp b/src/DSRender/DSRenderViewDaliImpl.cpp index e657265..ff8b239 100644 --- a/src/DSRender/DSRenderViewDaliImpl.cpp +++ b/src/DSRender/DSRenderViewDaliImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSRenderViewDaliImpl.h" #include diff --git a/src/DSRender/DSRenderViewDaliImpl.h b/src/DSRender/DSRenderViewDaliImpl.h index f78c7f9..a15e391 100644 --- a/src/DSRender/DSRenderViewDaliImpl.h +++ b/src/DSRender/DSRenderViewDaliImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_RENDER_VIEW_DALI_IMPL_H_ #define __DS_RENDER_VIEW_DALI_IMPL_H_ diff --git a/src/DSRender/DSRenderViewEcoreEvasImpl.cpp b/src/DSRender/DSRenderViewEcoreEvasImpl.cpp index 7781f3a..bac48e8 100644 --- a/src/DSRender/DSRenderViewEcoreEvasImpl.cpp +++ b/src/DSRender/DSRenderViewEcoreEvasImpl.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSRenderViewEcoreEvasImpl.h" #include "DSDebugLog.h" diff --git a/src/DSRender/DSRenderViewEcoreEvasImpl.h b/src/DSRender/DSRenderViewEcoreEvasImpl.h index 731e997..53ed231 100644 --- a/src/DSRender/DSRenderViewEcoreEvasImpl.h +++ b/src/DSRender/DSRenderViewEcoreEvasImpl.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_RENDER_VIEW_ECORE_EVAS_IMPL_H_ #define __DS_RENDER_VIEW_ECORE_EVAS_IMPL_H_ diff --git a/src/DSRender/IDSRenderEngine.h b/src/DSRender/IDSRenderEngine.h index 2891ea0..65a5a07 100644 --- a/src/DSRender/IDSRenderEngine.h +++ b/src/DSRender/IDSRenderEngine.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_RENDER_ENGINE_H_ #define __I_DS_RENDER_ENGINE_H_ diff --git a/src/DSSeat/DSKeyboard.cpp b/src/DSSeat/DSKeyboard.cpp index b646058..e9a8345 100644 --- a/src/DSSeat/DSKeyboard.cpp +++ b/src/DSSeat/DSKeyboard.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSKeyboard.h" #include "DSSeat.h" #include "DSWindow.h" diff --git a/src/DSSeat/DSKeyboard.h b/src/DSSeat/DSKeyboard.h index 2f2ac27..45c844f 100644 --- a/src/DSSeat/DSKeyboard.h +++ b/src/DSSeat/DSKeyboard.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DSKEYBOARD_H__ #define __DSKEYBOARD_H__ @@ -41,4 +64,4 @@ private: } -#endif //__DSKEYBOARD_H__ \ No newline at end of file +#endif //__DSKEYBOARD_H__ diff --git a/src/DSSeat/DSPointer.cpp b/src/DSSeat/DSPointer.cpp index 525fd85..ce2781d 100644 --- a/src/DSSeat/DSPointer.cpp +++ b/src/DSSeat/DSPointer.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSPointer.h" #include "DSSeat.h" #include "DSWindow.h" @@ -71,4 +94,4 @@ std::shared_ptr DSPointer::getFocus() return __ptrFocus; } -} // namespace display_server \ No newline at end of file +} // namespace display_server diff --git a/src/DSSeat/DSPointer.h b/src/DSSeat/DSPointer.h index 05e58e5..d0dbdc7 100644 --- a/src/DSSeat/DSPointer.h +++ b/src/DSSeat/DSPointer.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DSPOINTER_H__ #define __DSPOINTER_H__ @@ -34,4 +57,4 @@ private: } -#endif //__DSPOINTER_H__ \ No newline at end of file +#endif //__DSPOINTER_H__ diff --git a/src/DSSeat/DSSeat.cpp b/src/DSSeat/DSSeat.cpp index cf04773..4bcd11b 100644 --- a/src/DSSeat/DSSeat.cpp +++ b/src/DSSeat/DSSeat.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSCore.h" #include "DSSeat.h" #include "DSInput.h" diff --git a/src/DSSeat/DSSeat.h b/src/DSSeat/DSSeat.h index 1ca7d5f..25f84c4 100644 --- a/src/DSSeat/DSSeat.h +++ b/src/DSSeat/DSSeat.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DSSEAT_H_ #define _DSSEAT_H_ diff --git a/src/DSSeat/DSTouch.cpp b/src/DSSeat/DSTouch.cpp index ea72127..3483d6e 100644 --- a/src/DSSeat/DSTouch.cpp +++ b/src/DSSeat/DSTouch.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSTouch.h" #include "DSSeat.h" #include "DSWindow.h" @@ -70,4 +93,4 @@ std::shared_ptr DSTouch::getFocus() return __touchFocus; } -} // namespace display_server \ No newline at end of file +} // namespace display_server diff --git a/src/DSSeat/DSTouch.h b/src/DSSeat/DSTouch.h index 61e809f..c210b21 100644 --- a/src/DSSeat/DSTouch.h +++ b/src/DSSeat/DSTouch.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DSTOUCH_H__ #define __DSTOUCH_H__ @@ -34,4 +57,4 @@ private: } -#endif //__DSTOUCH_H__ \ No newline at end of file +#endif //__DSTOUCH_H__ diff --git a/src/DSSignal/DSSignal.cpp b/src/DSSignal/DSSignal.cpp index 8f79de2..9dba39e 100644 --- a/src/DSSignal/DSSignal.cpp +++ b/src/DSSignal/DSSignal.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSSignal.h" namespace display_server { diff --git a/src/DSSignal/DSSignal.h b/src/DSSignal/DSSignal.h index 05209f9..cace4a8 100644 --- a/src/DSSignal/DSSignal.h +++ b/src/DSSignal/DSSignal.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_SIGNAL_H_ #define __DS_SIGNAL_H_ diff --git a/src/DSTextInput/DSTextInput.cpp b/src/DSTextInput/DSTextInput.cpp index 784a8ea..abe6cc4 100644 --- a/src/DSTextInput/DSTextInput.cpp +++ b/src/DSTextInput/DSTextInput.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSTextInput.h" #include "DSTextInputPrivate.h" #include "DSWaylandCompositor.h" diff --git a/src/DSTextInput/DSTextInput.h b/src/DSTextInput/DSTextInput.h index e2f2776..a662568 100644 --- a/src/DSTextInput/DSTextInput.h +++ b/src/DSTextInput/DSTextInput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_TEXT_INPUT_H__ #define __DS_TEXT_INPUT_H__ diff --git a/src/DSTextInput/DSTextInputPrivate.h b/src/DSTextInput/DSTextInputPrivate.h index a380fd8..f742054 100644 --- a/src/DSTextInput/DSTextInputPrivate.h +++ b/src/DSTextInput/DSTextInputPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_TEXT_INPUT_PRIVATE_H__ #define __DS_TEXT_INPUT_PRIVATE_H__ diff --git a/src/DSWaylandExtension/DSTizenAppinfo.cpp b/src/DSWaylandExtension/DSTizenAppinfo.cpp index d3ea3e5..f1b2220 100644 --- a/src/DSWaylandExtension/DSTizenAppinfo.cpp +++ b/src/DSWaylandExtension/DSTizenAppinfo.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include namespace display_server @@ -58,4 +81,4 @@ int DSTizenAppinfo::base_output_height() return __base_output_height; } -} \ No newline at end of file +} diff --git a/src/DSWaylandExtension/DSTizenAppinfo.h b/src/DSWaylandExtension/DSTizenAppinfo.h index 4967630..76bae93 100644 --- a/src/DSWaylandExtension/DSTizenAppinfo.h +++ b/src/DSWaylandExtension/DSTizenAppinfo.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_TIZENAPPINFO_H_ #define _DS_TIZENAPPINFO_H_ @@ -30,4 +53,4 @@ private: }; } -#endif \ No newline at end of file +#endif diff --git a/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp b/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp index ca8619a..c1eed07 100644 --- a/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp +++ b/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSTizenAppinfoMgr.h" #include "DSWaylandTizenAppinfo.h" #include "DSDebugLog.h" @@ -81,4 +104,4 @@ void DSTizenAppinfoMgr::updateTizenAppinfo(std::string appId, pid_t pid) DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) set to pid:%d", appId.c_str(), pid); } } -} \ No newline at end of file +} diff --git a/src/DSWaylandExtension/DSTizenAppinfoMgr.h b/src/DSWaylandExtension/DSTizenAppinfoMgr.h index 03db0ea..fec3ece 100644 --- a/src/DSWaylandExtension/DSTizenAppinfoMgr.h +++ b/src/DSWaylandExtension/DSTizenAppinfoMgr.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_TIZENAPPINFO_MGR_H_ #define _DS_TIZENAPPINFO_MGR_H_ @@ -36,4 +59,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSWaylandExtension/DSWaylandExtension.cpp b/src/DSWaylandExtension/DSWaylandExtension.cpp index f1507a9..8a103af 100644 --- a/src/DSWaylandExtension/DSWaylandExtension.cpp +++ b/src/DSWaylandExtension/DSWaylandExtension.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandExtension.h" #include "DSWaylandExtensionPrivate.h" #include "DSWaylandCompositor.h" diff --git a/src/DSWaylandExtension/DSWaylandExtension.h b/src/DSWaylandExtension/DSWaylandExtension.h index a39d34d..ea885d1 100644 --- a/src/DSWaylandExtension/DSWaylandExtension.h +++ b/src/DSWaylandExtension/DSWaylandExtension.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_EXTENSION_H__ #define __DS_WAYLAND_EXTENSION_H__ @@ -28,4 +51,4 @@ private: } // namespace display_server -#endif // __DS_WAYLAND_EXTENSION_H__ \ No newline at end of file +#endif // __DS_WAYLAND_EXTENSION_H__ diff --git a/src/DSWaylandExtension/DSWaylandExtensionPrivate.h b/src/DSWaylandExtension/DSWaylandExtensionPrivate.h index 9309c69..50abefd 100644 --- a/src/DSWaylandExtension/DSWaylandExtensionPrivate.h +++ b/src/DSWaylandExtension/DSWaylandExtensionPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_EXTENSION_PRIVATE_H__ #define __DS_WAYLAND_EXTENSION_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandBuffer.cpp b/src/DSWaylandServer/DSWaylandBuffer.cpp index 83a3e29..3f1f751 100644 --- a/src/DSWaylandServer/DSWaylandBuffer.cpp +++ b/src/DSWaylandServer/DSWaylandBuffer.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandBuffer.h" #include "DSWaylandBufferPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandBuffer.h b/src/DSWaylandServer/DSWaylandBuffer.h index fe1679c..e52759a 100644 --- a/src/DSWaylandServer/DSWaylandBuffer.h +++ b/src/DSWaylandServer/DSWaylandBuffer.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_BUFFER_H_ #define _DS_WAYLAND_BUFFER_H_ diff --git a/src/DSWaylandServer/DSWaylandBufferPrivate.h b/src/DSWaylandServer/DSWaylandBufferPrivate.h index f309e01..31342f6 100644 --- a/src/DSWaylandServer/DSWaylandBufferPrivate.h +++ b/src/DSWaylandServer/DSWaylandBufferPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_BUFFER_PRIVATE_H_ #define _DS_WAYLAND_BUFFER_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandCallback.cpp b/src/DSWaylandServer/DSWaylandCallback.cpp index b98afcc..3e4ae9a 100644 --- a/src/DSWaylandServer/DSWaylandCallback.cpp +++ b/src/DSWaylandServer/DSWaylandCallback.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandCallback.h" #include "DSWaylandCallbackPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandCallback.h b/src/DSWaylandServer/DSWaylandCallback.h index 1ea69d3..ec82760 100644 --- a/src/DSWaylandServer/DSWaylandCallback.h +++ b/src/DSWaylandServer/DSWaylandCallback.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_CALLBACK_H_ #define _DS_WAYLAND_CALLBACK_H_ diff --git a/src/DSWaylandServer/DSWaylandCallbackPrivate.h b/src/DSWaylandServer/DSWaylandCallbackPrivate.h index da3f837..31979a7 100644 --- a/src/DSWaylandServer/DSWaylandCallbackPrivate.h +++ b/src/DSWaylandServer/DSWaylandCallbackPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_CALLBACK_PRIVATE_H_ #define _DS_WAYLAND_CALLBACK_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandClient.cpp b/src/DSWaylandServer/DSWaylandClient.cpp index 37783bd..aeea89f 100644 --- a/src/DSWaylandServer/DSWaylandClient.cpp +++ b/src/DSWaylandServer/DSWaylandClient.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandClient.h" #include "DSWaylandClientPrivate.h" #include "DSWaylandCompositor.h" diff --git a/src/DSWaylandServer/DSWaylandClient.h b/src/DSWaylandServer/DSWaylandClient.h index 8d0b07b..7010286 100644 --- a/src/DSWaylandServer/DSWaylandClient.h +++ b/src/DSWaylandServer/DSWaylandClient.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_CLIENT_H__ #define __DS_WAYLAND_CLIENT_H__ diff --git a/src/DSWaylandServer/DSWaylandClientPrivate.h b/src/DSWaylandServer/DSWaylandClientPrivate.h index a698907..266cfa2 100644 --- a/src/DSWaylandServer/DSWaylandClientPrivate.h +++ b/src/DSWaylandServer/DSWaylandClientPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_CLIENT_PRIVATE_H__ #define __DS_WAYLAND_CLIENT_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandCompositor.cpp b/src/DSWaylandServer/DSWaylandCompositor.cpp index 69bd763..67b7714 100644 --- a/src/DSWaylandServer/DSWaylandCompositor.cpp +++ b/src/DSWaylandServer/DSWaylandCompositor.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandCompositor.h" #include "DSWaylandCompositorPrivate.h" #include "DSWaylandExtension.h" diff --git a/src/DSWaylandServer/DSWaylandCompositor.h b/src/DSWaylandServer/DSWaylandCompositor.h index ba7ff81..ed48bd9 100644 --- a/src/DSWaylandServer/DSWaylandCompositor.h +++ b/src/DSWaylandServer/DSWaylandCompositor.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_COMPOSITOR_H__ #define __DS_WAYLAND_COMPOSITOR_H__ diff --git a/src/DSWaylandServer/DSWaylandCompositorPrivate.h b/src/DSWaylandServer/DSWaylandCompositorPrivate.h index d63651d..edbf3b1 100644 --- a/src/DSWaylandServer/DSWaylandCompositorPrivate.h +++ b/src/DSWaylandServer/DSWaylandCompositorPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_COMPOSITOR_PRIVATE_H__ #define __DS_WAYLAND_COMPOSITOR_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandInputMethod.cpp b/src/DSWaylandServer/DSWaylandInputMethod.cpp index 67d82e3..316679c 100644 --- a/src/DSWaylandServer/DSWaylandInputMethod.cpp +++ b/src/DSWaylandServer/DSWaylandInputMethod.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandInputMethodContext.h" #include "DSWaylandInputMethodContextPrivate.h" #include "DSWaylandInputMethod.h" diff --git a/src/DSWaylandServer/DSWaylandInputMethod.h b/src/DSWaylandServer/DSWaylandInputMethod.h index d2a9298..6b66ec2 100644 --- a/src/DSWaylandServer/DSWaylandInputMethod.h +++ b/src/DSWaylandServer/DSWaylandInputMethod.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_METHOD_H__ #define __DS_WAYLAND_INPUT_METHOD_H__ diff --git a/src/DSWaylandServer/DSWaylandInputMethodContext.h b/src/DSWaylandServer/DSWaylandInputMethodContext.h index 3de82f2..068ac43 100644 --- a/src/DSWaylandServer/DSWaylandInputMethodContext.h +++ b/src/DSWaylandServer/DSWaylandInputMethodContext.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_METHOD_CONTEXT_H__ #define __DS_WAYLAND_INPUT_METHOD_CONTEXT_H__ diff --git a/src/DSWaylandServer/DSWaylandInputMethodContextPrivate.h b/src/DSWaylandServer/DSWaylandInputMethodContextPrivate.h index 8ea1dab..3a01bce 100644 --- a/src/DSWaylandServer/DSWaylandInputMethodContextPrivate.h +++ b/src/DSWaylandServer/DSWaylandInputMethodContextPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_METHOD_CONTEXT_PRIVATE_H__ #define __DS_WAYLAND_INPUT_METHOD_CONTEXT_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandInputMethodPrivate.h b/src/DSWaylandServer/DSWaylandInputMethodPrivate.h index da4aec3..1b9cf3d 100644 --- a/src/DSWaylandServer/DSWaylandInputMethodPrivate.h +++ b/src/DSWaylandServer/DSWaylandInputMethodPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_METHOD_PRIVATE_H__ #define __DS_WAYLAND_INPUT_METHOD_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandInputPanel.cpp b/src/DSWaylandServer/DSWaylandInputPanel.cpp index 0e7af46..8a4b87f 100644 --- a/src/DSWaylandServer/DSWaylandInputPanel.cpp +++ b/src/DSWaylandServer/DSWaylandInputPanel.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandInputPanel.h" #include "DSWaylandInputPanelPrivate.h" #include "DSWaylandInputPanelSurface.h" @@ -70,4 +93,4 @@ DSWaylandInputPanelSurface::~DSWaylandInputPanelSurface() { } -} \ No newline at end of file +} diff --git a/src/DSWaylandServer/DSWaylandInputPanel.h b/src/DSWaylandServer/DSWaylandInputPanel.h index 66b6975..66b80dc 100644 --- a/src/DSWaylandServer/DSWaylandInputPanel.h +++ b/src/DSWaylandServer/DSWaylandInputPanel.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_PANEL_H__ #define __DS_WAYLAND_INPUT_PANEL_H__ diff --git a/src/DSWaylandServer/DSWaylandInputPanelPrivate.h b/src/DSWaylandServer/DSWaylandInputPanelPrivate.h index 2658839..69cbc8b 100644 --- a/src/DSWaylandServer/DSWaylandInputPanelPrivate.h +++ b/src/DSWaylandServer/DSWaylandInputPanelPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_PANEL_PRIVATE_H__ #define __DS_WAYLAND_INPUT_PANEL_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandInputPanelSurface.h b/src/DSWaylandServer/DSWaylandInputPanelSurface.h index 62e85fb..94d3ab3 100644 --- a/src/DSWaylandServer/DSWaylandInputPanelSurface.h +++ b/src/DSWaylandServer/DSWaylandInputPanelSurface.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_PANEL_SURFACE_H__ #define __DS_WAYLAND_INPUT_PANEL_SURFACE_H__ diff --git a/src/DSWaylandServer/DSWaylandInputPanelSurfacePrivate.h b/src/DSWaylandServer/DSWaylandInputPanelSurfacePrivate.h index 679c68b..6a53974 100644 --- a/src/DSWaylandServer/DSWaylandInputPanelSurfacePrivate.h +++ b/src/DSWaylandServer/DSWaylandInputPanelSurfacePrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_INPUT_PANEL_SURFACE_PRIVATE_H__ #define __DS_WAYLAND_INPUT_PANEL_SURFACE_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandKeyboard.cpp b/src/DSWaylandServer/DSWaylandKeyboard.cpp index 2bed2ca..eaae9ca 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.cpp +++ b/src/DSWaylandServer/DSWaylandKeyboard.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandKeyboard.h" #include "DSWaylandKeyboardPrivate.h" #include "DSWaylandClient.h" diff --git a/src/DSWaylandServer/DSWaylandKeyboard.h b/src/DSWaylandServer/DSWaylandKeyboard.h index 040a600..0dd4722 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.h +++ b/src/DSWaylandServer/DSWaylandKeyboard.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_KEYBOARD_H__ #define __DS_WAYLAND_KEYBOARD_H__ diff --git a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h index a23abb0..98eed2a 100644 --- a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h +++ b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_KEYBOARD_PRIVATE_H__ #define __DS_WAYLAND_KEYBOARD_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandOutput.cpp b/src/DSWaylandServer/DSWaylandOutput.cpp index 179fba5..a3b1ae7 100644 --- a/src/DSWaylandServer/DSWaylandOutput.cpp +++ b/src/DSWaylandServer/DSWaylandOutput.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandOutput.h" #include "DSWaylandOutputPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandOutput.h b/src/DSWaylandServer/DSWaylandOutput.h index 374eb43..9c2445c 100644 --- a/src/DSWaylandServer/DSWaylandOutput.h +++ b/src/DSWaylandServer/DSWaylandOutput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_OUTPUT_H_ #define _DS_WAYLAND_OUTPUT_H_ diff --git a/src/DSWaylandServer/DSWaylandOutputPrivate.h b/src/DSWaylandServer/DSWaylandOutputPrivate.h index a1b35c4..f6e916c 100644 --- a/src/DSWaylandServer/DSWaylandOutputPrivate.h +++ b/src/DSWaylandServer/DSWaylandOutputPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_OUTPUT_PRIVATE_H_ #define _DS_WAYLAND_OUTPUT_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandPointer.cpp b/src/DSWaylandServer/DSWaylandPointer.cpp index adc314c..6a04cfa 100644 --- a/src/DSWaylandServer/DSWaylandPointer.cpp +++ b/src/DSWaylandServer/DSWaylandPointer.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandPointer.h" #include "DSWaylandPointerPrivate.h" #include "DSWaylandClient.h" @@ -80,4 +103,4 @@ DSWaylandSurface *DSWaylandPointer::getFocus() return priv->__waylandSurface; } -} \ No newline at end of file +} diff --git a/src/DSWaylandServer/DSWaylandPointer.h b/src/DSWaylandServer/DSWaylandPointer.h index 5d528e7..d2f468a 100644 --- a/src/DSWaylandServer/DSWaylandPointer.h +++ b/src/DSWaylandServer/DSWaylandPointer.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_POINTER_H__ #define __DS_WAYLAND_POINTER_H__ diff --git a/src/DSWaylandServer/DSWaylandPointerPrivate.h b/src/DSWaylandServer/DSWaylandPointerPrivate.h index 320d78a..a53bece 100644 --- a/src/DSWaylandServer/DSWaylandPointerPrivate.h +++ b/src/DSWaylandServer/DSWaylandPointerPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_POINTER_PRIVATE_H__ #define __DS_WAYLAND_POINTER_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandSeat.cpp b/src/DSWaylandServer/DSWaylandSeat.cpp index d03e1a5..34592dd 100644 --- a/src/DSWaylandServer/DSWaylandSeat.cpp +++ b/src/DSWaylandServer/DSWaylandSeat.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandSeat.h" #include "DSWaylandSeatPrivate.h" #include "DSWaylandCompositor.h" diff --git a/src/DSWaylandServer/DSWaylandSeat.h b/src/DSWaylandServer/DSWaylandSeat.h index e6e1499..988f6ec 100644 --- a/src/DSWaylandServer/DSWaylandSeat.h +++ b/src/DSWaylandServer/DSWaylandSeat.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_SEAT_H__ #define __DS_WAYLAND_SEAT_H__ diff --git a/src/DSWaylandServer/DSWaylandSeatPrivate.h b/src/DSWaylandServer/DSWaylandSeatPrivate.h index c4123b7..79722c3 100644 --- a/src/DSWaylandServer/DSWaylandSeatPrivate.h +++ b/src/DSWaylandServer/DSWaylandSeatPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_SEAT_PRIVATE_H__ #define __DS_WAYLAND_SEAT_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandSurface.cpp b/src/DSWaylandServer/DSWaylandSurface.cpp index 1077bd5..249a3f6 100644 --- a/src/DSWaylandServer/DSWaylandSurface.cpp +++ b/src/DSWaylandServer/DSWaylandSurface.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandSurface.h" #include "DSWaylandSurfacePrivate.h" diff --git a/src/DSWaylandServer/DSWaylandSurface.h b/src/DSWaylandServer/DSWaylandSurface.h index 03732f0..c7519dc 100644 --- a/src/DSWaylandServer/DSWaylandSurface.h +++ b/src/DSWaylandServer/DSWaylandSurface.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_SURFACE_H__ #define __DS_WAYLAND_SURFACE_H__ diff --git a/src/DSWaylandServer/DSWaylandSurfacePrivate.h b/src/DSWaylandServer/DSWaylandSurfacePrivate.h index a35c4b5..d1f65b1 100644 --- a/src/DSWaylandServer/DSWaylandSurfacePrivate.h +++ b/src/DSWaylandServer/DSWaylandSurfacePrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_SURFACE_PRIVATE_H__ #define __DS_WAYLAND_SURFACE_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandTextInput.cpp b/src/DSWaylandServer/DSWaylandTextInput.cpp index cce0ebf..4f3855b 100644 --- a/src/DSWaylandServer/DSWaylandTextInput.cpp +++ b/src/DSWaylandServer/DSWaylandTextInput.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTextInputManager.h" #include "DSWaylandTextInputManagerPrivate.h" #include "DSWaylandTextInput.h" diff --git a/src/DSWaylandServer/DSWaylandTextInput.h b/src/DSWaylandServer/DSWaylandTextInput.h index c0b98ff..c40c922 100644 --- a/src/DSWaylandServer/DSWaylandTextInput.h +++ b/src/DSWaylandServer/DSWaylandTextInput.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TEXT_INPUT_H__ #define __DS_WAYLAND_TEXT_INPUT_H__ diff --git a/src/DSWaylandServer/DSWaylandTextInputManager.h b/src/DSWaylandServer/DSWaylandTextInputManager.h index 9f8654a..7a314e5 100644 --- a/src/DSWaylandServer/DSWaylandTextInputManager.h +++ b/src/DSWaylandServer/DSWaylandTextInputManager.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TEXT_INPUT_MANAGER_H__ #define __DS_WAYLAND_TEXT_INPUT_MANAGER_H__ diff --git a/src/DSWaylandServer/DSWaylandTextInputManagerPrivate.h b/src/DSWaylandServer/DSWaylandTextInputManagerPrivate.h index cb0e974..dfa815c 100644 --- a/src/DSWaylandServer/DSWaylandTextInputManagerPrivate.h +++ b/src/DSWaylandServer/DSWaylandTextInputManagerPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TEXT_INPUT_MANAGER_PRIVATE_H__ #define __DS_WAYLAND_TEXT_INPUT_MANAGER_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandTextInputPrivate.h b/src/DSWaylandServer/DSWaylandTextInputPrivate.h index 1201aca..12268f2 100644 --- a/src/DSWaylandServer/DSWaylandTextInputPrivate.h +++ b/src/DSWaylandServer/DSWaylandTextInputPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TEXT_INPUT_PRIVATE_H__ #define __DS_WAYLAND_TEXT_INPUT_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp b/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp index 27585fb..805d92e 100644 --- a/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp +++ b/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenAppinfo.h" #include "DSWaylandTizenAppinfoPrivate.h" #include "DSTizenAppinfoMgr.h" diff --git a/src/DSWaylandServer/DSWaylandTizenAppinfo.h b/src/DSWaylandServer/DSWaylandTizenAppinfo.h index 53b66af..ae3691b 100644 --- a/src/DSWaylandServer/DSWaylandTizenAppinfo.h +++ b/src/DSWaylandServer/DSWaylandTizenAppinfo.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_APPINFO_H__ #define __DS_WAYLAND_TIZEN_APPINFO_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenAppinfoPrivate.h b/src/DSWaylandServer/DSWaylandTizenAppinfoPrivate.h index e81a992..b32fc96 100644 --- a/src/DSWaylandServer/DSWaylandTizenAppinfoPrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenAppinfoPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_APPINFO_PRIVATE_H__ #define __DS_WAYLAND_TIZEN_APPINFO_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenIndicator.cpp b/src/DSWaylandServer/DSWaylandTizenIndicator.cpp index 6e583c0..51076c5 100644 --- a/src/DSWaylandServer/DSWaylandTizenIndicator.cpp +++ b/src/DSWaylandServer/DSWaylandTizenIndicator.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenIndicator.h" #include "DSWaylandTizenIndicatorPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandTizenIndicator.h b/src/DSWaylandServer/DSWaylandTizenIndicator.h index b40eb91..1d04c96 100644 --- a/src/DSWaylandServer/DSWaylandTizenIndicator.h +++ b/src/DSWaylandServer/DSWaylandTizenIndicator.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_INDICATOR_H__ #define __DS_WAYLAND_TIZEN_INDICATOR_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenIndicatorPrivate.h b/src/DSWaylandServer/DSWaylandTizenIndicatorPrivate.h index 28dc676..d7828ba 100644 --- a/src/DSWaylandServer/DSWaylandTizenIndicatorPrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenIndicatorPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_INDICATOR_PRIVATE_H__ #define __DS_WAYLAND_TIZEN_INDICATOR_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenInputDevice.h b/src/DSWaylandServer/DSWaylandTizenInputDevice.h index f46dfe7..241fb85 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDevice.h +++ b/src/DSWaylandServer/DSWaylandTizenInputDevice.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_INPUT_DEVICE_H_ #define _DS_WAYLAND_TIZEN_INPUT_DEVICE_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp index 50d0405..0ef1347 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp +++ b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenInputDeviceManager.h" #include "DSWaylandTizenInputDeviceManagerPrivate.h" #include "DSWaylandTizenInputDevice.h" diff --git a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.h b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.h index dcc5a67..41920b5 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.h +++ b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_INPUT_DEVICE_MANAGER_H_ #define _DS_WAYLAND_TIZEN_INPUT_DEVICE_MANAGER_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h b/src/DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h index 4112512..3850af7 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenInputDeviceManagerPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_INPUT_DEVICE_MANAGER_PRIVATE_H_ #define _DS_WAYLAND_TIZEN_INPUT_DEVICE_MANAGER_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenInputDevicePrivate.h b/src/DSWaylandServer/DSWaylandTizenInputDevicePrivate.h index 0a2f299..e0ed628 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDevicePrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenInputDevicePrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_INPUT_DEVICE_PRIVATE_H_ #define _DS_WAYLAND_TIZEN_INPUT_DEVICE_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenPolicy.cpp b/src/DSWaylandServer/DSWaylandTizenPolicy.cpp index df772d4..a83cb75 100644 --- a/src/DSWaylandServer/DSWaylandTizenPolicy.cpp +++ b/src/DSWaylandServer/DSWaylandTizenPolicy.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenPolicy.h" #include "DSWaylandTizenPolicyPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandTizenPolicy.h b/src/DSWaylandServer/DSWaylandTizenPolicy.h index 95b93d5..f526683 100644 --- a/src/DSWaylandServer/DSWaylandTizenPolicy.h +++ b/src/DSWaylandServer/DSWaylandTizenPolicy.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_POLICY_H_ #define _DS_WAYLAND_TIZEN_POLICY_H_ @@ -32,4 +55,4 @@ private: } -#endif \ No newline at end of file +#endif diff --git a/src/DSWaylandServer/DSWaylandTizenPolicyPrivate.h b/src/DSWaylandServer/DSWaylandTizenPolicyPrivate.h index 634060b..34a324a 100644 --- a/src/DSWaylandServer/DSWaylandTizenPolicyPrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenPolicyPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_POLICY_PRIVATE_H_ #define _DS_WAYLAND_TIZEN_POLICY_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenPosition.cpp b/src/DSWaylandServer/DSWaylandTizenPosition.cpp index 10ead4a..892f582 100644 --- a/src/DSWaylandServer/DSWaylandTizenPosition.cpp +++ b/src/DSWaylandServer/DSWaylandTizenPosition.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenPosition.h" #include "DSWaylandTizenPositionPrivate.h" diff --git a/src/DSWaylandServer/DSWaylandTizenPosition.h b/src/DSWaylandServer/DSWaylandTizenPosition.h index 720251a..64a39df 100644 --- a/src/DSWaylandServer/DSWaylandTizenPosition.h +++ b/src/DSWaylandServer/DSWaylandTizenPosition.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_POSITION_H__ #define __DS_WAYLAND_TIZEN_POSITION_H__ diff --git a/src/DSWaylandServer/DSWaylandTizenPositionPrivate.h b/src/DSWaylandServer/DSWaylandTizenPositionPrivate.h index 0522555..93915a0 100644 --- a/src/DSWaylandServer/DSWaylandTizenPositionPrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenPositionPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TIZEN_POLICY_PRIVATE__ #define __DS_WAYLAND_TIZEN_POLICY_PRIVATE__ diff --git a/src/DSWaylandServer/DSWaylandTizenSurface.cpp b/src/DSWaylandServer/DSWaylandTizenSurface.cpp index 7779428..a9df7fc 100644 --- a/src/DSWaylandServer/DSWaylandTizenSurface.cpp +++ b/src/DSWaylandServer/DSWaylandTizenSurface.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTizenSurface.h" #include "DSWaylandTizenSurfacePrivate.h" diff --git a/src/DSWaylandServer/DSWaylandTizenSurface.h b/src/DSWaylandServer/DSWaylandTizenSurface.h index 0730199..b36fa00 100644 --- a/src/DSWaylandServer/DSWaylandTizenSurface.h +++ b/src/DSWaylandServer/DSWaylandTizenSurface.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_SURFACE_H_ #define _DS_WAYLAND_TIZEN_SURFACE_H_ diff --git a/src/DSWaylandServer/DSWaylandTizenSurfacePrivate.h b/src/DSWaylandServer/DSWaylandTizenSurfacePrivate.h index c30508f..805f0f2 100644 --- a/src/DSWaylandServer/DSWaylandTizenSurfacePrivate.h +++ b/src/DSWaylandServer/DSWaylandTizenSurfacePrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef _DS_WAYLAND_TIZEN_SURFACE_PRIVATE_H_ #define _DS_WAYLAND_TIZEN_SURFACE_PRIVATE_H_ diff --git a/src/DSWaylandServer/DSWaylandTouch.cpp b/src/DSWaylandServer/DSWaylandTouch.cpp index eb8a954..0d31119 100644 --- a/src/DSWaylandServer/DSWaylandTouch.cpp +++ b/src/DSWaylandServer/DSWaylandTouch.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandTouch.h" #include "DSWaylandTouchPrivate.h" #include "DSWaylandClient.h" @@ -74,4 +97,4 @@ DSWaylandSurface *DSWaylandTouch::getFocus() return priv->__waylandSurface; } -} \ No newline at end of file +} diff --git a/src/DSWaylandServer/DSWaylandTouch.h b/src/DSWaylandServer/DSWaylandTouch.h index c2d62b9..d787707 100644 --- a/src/DSWaylandServer/DSWaylandTouch.h +++ b/src/DSWaylandServer/DSWaylandTouch.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TOUCH_H__ #define __DS_WAYLAND_TOUCH_H__ diff --git a/src/DSWaylandServer/DSWaylandTouchPrivate.h b/src/DSWaylandServer/DSWaylandTouchPrivate.h index 5444bf2..bf965d8 100644 --- a/src/DSWaylandServer/DSWaylandTouchPrivate.h +++ b/src/DSWaylandServer/DSWaylandTouchPrivate.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_TOUCH_PRIVATE_H__ #define __DS_WAYLAND_TOUCH_PRIVATE_H__ diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp index f4f529e..ba2e9ff 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWaylandZxdgShellV6.h" #include "DSWaylandZxdgShellV6Private.h" #include "DSWaylandCompositor.h" diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6.h b/src/DSWaylandServer/DSWaylandZxdgShellV6.h index 0ff0c63..84ec284 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6.h +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_ZXDG_SHELL_V6_H__ #define __DS_WAYLAND_ZXDG_SHELL_V6_H__ diff --git a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h index 4bb2ffe..6e85d1b 100644 --- a/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h +++ b/src/DSWaylandServer/DSWaylandZxdgShellV6Private.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__ #define __DS_WAYLAND_ZXDG_SHELL_V6_PRIVATE_H__ diff --git a/src/DSWaylandServer/IDSWaylandShell.h b/src/DSWaylandServer/IDSWaylandShell.h index 53d5cae..6983971 100644 --- a/src/DSWaylandServer/IDSWaylandShell.h +++ b/src/DSWaylandServer/IDSWaylandShell.h @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #ifndef __I_DS_WAYLAND_SHELL_H__ #define __I_DS_WAYLAND_SHELL_H__ diff --git a/src/DSWindow/DSWindow.cpp b/src/DSWindow/DSWindow.cpp index 26cfa06..56e2962 100644 --- a/src/DSWindow/DSWindow.cpp +++ b/src/DSWindow/DSWindow.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "DSWindow.h" #include "DSWindowPrivate.h" #include "DSWaylandSurface.h" @@ -237,4 +260,4 @@ void DSWindow::registerCallbackBufferChanged(DSObject *slot, std::function diff --git a/tests/DSDebugLog-test.cpp b/tests/DSDebugLog-test.cpp index d4757f4..71265ed 100644 --- a/tests/DSDebugLog-test.cpp +++ b/tests/DSDebugLog-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSDebugLog.h" @@ -41,4 +64,4 @@ TEST_F(DSDebugLogTest, LogMacros) DSLOG_ERR("DSTEST", "Hey world"); EXPECT_TRUE(true); -} \ No newline at end of file +} diff --git a/tests/DSDisplayArea-test.cpp b/tests/DSDisplayArea-test.cpp index 2e252fc..ac22be6 100644 --- a/tests/DSDisplayArea-test.cpp +++ b/tests/DSDisplayArea-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSDisplayArea.h" #include "IDSOutput.h" diff --git a/tests/DSDisplayDeviceTDMImpl-test.cpp b/tests/DSDisplayDeviceTDMImpl-test.cpp index b926250..a366e19 100644 --- a/tests/DSDisplayDeviceTDMImpl-test.cpp +++ b/tests/DSDisplayDeviceTDMImpl-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWindow.h" #include "DSDisplayDeviceTDMImpl.h" @@ -278,4 +301,4 @@ TEST_F(DSDisplayDeviceTDMImplTest, DeviceHWC_commit) // commit EXPECT_TRUE(deviceHWC->commit()); } -} \ No newline at end of file +} diff --git a/tests/DSEventLoop-test.cpp b/tests/DSEventLoop-test.cpp index c58b3d2..5621af0 100644 --- a/tests/DSEventLoop-test.cpp +++ b/tests/DSEventLoop-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSEventLoop.h" #include diff --git a/tests/DSInput-test.cpp b/tests/DSInput-test.cpp index 80d1ef4..8e92e30 100644 --- a/tests/DSInput-test.cpp +++ b/tests/DSInput-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSInput.h" #include "DSSeat.h" diff --git a/tests/DSKeyboard-test.cpp b/tests/DSKeyboard-test.cpp index fe4262c..3c724b0 100644 --- a/tests/DSKeyboard-test.cpp +++ b/tests/DSKeyboard-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSKeyboard.h" #include "DSSeat.h" diff --git a/tests/DSObject-test.cpp b/tests/DSObject-test.cpp index e7f08fe..065a96f 100644 --- a/tests/DSObject-test.cpp +++ b/tests/DSObject-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSCore.h" #include "DSObject.h" diff --git a/tests/DSOutputImpl-test.cpp b/tests/DSOutputImpl-test.cpp index 1c047d7..044264b 100644 --- a/tests/DSOutputImpl-test.cpp +++ b/tests/DSOutputImpl-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "IDSOutput.h" #include "DSOutputImpl.h" diff --git a/tests/DSPointer-test.cpp b/tests/DSPointer-test.cpp index b6be57d..f0cf678 100644 --- a/tests/DSPointer-test.cpp +++ b/tests/DSPointer-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSPointer.h" #include "DSSeat.h" diff --git a/tests/DSPolicyArea-test.cpp b/tests/DSPolicyArea-test.cpp index 1db77f0..cc106ff 100644 --- a/tests/DSPolicyArea-test.cpp +++ b/tests/DSPolicyArea-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSPolicyArea.h" @@ -28,4 +51,4 @@ TEST_F(DSPolicyAreaTest, BasicMethods) EXPECT_TRUE(policyArea->setPosition(10, 10) == true); EXPECT_TRUE(policyArea->setSize(100, 100) == true); EXPECT_TRUE(policyArea->attachSeat(seat) == true); -} \ No newline at end of file +} diff --git a/tests/DSProperty-test.cpp b/tests/DSProperty-test.cpp index 3546536..caaa2ca 100644 --- a/tests/DSProperty-test.cpp +++ b/tests/DSProperty-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSProperty.h" diff --git a/tests/DSRefBase-test.cpp b/tests/DSRefBase-test.cpp index 4fd582c..26952be 100644 --- a/tests/DSRefBase-test.cpp +++ b/tests/DSRefBase-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSRefBase.h" diff --git a/tests/DSRenderEngineDaliImpl-test.cpp b/tests/DSRenderEngineDaliImpl-test.cpp index f10dd4e..7b4b654 100644 --- a/tests/DSRenderEngineDaliImpl-test.cpp +++ b/tests/DSRenderEngineDaliImpl-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSRenderEngineDaliImpl.h" #include "DSBufferQueueTBMImpl.h" diff --git a/tests/DSRenderEngineEcoreEvasImpl-test.cpp b/tests/DSRenderEngineEcoreEvasImpl-test.cpp index 27db52f..66567a3 100644 --- a/tests/DSRenderEngineEcoreEvasImpl-test.cpp +++ b/tests/DSRenderEngineEcoreEvasImpl-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSRenderEngineEcoreEvasImpl.h" #include "DSBufferQueueTBMImpl.h" diff --git a/tests/DSSeat-test.cpp b/tests/DSSeat-test.cpp index fdc1b4f..03a4190 100644 --- a/tests/DSSeat-test.cpp +++ b/tests/DSSeat-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSSeat.h" #include "DSCompositor.h" diff --git a/tests/DSSignal-test.cpp b/tests/DSSignal-test.cpp index 8a8935f..b37fe21 100644 --- a/tests/DSSignal-test.cpp +++ b/tests/DSSignal-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSSignal.h" #include "DSDebugLog.h" diff --git a/tests/DSTextInput-test.cpp b/tests/DSTextInput-test.cpp index 666f91a..721f0f3 100644 --- a/tests/DSTextInput-test.cpp +++ b/tests/DSTextInput-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSTextInput.h" diff --git a/tests/DSTizenAppinfo-test.cpp b/tests/DSTizenAppinfo-test.cpp index 1a582a3..c9bdcb1 100644 --- a/tests/DSTizenAppinfo-test.cpp +++ b/tests/DSTizenAppinfo-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSTizenAppinfo.h" #include "DSTizenAppinfoMgr.h" @@ -55,4 +78,4 @@ TEST_F(DSTizenAppinfoTest, NewTizenAppinfoMgr) delete appinfoMgr; } -} \ No newline at end of file +} diff --git a/tests/DSTouch-test.cpp b/tests/DSTouch-test.cpp index 56b4b1a..870cedf 100644 --- a/tests/DSTouch-test.cpp +++ b/tests/DSTouch-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSTouch.h" #include "DSSeat.h" diff --git a/tests/DSWaylandBuffer-test.cpp b/tests/DSWaylandBuffer-test.cpp index 01e243f..850bc52 100644 --- a/tests/DSWaylandBuffer-test.cpp +++ b/tests/DSWaylandBuffer-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandBuffer.h" diff --git a/tests/DSWaylandCallback-test.cpp b/tests/DSWaylandCallback-test.cpp index 65dbf1c..d44a541 100644 --- a/tests/DSWaylandCallback-test.cpp +++ b/tests/DSWaylandCallback-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandCallback.h" diff --git a/tests/DSWaylandClient-test.cpp b/tests/DSWaylandClient-test.cpp index 3151a49..7c6625a 100644 --- a/tests/DSWaylandClient-test.cpp +++ b/tests/DSWaylandClient-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandCompositor.h" #include "DSWaylandClient.h" diff --git a/tests/DSWaylandCompositor-test.cpp b/tests/DSWaylandCompositor-test.cpp index 0c29a43..7d0a735 100644 --- a/tests/DSWaylandCompositor-test.cpp +++ b/tests/DSWaylandCompositor-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandClient.h" #include "DSWaylandSeat.h" diff --git a/tests/DSWaylandExtension-test.cpp b/tests/DSWaylandExtension-test.cpp index d125c2f..c73aa79 100644 --- a/tests/DSWaylandExtension-test.cpp +++ b/tests/DSWaylandExtension-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSObject.h" #include "DSWaylandExtension.h" diff --git a/tests/DSWaylandInputMethod-test.cpp b/tests/DSWaylandInputMethod-test.cpp index 147a1f9..b74c09a 100644 --- a/tests/DSWaylandInputMethod-test.cpp +++ b/tests/DSWaylandInputMethod-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandInputMethod.h" diff --git a/tests/DSWaylandInputMethodContext-test.cpp b/tests/DSWaylandInputMethodContext-test.cpp index a49d6c7..6b2808e 100644 --- a/tests/DSWaylandInputMethodContext-test.cpp +++ b/tests/DSWaylandInputMethodContext-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandInputMethod.h" #include "DSWaylandInputMethodContext.h" diff --git a/tests/DSWaylandInputPanel-test.cpp b/tests/DSWaylandInputPanel-test.cpp index b8a6de9..77c693b 100644 --- a/tests/DSWaylandInputPanel-test.cpp +++ b/tests/DSWaylandInputPanel-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandInputPanel.h" diff --git a/tests/DSWaylandInputPanelSurface-test.cpp b/tests/DSWaylandInputPanelSurface-test.cpp index cb0c82f..cbe3da5 100644 --- a/tests/DSWaylandInputPanelSurface-test.cpp +++ b/tests/DSWaylandInputPanelSurface-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandInputPanelSurface.h" diff --git a/tests/DSWaylandKeyboard-test.cpp b/tests/DSWaylandKeyboard-test.cpp index c4bd123..2cac0bf 100644 --- a/tests/DSWaylandKeyboard-test.cpp +++ b/tests/DSWaylandKeyboard-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandKeyboard.h" #include "DSWaylandSeat.h" diff --git a/tests/DSWaylandOutput-test.cpp b/tests/DSWaylandOutput-test.cpp index 020423a..9794705 100644 --- a/tests/DSWaylandOutput-test.cpp +++ b/tests/DSWaylandOutput-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandOutput.h" diff --git a/tests/DSWaylandPointer-test.cpp b/tests/DSWaylandPointer-test.cpp index d79bb97..119b16b 100644 --- a/tests/DSWaylandPointer-test.cpp +++ b/tests/DSWaylandPointer-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandPointer.h" #include "DSWaylandSeat.h" diff --git a/tests/DSWaylandSeat-test.cpp b/tests/DSWaylandSeat-test.cpp index 7ad984e..8d2f000 100644 --- a/tests/DSWaylandSeat-test.cpp +++ b/tests/DSWaylandSeat-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandCompositor.h" #include "DSWaylandSeat.h" diff --git a/tests/DSWaylandSurface-test.cpp b/tests/DSWaylandSurface-test.cpp index 84d7f7b..a83794b 100644 --- a/tests/DSWaylandSurface-test.cpp +++ b/tests/DSWaylandSurface-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandCompositor.h" #include "DSWaylandSurface.h" diff --git a/tests/DSWaylandTextInput-test.cpp b/tests/DSWaylandTextInput-test.cpp index 75015ce..814f46a 100644 --- a/tests/DSWaylandTextInput-test.cpp +++ b/tests/DSWaylandTextInput-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTextInput.h" #include "DSWaylandTextInputManager.h" diff --git a/tests/DSWaylandTextInputManager-test.cpp b/tests/DSWaylandTextInputManager-test.cpp index 2bb00c1..e6ab9c9 100644 --- a/tests/DSWaylandTextInputManager-test.cpp +++ b/tests/DSWaylandTextInputManager-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTextInputManager.h" diff --git a/tests/DSWaylandTizenAppinfo-test.cpp b/tests/DSWaylandTizenAppinfo-test.cpp index 474c2e2..212700d 100644 --- a/tests/DSWaylandTizenAppinfo-test.cpp +++ b/tests/DSWaylandTizenAppinfo-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTizenAppinfo.h" @@ -38,4 +61,4 @@ TEST_F(DSWaylandTizenAppinfoTest, Initialize_Appinfo) delete tzAppinfo; DSWaylandCompositor::releaseInstance(); -} \ No newline at end of file +} diff --git a/tests/DSWaylandTizenIndicator-test.cpp b/tests/DSWaylandTizenIndicator-test.cpp index 61e8d63..50df9de 100644 --- a/tests/DSWaylandTizenIndicator-test.cpp +++ b/tests/DSWaylandTizenIndicator-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTizenIndicator.h" @@ -31,4 +54,4 @@ TEST_F(DSWaylandTizenIndicatorTest, VisibleTypeSetGet) if (tzInd) delete tzInd; -} \ No newline at end of file +} diff --git a/tests/DSWaylandTizenInputDevice-test.cpp b/tests/DSWaylandTizenInputDevice-test.cpp index 4dc332e..275f4e4 100644 --- a/tests/DSWaylandTizenInputDevice-test.cpp +++ b/tests/DSWaylandTizenInputDevice-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTizenInputDevice.h" diff --git a/tests/DSWaylandTizenInputDeviceManager-test.cpp b/tests/DSWaylandTizenInputDeviceManager-test.cpp index 3b0e493..8776e1c 100644 --- a/tests/DSWaylandTizenInputDeviceManager-test.cpp +++ b/tests/DSWaylandTizenInputDeviceManager-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTizenInputDeviceManager.h" diff --git a/tests/DSWaylandTizenPolicy-test.cpp b/tests/DSWaylandTizenPolicy-test.cpp index a7be1c5..81e5839 100644 --- a/tests/DSWaylandTizenPolicy-test.cpp +++ b/tests/DSWaylandTizenPolicy-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandCompositor.h" #include "DSWaylandTizenPolicy.h" diff --git a/tests/DSWaylandTizenSurface-test.cpp b/tests/DSWaylandTizenSurface-test.cpp index b356cac..bb988a6 100644 --- a/tests/DSWaylandTizenSurface-test.cpp +++ b/tests/DSWaylandTizenSurface-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTizenSurface.h" diff --git a/tests/DSWaylandTouch-test.cpp b/tests/DSWaylandTouch-test.cpp index 9f6a7b0..60a2c46 100644 --- a/tests/DSWaylandTouch-test.cpp +++ b/tests/DSWaylandTouch-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandTouch.h" #include "DSWaylandSeat.h" diff --git a/tests/DSWaylandZxdgShellV6-test.cpp b/tests/DSWaylandZxdgShellV6-test.cpp index 4771e30..a0b9bc0 100644 --- a/tests/DSWaylandZxdgShellV6-test.cpp +++ b/tests/DSWaylandZxdgShellV6-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSWaylandZxdgShellV6.h" diff --git a/tests/DSWindow-test.cpp b/tests/DSWindow-test.cpp index 99622e5..e8ff1b5 100644 --- a/tests/DSWindow-test.cpp +++ b/tests/DSWindow-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSObject.h" #include "DSWindow.h" diff --git a/tests/DSWindowShell-test.cpp b/tests/DSWindowShell-test.cpp index 806823f..1ab4547 100644 --- a/tests/DSWindowShell-test.cpp +++ b/tests/DSWindowShell-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSObject.h" #include "DSWindow.h" diff --git a/tests/DSXkb-test.cpp b/tests/DSXkb-test.cpp index 832363c..c57d66a 100644 --- a/tests/DSXkb-test.cpp +++ b/tests/DSXkb-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSXkb.h" diff --git a/tests/DSZone-test.cpp b/tests/DSZone-test.cpp index c508024..510712b 100644 --- a/tests/DSZone-test.cpp +++ b/tests/DSZone-test.cpp @@ -1,3 +1,26 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + #include "libds-tests.h" #include "DSZone.h" #include "DSPolicyArea.h" diff --git a/tests/libds-mock.h b/tests/libds-mock.h index b15cad4..6bd23ef 100644 --- a/tests/libds-mock.h +++ b/tests/libds-mock.h @@ -1,30 +1,27 @@ -/************************************************************************** - * - * Copyright 2020 Samsung Electronics co., Ltd. All Rights Reserved. - * - * Contact: SooChan Lim - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sub license, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice (including the - * next paragraph) shall be included in all copies or substantial portions - * of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR - * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * -**************************************************************************/ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Contact: SooChan Lim +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #ifndef __LIBDS_MOCK_H__ #define __LIBDS_MOCK_H__ diff --git a/tests/libds-tests.cpp b/tests/libds-tests.cpp index 6d9761e..6ac27a3 100644 --- a/tests/libds-tests.cpp +++ b/tests/libds-tests.cpp @@ -1,30 +1,27 @@ -/************************************************************************** - * - * Copyright 2020 Samsung Electronics co., Ltd. All Rights Reserved. - * - * Contact: SooChan Lim - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sub license, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice (including the - * next paragraph) shall be included in all copies or substantial portions - * of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR - * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * -**************************************************************************/ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Contact: SooChan Lim +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #include "libds-tests.h" diff --git a/tests/libds-tests.h b/tests/libds-tests.h index 488e869..dfb2119 100644 --- a/tests/libds-tests.h +++ b/tests/libds-tests.h @@ -1,30 +1,27 @@ -/************************************************************************** - * - * Copyright 2020 Samsung Electronics co., Ltd. All Rights Reserved. - * - * Contact: SooChan Lim - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sub license, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice (including the - * next paragraph) shall be included in all copies or substantial portions - * of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS - * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. - * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR - * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - * -**************************************************************************/ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Contact: SooChan Lim +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ #ifndef __LIBDS_TESTS_H__ #define __LIBDS_TESTS_H__ -- 2.7.4 From 0048bf78c0b5ccc5a8037f9f4571da32114ff2ae Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 12 Aug 2020 17:42:10 +0900 Subject: [PATCH 11/16] DSWaylandServer: replace from std::string to wl_array pointer inside of dswayland-server code/header files Change-Id: Ib9c20b6fa76bdb6ae0c6f9c66474f954a14aefb8 Signed-off-by: Junseok, Kim --- .../dswayland-server-input-method.cpp | 4 +- .../dswayland-server-input-method.h | 4 +- src/DSWaylandServer/dswayland-server-text.cpp | 11 +--- src/DSWaylandServer/dswayland-server-text.h | 4 +- .../dswayland-server-tizen-extension.cpp | 71 +++++++--------------- .../dswayland-server-tizen-extension.h | 36 +++++------ .../dswayland-server-tizen-launch.cpp | 14 ++--- .../dswayland-server-tizen-launch.h | 14 ++--- .../dswayland-server-tizen-remote-surface.cpp | 11 +--- .../dswayland-server-tizen-remote-surface.h | 4 +- src/DSWaylandServer/dswayland-server-tzsh.cpp | 22 ++----- src/DSWaylandServer/dswayland-server-tzsh.h | 8 +-- src/DSWaylandServer/dswayland-server-wayland.cpp | 9 +-- src/DSWaylandServer/dswayland-server-wayland.h | 4 +- .../dswayland-server-xdg-shell-unstable-v6.cpp | 11 +--- .../dswayland-server-xdg-shell-unstable-v6.h | 4 +- src/DSWaylandServer/dswayland-server-xdg-shell.cpp | 11 +--- src/DSWaylandServer/dswayland-server-xdg-shell.h | 4 +- 18 files changed, 94 insertions(+), 152 deletions(-) diff --git a/src/DSWaylandServer/dswayland-server-input-method.cpp b/src/DSWaylandServer/dswayland-server-input-method.cpp index 59b856c..c556a9c 100644 --- a/src/DSWaylandServer/dswayland-server-input-method.cpp +++ b/src/DSWaylandServer/dswayland-server-input-method.cpp @@ -229,7 +229,7 @@ namespace DSWaylandServer { { } - void wl_input_method_context::input_method_context_modifiers_map(Resource *, wl_array *) + void wl_input_method_context::input_method_context_modifiers_map(Resource *, struct ::wl_array *) { } @@ -409,7 +409,7 @@ namespace DSWaylandServer { void wl_input_method_context::handle_modifiers_map( ::wl_client *client, struct wl_resource *resource, - wl_array *map) + struct ::wl_array *map) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); diff --git a/src/DSWaylandServer/dswayland-server-input-method.h b/src/DSWaylandServer/dswayland-server-input-method.h index 3e9107c..cea8f8c 100644 --- a/src/DSWaylandServer/dswayland-server-input-method.h +++ b/src/DSWaylandServer/dswayland-server-input-method.h @@ -116,7 +116,7 @@ namespace DSWaylandServer { virtual void input_method_context_preedit_cursor(Resource *resource, int32_t index); virtual void input_method_context_delete_surrounding_text(Resource *resource, int32_t index, uint32_t length); virtual void input_method_context_cursor_position(Resource *resource, int32_t index, int32_t anchor); - virtual void input_method_context_modifiers_map(Resource *resource, wl_array *map); + virtual void input_method_context_modifiers_map(Resource *resource, struct ::wl_array *map); virtual void input_method_context_keysym(Resource *resource, uint32_t serial, uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers); virtual void input_method_context_grab_keyboard(Resource *resource, uint32_t keyboard); virtual void input_method_context_key(Resource *resource, uint32_t serial, uint32_t time, uint32_t key, uint32_t state); @@ -184,7 +184,7 @@ namespace DSWaylandServer { static void handle_modifiers_map( ::wl_client *client, struct wl_resource *resource, - wl_array *map); + struct ::wl_array *map); static void handle_keysym( ::wl_client *client, struct wl_resource *resource, diff --git a/src/DSWaylandServer/dswayland-server-text.cpp b/src/DSWaylandServer/dswayland-server-text.cpp index c8dcc2f..dd09ddd 100644 --- a/src/DSWaylandServer/dswayland-server-text.cpp +++ b/src/DSWaylandServer/dswayland-server-text.cpp @@ -668,7 +668,7 @@ namespace DSWaylandServer { } - void wl_text_input::send_modifiers_map(const std::string &map) + void wl_text_input::send_modifiers_map(struct ::wl_array *map) { DS_ASSERT_X(m_resource, "wl_text_input::modifiers_map", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -680,16 +680,11 @@ namespace DSWaylandServer { map); } - void wl_text_input::send_modifiers_map(struct ::wl_resource *resource, const std::string &map) + void wl_text_input::send_modifiers_map(struct ::wl_resource *resource, struct ::wl_array *map) { - struct wl_array map_data; - map_data.size = map.size(); - map_data.data = static_cast(const_cast(map.c_str())); - map_data.alloc = 0; - wl_text_input_send_modifiers_map( resource, - &map_data); + map); } diff --git a/src/DSWaylandServer/dswayland-server-text.h b/src/DSWaylandServer/dswayland-server-text.h index fa36a9f..20c4721 100644 --- a/src/DSWaylandServer/dswayland-server-text.h +++ b/src/DSWaylandServer/dswayland-server-text.h @@ -168,8 +168,8 @@ namespace DSWaylandServer { void send_enter(struct ::wl_resource *resource, struct ::wl_resource *surface); void send_leave(); void send_leave(struct ::wl_resource *resource); - void send_modifiers_map(const std::string &map); - void send_modifiers_map(struct ::wl_resource *resource, const std::string &map); + void send_modifiers_map(struct ::wl_array *map); + void send_modifiers_map(struct ::wl_resource *resource, struct ::wl_array *map); void send_input_panel_state(uint32_t state); void send_input_panel_state(struct ::wl_resource *resource, uint32_t state); void send_preedit_string(uint32_t serial, const std::string &text, const std::string &commit); diff --git a/src/DSWaylandServer/dswayland-server-tizen-extension.cpp b/src/DSWaylandServer/dswayland-server-tizen-extension.cpp index 064c104..5634e9e 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-extension.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-extension.cpp @@ -1414,7 +1414,7 @@ namespace DSWaylandServer { } - void tizen_policy::send_supported_aux_hints(struct ::wl_resource *surface, const std::string &hints, uint32_t num_hints) + void tizen_policy::send_supported_aux_hints(struct ::wl_resource *surface, struct ::wl_array *hints, uint32_t num_hints) { DS_ASSERT_X(m_resource, "tizen_policy::supported_aux_hints", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -1428,17 +1428,12 @@ namespace DSWaylandServer { num_hints); } - void tizen_policy::send_supported_aux_hints(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &hints, uint32_t num_hints) + void tizen_policy::send_supported_aux_hints(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *hints, uint32_t num_hints) { - struct wl_array hints_data; - hints_data.size = hints.size(); - hints_data.data = static_cast(const_cast(hints.c_str())); - hints_data.alloc = 0; - tizen_policy_send_supported_aux_hints( resource, surface, - &hints_data, + hints, num_hints); } @@ -1465,7 +1460,7 @@ namespace DSWaylandServer { } - void tizen_policy::send_aux_message(struct ::wl_resource *surface, const std::string &key, const std::string &value, const std::string &options) + void tizen_policy::send_aux_message(struct ::wl_resource *surface, const std::string &key, const std::string &value, struct ::wl_array *options) { DS_ASSERT_X(m_resource, "tizen_policy::aux_message", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -1480,19 +1475,14 @@ namespace DSWaylandServer { options); } - void tizen_policy::send_aux_message(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &key, const std::string &value, const std::string &options) + void tizen_policy::send_aux_message(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &key, const std::string &value, struct ::wl_array *options) { - struct wl_array options_data; - options_data.size = options.size(); - options_data.data = static_cast(const_cast(options.c_str())); - options_data.alloc = 0; - tizen_policy_send_aux_message( resource, surface, key.c_str(), value.c_str(), - &options_data); + options); } @@ -2965,11 +2955,11 @@ namespace DSWaylandServer { { } - void tizen_keyrouter::tizen_keyrouter_set_keygrab_list(Resource *, struct ::wl_resource *, wl_array *) + void tizen_keyrouter::tizen_keyrouter_set_keygrab_list(Resource *, struct ::wl_resource *, struct ::wl_array *) { } - void tizen_keyrouter::tizen_keyrouter_unset_keygrab_list(Resource *, struct ::wl_resource *, wl_array *) + void tizen_keyrouter::tizen_keyrouter_unset_keygrab_list(Resource *, struct ::wl_resource *, struct ::wl_array *) { } @@ -3042,7 +3032,7 @@ namespace DSWaylandServer { ::wl_client *client, struct wl_resource *resource, struct ::wl_resource *surface, - wl_array *grab_list) + struct ::wl_array *grab_list) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); @@ -3056,7 +3046,7 @@ namespace DSWaylandServer { ::wl_client *client, struct wl_resource *resource, struct ::wl_resource *surface, - wl_array *ungrab_list) + struct ::wl_array *ungrab_list) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); @@ -3156,7 +3146,7 @@ namespace DSWaylandServer { } - void tizen_keyrouter::send_keygrab_notify_list(struct ::wl_resource *surface, const std::string &grab_result) + void tizen_keyrouter::send_keygrab_notify_list(struct ::wl_resource *surface, struct ::wl_array *grab_result) { DS_ASSERT_X(m_resource, "tizen_keyrouter::keygrab_notify_list", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -3169,21 +3159,16 @@ namespace DSWaylandServer { grab_result); } - void tizen_keyrouter::send_keygrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &grab_result) + void tizen_keyrouter::send_keygrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *grab_result) { - struct wl_array grab_result_data; - grab_result_data.size = grab_result.size(); - grab_result_data.data = static_cast(const_cast(grab_result.c_str())); - grab_result_data.alloc = 0; - tizen_keyrouter_send_keygrab_notify_list( resource, surface, - &grab_result_data); + grab_result); } - void tizen_keyrouter::send_getgrab_notify_list(struct ::wl_resource *surface, const std::string &grab_result) + void tizen_keyrouter::send_getgrab_notify_list(struct ::wl_resource *surface, struct ::wl_array *grab_result) { DS_ASSERT_X(m_resource, "tizen_keyrouter::getgrab_notify_list", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -3196,17 +3181,12 @@ namespace DSWaylandServer { grab_result); } - void tizen_keyrouter::send_getgrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &grab_result) + void tizen_keyrouter::send_getgrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *grab_result) { - struct wl_array grab_result_data; - grab_result_data.size = grab_result.size(); - grab_result_data.data = static_cast(const_cast(grab_result.c_str())); - grab_result_data.alloc = 0; - tizen_keyrouter_send_getgrab_notify_list( resource, surface, - &grab_result_data); + grab_result); } @@ -6010,7 +5990,7 @@ namespace DSWaylandServer { tizen_input_device::handle_release }; - void tizen_input_device::tizen_input_device_select_axes(Resource *, wl_array *) + void tizen_input_device::tizen_input_device_select_axes(Resource *, struct ::wl_array *) { } @@ -6022,7 +6002,7 @@ namespace DSWaylandServer { void tizen_input_device::handle_select_axes( ::wl_client *client, struct wl_resource *resource, - wl_array *axes) + struct ::wl_array *axes) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); @@ -6041,7 +6021,7 @@ namespace DSWaylandServer { r); } - void tizen_input_device::send_device_info(const std::string &name, uint32_t clas, uint32_t subclas, const std::string &axes) + void tizen_input_device::send_device_info(const std::string &name, uint32_t clas, uint32_t subclas, struct ::wl_array *axes) { DS_ASSERT_X(m_resource, "tizen_input_device::device_info", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -6056,19 +6036,14 @@ namespace DSWaylandServer { axes); } - void tizen_input_device::send_device_info(struct ::wl_resource *resource, const std::string &name, uint32_t clas, uint32_t subclas, const std::string &axes) + void tizen_input_device::send_device_info(struct ::wl_resource *resource, const std::string &name, uint32_t clas, uint32_t subclas, struct ::wl_array *axes) { - struct wl_array axes_data; - axes_data.size = axes.size(); - axes_data.data = static_cast(const_cast(axes.c_str())); - axes_data.alloc = 0; - tizen_input_device_send_device_info( resource, name.c_str(), clas, subclas, - &axes_data); + axes); } @@ -6456,7 +6431,7 @@ namespace DSWaylandServer { { } - void tizen_launch_image::tizen_launch_image_launch(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , wl_array *) + void tizen_launch_image::tizen_launch_image_launch(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , struct ::wl_array *) { } @@ -6491,7 +6466,7 @@ namespace DSWaylandServer { uint32_t color_depth, uint32_t rotation, uint32_t indicator, - wl_array *options) + struct ::wl_array *options) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); diff --git a/src/DSWaylandServer/dswayland-server-tizen-extension.h b/src/DSWaylandServer/dswayland-server-tizen-extension.h index 10a2dc5..a3172f4 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-extension.h +++ b/src/DSWaylandServer/dswayland-server-tizen-extension.h @@ -298,12 +298,12 @@ namespace DSWaylandServer { void send_window_screen_mode_done(struct ::wl_resource *resource, struct ::wl_resource *surface, uint32_t mode, uint32_t error_state); void send_iconify_state_changed(struct ::wl_resource *surface, uint32_t iconified, uint32_t force); void send_iconify_state_changed(struct ::wl_resource *resource, struct ::wl_resource *surface, uint32_t iconified, uint32_t force); - void send_supported_aux_hints(struct ::wl_resource *surface, const std::string &hints, uint32_t num_hints); - void send_supported_aux_hints(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &hints, uint32_t num_hints); + void send_supported_aux_hints(struct ::wl_resource *surface, struct ::wl_array *hints, uint32_t num_hints); + void send_supported_aux_hints(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *hints, uint32_t num_hints); void send_allowed_aux_hint(struct ::wl_resource *surface, int32_t id); void send_allowed_aux_hint(struct ::wl_resource *resource, struct ::wl_resource *surface, int32_t id); - void send_aux_message(struct ::wl_resource *surface, const std::string &key, const std::string &value, const std::string &options); - void send_aux_message(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &key, const std::string &value, const std::string &options); + void send_aux_message(struct ::wl_resource *surface, const std::string &key, const std::string &value, struct ::wl_array *options); + void send_aux_message(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &key, const std::string &value, struct ::wl_array *options); void send_conformant_region(struct ::wl_resource *surface, uint32_t conformant_part, uint32_t state, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t serial); void send_conformant_region(struct ::wl_resource *resource, struct ::wl_resource *surface, uint32_t conformant_part, uint32_t state, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t serial); @@ -1127,10 +1127,10 @@ namespace DSWaylandServer { void send_keygrab_notify(struct ::wl_resource *surface, uint32_t key, uint32_t mode, uint32_t error); void send_keygrab_notify(struct ::wl_resource *resource, struct ::wl_resource *surface, uint32_t key, uint32_t mode, uint32_t error); - void send_keygrab_notify_list(struct ::wl_resource *surface, const std::string &grab_result); - void send_keygrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &grab_result); - void send_getgrab_notify_list(struct ::wl_resource *surface, const std::string &grab_result); - void send_getgrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, const std::string &grab_result); + void send_keygrab_notify_list(struct ::wl_resource *surface, struct ::wl_array *grab_result); + void send_keygrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *grab_result); + void send_getgrab_notify_list(struct ::wl_resource *surface, struct ::wl_array *grab_result); + void send_getgrab_notify_list(struct ::wl_resource *resource, struct ::wl_resource *surface, struct ::wl_array *grab_result); void send_set_register_none_key_notify(struct ::wl_resource *surface, uint32_t mode); void send_set_register_none_key_notify(struct ::wl_resource *resource, struct ::wl_resource *surface, uint32_t mode); void send_keyregister_notify(uint32_t status); @@ -1151,8 +1151,8 @@ namespace DSWaylandServer { virtual void tizen_keyrouter_set_keygrab(Resource *resource, struct ::wl_resource *surface, uint32_t key, uint32_t mode); virtual void tizen_keyrouter_unset_keygrab(Resource *resource, struct ::wl_resource *surface, uint32_t key); virtual void tizen_keyrouter_get_keygrab_status(Resource *resource, struct ::wl_resource *surface, uint32_t key); - virtual void tizen_keyrouter_set_keygrab_list(Resource *resource, struct ::wl_resource *surface, wl_array *grab_list); - virtual void tizen_keyrouter_unset_keygrab_list(Resource *resource, struct ::wl_resource *surface, wl_array *ungrab_list); + virtual void tizen_keyrouter_set_keygrab_list(Resource *resource, struct ::wl_resource *surface, struct ::wl_array *grab_list); + virtual void tizen_keyrouter_unset_keygrab_list(Resource *resource, struct ::wl_resource *surface, struct ::wl_array *ungrab_list); virtual void tizen_keyrouter_get_keygrab_list(Resource *resource, struct ::wl_resource *surface); virtual void tizen_keyrouter_set_register_none_key(Resource *resource, struct ::wl_resource *surface, uint32_t data); virtual void tizen_keyrouter_get_keyregister_status(Resource *resource, uint32_t data); @@ -1189,12 +1189,12 @@ namespace DSWaylandServer { ::wl_client *client, struct wl_resource *resource, struct ::wl_resource *surface, - wl_array *grab_list); + struct ::wl_array *grab_list); static void handle_unset_keygrab_list( ::wl_client *client, struct wl_resource *resource, struct ::wl_resource *surface, - wl_array *ungrab_list); + struct ::wl_array *ungrab_list); static void handle_get_keygrab_list( ::wl_client *client, struct wl_resource *resource, @@ -2346,8 +2346,8 @@ namespace DSWaylandServer { axis_type_detent = 5, // detent value e.g. moved distance with a rotary device }; - void send_device_info(const std::string &name, uint32_t clas, uint32_t subclas, const std::string &axes); - void send_device_info(struct ::wl_resource *resource, const std::string &name, uint32_t clas, uint32_t subclas, const std::string &axes); + void send_device_info(const std::string &name, uint32_t clas, uint32_t subclas, struct ::wl_array *axes); + void send_device_info(struct ::wl_resource *resource, const std::string &name, uint32_t clas, uint32_t subclas, struct ::wl_array *axes); void send_event_device(uint32_t serial, const std::string &name, uint32_t time); void send_event_device(struct ::wl_resource *resource, uint32_t serial, const std::string &name, uint32_t time); void send_axis(uint32_t axis_type, wl_fixed_t value); @@ -2359,7 +2359,7 @@ namespace DSWaylandServer { virtual void tizen_input_device_bind_resource(Resource *resource); virtual void tizen_input_device_destroy_resource(Resource *resource); - virtual void tizen_input_device_select_axes(Resource *resource, wl_array *axes); + virtual void tizen_input_device_select_axes(Resource *resource, struct ::wl_array *axes); virtual void tizen_input_device_release(Resource *resource); private: @@ -2375,7 +2375,7 @@ namespace DSWaylandServer { static void handle_select_axes( ::wl_client *client, struct wl_resource *resource, - wl_array *axes); + struct ::wl_array *axes); static void handle_release( ::wl_client *client, struct wl_resource *resource); @@ -2547,7 +2547,7 @@ namespace DSWaylandServer { virtual void tizen_launch_image_destroy_resource(Resource *resource); virtual void tizen_launch_image_destroy(Resource *resource); - virtual void tizen_launch_image_launch(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, wl_array *options); + virtual void tizen_launch_image_launch(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, struct ::wl_array *options); virtual void tizen_launch_image_owner(Resource *resource, uint32_t pid); virtual void tizen_launch_image_show(Resource *resource); virtual void tizen_launch_image_hide(Resource *resource); @@ -2573,7 +2573,7 @@ namespace DSWaylandServer { uint32_t color_depth, uint32_t rotation, uint32_t indicator, - wl_array *options); + struct ::wl_array *options); static void handle_owner( ::wl_client *client, struct wl_resource *resource, diff --git a/src/DSWaylandServer/dswayland-server-tizen-launch.cpp b/src/DSWaylandServer/dswayland-server-tizen-launch.cpp index aad026d..c8af51d 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-launch.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-launch.cpp @@ -182,7 +182,7 @@ namespace DSWaylandServer { { } - void tizen_launch_effect::tizen_launch_effect_type_set(Resource *, const std::string &, uint32_t , wl_array *) + void tizen_launch_effect::tizen_launch_effect_type_set(Resource *, const std::string &, uint32_t , struct ::wl_array *) { } @@ -212,7 +212,7 @@ namespace DSWaylandServer { struct wl_resource *resource, const char *effect_type, uint32_t pid, - wl_array *options) + struct ::wl_array *options) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); @@ -401,7 +401,7 @@ namespace DSWaylandServer { { } - void tizen_launch_splash::tizen_launch_splash_launch(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , const std::string &, const std::string &, wl_array *) + void tizen_launch_splash::tizen_launch_splash_launch(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , const std::string &, const std::string &, struct ::wl_array *) { } @@ -409,7 +409,7 @@ namespace DSWaylandServer { { } - void tizen_launch_splash::tizen_launch_splash_launch_v2(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , const std::string &, const std::string &, wl_array *, wl_array *) + void tizen_launch_splash::tizen_launch_splash_launch_v2(Resource *, const std::string &, uint32_t , uint32_t , uint32_t , uint32_t , const std::string &, const std::string &, struct ::wl_array *, struct ::wl_array *) { } @@ -434,7 +434,7 @@ namespace DSWaylandServer { uint32_t indicator, const char *effect_type, const char *theme_type, - wl_array *options) + struct ::wl_array *options) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); @@ -472,8 +472,8 @@ namespace DSWaylandServer { uint32_t indicator, const char *effect_type, const char *theme_type, - wl_array *options, - wl_array *extra_config) + struct ::wl_array *options, + struct ::wl_array *extra_config) { DS_UNUSED(client); Resource *r = Resource::fromResource(resource); diff --git a/src/DSWaylandServer/dswayland-server-tizen-launch.h b/src/DSWaylandServer/dswayland-server-tizen-launch.h index 516794e..d62a6a9 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-launch.h +++ b/src/DSWaylandServer/dswayland-server-tizen-launch.h @@ -75,7 +75,7 @@ namespace DSWaylandServer { virtual void tizen_launch_effect_destroy_resource(Resource *resource); virtual void tizen_launch_effect_create_splash_img(Resource *resource, uint32_t id); - virtual void tizen_launch_effect_type_set(Resource *resource, const std::string &effect_type, uint32_t pid, wl_array *options); + virtual void tizen_launch_effect_type_set(Resource *resource, const std::string &effect_type, uint32_t pid, struct ::wl_array *options); virtual void tizen_launch_effect_type_unset(Resource *resource, uint32_t pid); virtual void tizen_launch_effect_destroy(Resource *resource); @@ -98,7 +98,7 @@ namespace DSWaylandServer { struct wl_resource *resource, const char *effect_type, uint32_t pid, - wl_array *options); + struct ::wl_array *options); static void handle_type_unset( ::wl_client *client, struct wl_resource *resource, @@ -189,9 +189,9 @@ namespace DSWaylandServer { virtual void tizen_launch_splash_destroy_resource(Resource *resource); virtual void tizen_launch_splash_destroy(Resource *resource); - virtual void tizen_launch_splash_launch(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, const std::string &effect_type, const std::string &theme_type, wl_array *options); + virtual void tizen_launch_splash_launch(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, const std::string &effect_type, const std::string &theme_type, struct ::wl_array *options); virtual void tizen_launch_splash_owner(Resource *resource, uint32_t pid); - virtual void tizen_launch_splash_launch_v2(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, const std::string &effect_type, const std::string &theme_type, wl_array *options, wl_array *extra_config); + virtual void tizen_launch_splash_launch_v2(Resource *resource, const std::string &file, uint32_t file_type, uint32_t color_depth, uint32_t rotation, uint32_t indicator, const std::string &effect_type, const std::string &theme_type, struct ::wl_array *options, struct ::wl_array *extra_config); private: static void bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id); @@ -216,7 +216,7 @@ namespace DSWaylandServer { uint32_t indicator, const char *effect_type, const char *theme_type, - wl_array *options); + struct ::wl_array *options); static void handle_owner( ::wl_client *client, struct wl_resource *resource, @@ -231,8 +231,8 @@ namespace DSWaylandServer { uint32_t indicator, const char *effect_type, const char *theme_type, - wl_array *options, - wl_array *extra_config); + struct ::wl_array *options, + struct ::wl_array *extra_config); std::multimap m_resource_map; Resource *m_resource; diff --git a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp index 037a4cb..005d160 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp @@ -1016,7 +1016,7 @@ namespace DSWaylandServer { } - void tizen_remote_surface::send_changed_buffer(uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, const std::string &options) + void tizen_remote_surface::send_changed_buffer(uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, struct ::wl_array *options) { DS_ASSERT_X(m_resource, "tizen_remote_surface::changed_buffer", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -1033,13 +1033,8 @@ namespace DSWaylandServer { options); } - void tizen_remote_surface::send_changed_buffer(struct ::wl_resource *resource, uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, const std::string &options) + void tizen_remote_surface::send_changed_buffer(struct ::wl_resource *resource, uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, struct ::wl_array *options) { - struct wl_array options_data; - options_data.size = options.size(); - options_data.data = static_cast(const_cast(options.c_str())); - options_data.alloc = 0; - tizen_remote_surface_send_changed_buffer( resource, type, @@ -1047,7 +1042,7 @@ namespace DSWaylandServer { img_file_fd, img_file_size, time, - &options_data); + options); } diff --git a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h index 6c95bd8..68467c2 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h +++ b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h @@ -342,8 +342,8 @@ namespace DSWaylandServer { void send_update_buffer(struct ::wl_resource *resource, struct ::wl_resource *buffer, uint32_t time); void send_missing(); void send_missing(struct ::wl_resource *resource); - void send_changed_buffer(uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, const std::string &options); - void send_changed_buffer(struct ::wl_resource *resource, uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, const std::string &options); + void send_changed_buffer(uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, struct ::wl_array *options); + void send_changed_buffer(struct ::wl_resource *resource, uint32_t type, struct ::wl_resource *tbm, int32_t img_file_fd, uint32_t img_file_size, uint32_t time, struct ::wl_array *options); void send_input_event_filter(uint32_t event_filter); void send_input_event_filter(struct ::wl_resource *resource, uint32_t event_filter); diff --git a/src/DSWaylandServer/dswayland-server-tzsh.cpp b/src/DSWaylandServer/dswayland-server-tzsh.cpp index a584ec8..7d865d0 100644 --- a/src/DSWaylandServer/dswayland-server-tzsh.cpp +++ b/src/DSWaylandServer/dswayland-server-tzsh.cpp @@ -682,7 +682,7 @@ namespace DSWaylandServer { } - void tws_quickpanel::send_state_changed(const std::string &states) + void tws_quickpanel::send_state_changed(struct ::wl_array *states) { DS_ASSERT_X(m_resource, "tws_quickpanel::state_changed", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -694,16 +694,11 @@ namespace DSWaylandServer { states); } - void tws_quickpanel::send_state_changed(struct ::wl_resource *resource, const std::string &states) + void tws_quickpanel::send_state_changed(struct ::wl_resource *resource, struct ::wl_array *states) { - struct wl_array states_data; - states_data.size = states.size(); - states_data.data = static_cast(const_cast(states.c_str())); - states_data.alloc = 0; - tws_quickpanel_send_state_changed( resource, - &states_data); + states); } @@ -3636,7 +3631,7 @@ namespace DSWaylandServer { serial); } - void tws_service_launcher::send_prepare(uint32_t target_type, const std::string &target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial) + void tws_service_launcher::send_prepare(uint32_t target_type, struct ::wl_array *target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial) { DS_ASSERT_X(m_resource, "tws_service_launcher::prepare", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -3654,17 +3649,12 @@ namespace DSWaylandServer { serial); } - void tws_service_launcher::send_prepare(struct ::wl_resource *resource, uint32_t target_type, const std::string &target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial) + void tws_service_launcher::send_prepare(struct ::wl_resource *resource, uint32_t target_type, struct ::wl_array *target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial) { - struct wl_array target_info_data; - target_info_data.size = target_info.size(); - target_info_data.data = static_cast(const_cast(target_info.c_str())); - target_info_data.alloc = 0; - tws_service_launcher_send_prepare( resource, target_type, - &target_info_data, + target_info, direction, x, y, diff --git a/src/DSWaylandServer/dswayland-server-tzsh.h b/src/DSWaylandServer/dswayland-server-tzsh.h index ac75c1f..a573556 100644 --- a/src/DSWaylandServer/dswayland-server-tzsh.h +++ b/src/DSWaylandServer/dswayland-server-tzsh.h @@ -238,8 +238,8 @@ namespace DSWaylandServer { void send_state_get_done(int32_t type, int32_t value, uint32_t error_state); void send_state_get_done(struct ::wl_resource *resource, int32_t type, int32_t value, uint32_t error_state); - void send_state_changed(const std::string &states); - void send_state_changed(struct ::wl_resource *resource, const std::string &states); + void send_state_changed(struct ::wl_array *states); + void send_state_changed(struct ::wl_resource *resource, struct ::wl_array *states); protected: virtual Resource *tws_quickpanel_allocate(); @@ -1589,8 +1589,8 @@ namespace DSWaylandServer { error_wrong_request = 2, }; - void send_prepare(uint32_t target_type, const std::string &target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial); - void send_prepare(struct ::wl_resource *resource, uint32_t target_type, const std::string &target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial); + void send_prepare(uint32_t target_type, struct ::wl_array *target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial); + void send_prepare(struct ::wl_resource *resource, uint32_t target_type, struct ::wl_array *target_info, uint32_t direction, int32_t x, int32_t y, const std::string &shared_widget_info, uint32_t serial); void send_stop(uint32_t serial); void send_stop(struct ::wl_resource *resource, uint32_t serial); void send_error(uint32_t code, uint32_t serial); diff --git a/src/DSWaylandServer/dswayland-server-wayland.cpp b/src/DSWaylandServer/dswayland-server-wayland.cpp index a6cb680..d9d66ac 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.cpp +++ b/src/DSWaylandServer/dswayland-server-wayland.cpp @@ -3861,7 +3861,7 @@ namespace DSWaylandServer { } - void wl_keyboard::send_enter(uint32_t serial, struct ::wl_resource *surface, std::string keys) + void wl_keyboard::send_enter(uint32_t serial, struct ::wl_resource *surface, struct ::wl_array *keys) { DS_ASSERT_X(m_resource, "wl_keyboard::enter", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -3875,16 +3875,13 @@ namespace DSWaylandServer { keys); } - void wl_keyboard::send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, std::string keys) + void wl_keyboard::send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, struct ::wl_array *keys) { - struct wl_array keys_data; - wl_array_init(&keys_data); wl_keyboard_send_enter( resource, serial, surface, - &keys_data); - wl_array_release(&keys_data); + keys); } diff --git a/src/DSWaylandServer/dswayland-server-wayland.h b/src/DSWaylandServer/dswayland-server-wayland.h index 9e54b16..2a1bc52 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.h +++ b/src/DSWaylandServer/dswayland-server-wayland.h @@ -1673,8 +1673,8 @@ namespace DSWaylandServer { void send_keymap(uint32_t format, int32_t fd, uint32_t size); void send_keymap(struct ::wl_resource *resource, uint32_t format, int32_t fd, uint32_t size); - void send_enter(uint32_t serial, struct ::wl_resource *surface, std::string keys); - void send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, std::string keys); + void send_enter(uint32_t serial, struct ::wl_resource *surface, struct ::wl_array *keys); + void send_enter(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface, struct ::wl_array *keys); void send_leave(uint32_t serial, struct ::wl_resource *surface); void send_leave(struct ::wl_resource *resource, uint32_t serial, struct ::wl_resource *surface); void send_key(uint32_t serial, uint32_t time, uint32_t key, uint32_t state); diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp index ea76829..5758fc4 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp +++ b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp @@ -1194,7 +1194,7 @@ namespace DSWaylandServer { r); } - void zxdg_toplevel_v6::send_configure(int32_t width, int32_t height, const std::string &states) + void zxdg_toplevel_v6::send_configure(int32_t width, int32_t height, struct ::wl_array *states) { DS_ASSERT_X(m_resource, "zxdg_toplevel_v6::configure", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -1208,18 +1208,13 @@ namespace DSWaylandServer { states); } - void zxdg_toplevel_v6::send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, const std::string &states) + void zxdg_toplevel_v6::send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, struct ::wl_array *states) { - struct wl_array states_data; - states_data.size = states.size(); - states_data.data = static_cast(const_cast(states.c_str())); - states_data.alloc = 0; - zxdg_toplevel_v6_send_configure( resource, width, height, - &states_data); + states); } diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h index 0881d89..26363d1 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h +++ b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h @@ -454,8 +454,8 @@ namespace DSWaylandServer { state_activated = 4, // the surface is now activated }; - void send_configure(int32_t width, int32_t height, const std::string &states); - void send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, const std::string &states); + void send_configure(int32_t width, int32_t height, struct ::wl_array *states); + void send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, struct ::wl_array *states); void send_close(); void send_close(struct ::wl_resource *resource); diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell.cpp b/src/DSWaylandServer/dswayland-server-xdg-shell.cpp index 06f76be..8440d58 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell.cpp +++ b/src/DSWaylandServer/dswayland-server-xdg-shell.cpp @@ -1194,7 +1194,7 @@ namespace DSWaylandServer { r); } - void xdg_toplevel::send_configure(int32_t width, int32_t height, const std::string &states) + void xdg_toplevel::send_configure(int32_t width, int32_t height, struct ::wl_array *states) { DS_ASSERT_X(m_resource, "xdg_toplevel::configure", "Uninitialised resource"); if (DS_UNLIKELY(!m_resource)) { @@ -1208,18 +1208,13 @@ namespace DSWaylandServer { states); } - void xdg_toplevel::send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, const std::string &states) + void xdg_toplevel::send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, struct ::wl_array *states) { - struct wl_array states_data; - states_data.size = states.size(); - states_data.data = static_cast(const_cast(states.c_str())); - states_data.alloc = 0; - xdg_toplevel_send_configure( resource, width, height, - &states_data); + states); } diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell.h b/src/DSWaylandServer/dswayland-server-xdg-shell.h index d17b98c..ec0494a 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell.h +++ b/src/DSWaylandServer/dswayland-server-xdg-shell.h @@ -466,8 +466,8 @@ namespace DSWaylandServer { state_tiled_bottom = 8, }; - void send_configure(int32_t width, int32_t height, const std::string &states); - void send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, const std::string &states); + void send_configure(int32_t width, int32_t height, struct ::wl_array *states); + void send_configure(struct ::wl_resource *resource, int32_t width, int32_t height, struct ::wl_array *states); void send_close(); void send_close(struct ::wl_resource *resource); -- 2.7.4 From 51d0efd3dc171d0306be1c2b779101c318b5c0f4 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 12 Aug 2020 17:43:13 +0900 Subject: [PATCH 12/16] DSWaylandServer: fix to use wl_array pointer to following changes of dswayland-server header Change-Id: If368b1b8bf186ee64e2a3c3970d633a41a6dc8d5 Signed-off-by: Junseok, Kim --- src/DSWaylandServer/DSWaylandKeyboard.cpp | 6 ++++-- src/DSWaylandServer/DSWaylandKeyboardPrivate.h | 2 +- src/DSWaylandServer/DSWaylandTextInput.cpp | 10 +++++++++- src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp | 7 +++++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/DSWaylandServer/DSWaylandKeyboard.cpp b/src/DSWaylandServer/DSWaylandKeyboard.cpp index eaae9ca..85fa455 100644 --- a/src/DSWaylandServer/DSWaylandKeyboard.cpp +++ b/src/DSWaylandServer/DSWaylandKeyboard.cpp @@ -72,13 +72,15 @@ DSWaylandKeyboardPrivate::DSWaylandKeyboardPrivate(DSWaylandSeat *seat, DSWaylan __fdKeymap, __fdKeymapSize, __formatKeymap); wl_keyboard(); - __keys.clear(); + wl_array_init(&__keys); } DSWaylandKeyboardPrivate::~DSWaylandKeyboardPrivate() { if (__fdKeymap >= 0) close(__fdKeymap); + + wl_array_release(&__keys); } void DSWaylandKeyboardPrivate::keyboard_bind_resource(Resource *resource) @@ -121,7 +123,7 @@ void DSWaylandKeyboardPrivate::sendEnter(struct ::wl_resource *surface) { if (res.first == client) { - send_enter(res.second->handle, __compositor->nextSerial(), surface, __keys); + send_enter(res.second->handle, __compositor->nextSerial(), surface, &__keys); } }; diff --git a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h index 98eed2a..f3be21d 100644 --- a/src/DSWaylandServer/DSWaylandKeyboardPrivate.h +++ b/src/DSWaylandServer/DSWaylandKeyboardPrivate.h @@ -72,7 +72,7 @@ private: uint32_t __repeatRate; uint32_t __repeatDelay; - std::string __keys; + struct ::wl_array __keys; int __fdKeymap; uint32_t __fdKeymapSize; diff --git a/src/DSWaylandServer/DSWaylandTextInput.cpp b/src/DSWaylandServer/DSWaylandTextInput.cpp index 4f3855b..29ea673 100644 --- a/src/DSWaylandServer/DSWaylandTextInput.cpp +++ b/src/DSWaylandServer/DSWaylandTextInput.cpp @@ -672,13 +672,21 @@ void DSWaylandTextInputPrivate::sendCursorPosition(int index, int anchor) void DSWaylandTextInputPrivate::sendModifiersMap(std::string map) { + struct ::wl_array map_data; + if (!__activatedResource) { DSLOG_WRN("DSWaylandTextInput", "No Text Input For Resource"); return; } - send_modifiers_map(__activatedResource->handle, map); + wl_array_init(&map_data); + char *strptr = (char *)wl_array_add(&map_data, map.length()); + std::copy(map.c_str(), map.c_str() + map.length(), strptr); + + send_modifiers_map(__activatedResource->handle, &map_data); + + wl_array_release(&map_data); } void DSWaylandTextInputPrivate::sendKeysym(unsigned int serial, unsigned int time, unsigned int sym, unsigned int state, unsigned int modifiers) diff --git a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp index 0ef1347..d30d185 100644 --- a/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp +++ b/src/DSWaylandServer/DSWaylandTizenInputDeviceManager.cpp @@ -165,9 +165,12 @@ void *DSWaylandTizenInputDevicePrivate::addDevice(void *client, DSInputDevice *d void DSWaylandTizenInputDevicePrivate::sendDeviceInfo(void *resource, DSInputDevice *device) { - std::string axes; + struct ::wl_array axes; + wl_array_init(&axes); - send_device_info((struct ::wl_resource *)resource, device->getName(), (uint32_t)device->getClass(), (uint32_t)device->getSubclass(), axes); + send_device_info((struct ::wl_resource *)resource, device->getName(), (uint32_t)device->getClass(), (uint32_t)device->getSubclass(), &axes); + + wl_array_release(&axes); } -- 2.7.4 From 68e3d7b135ee0baf85ff559cfa9b63bc3ef2ab68 Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Tue, 11 Aug 2020 13:51:56 +0900 Subject: [PATCH 13/16] DSWaylandProtocolTrace: add skeleton code with singleton Change-Id: I795496753aa315bff435c86d16a9c7c254904354 --- src/DSWaylandServer/DSWaylandProtocolTrace.cpp | 113 +++++++++++++++++++++ src/DSWaylandServer/DSWaylandProtocolTrace.h | 58 +++++++++++ .../DSWaylandProtocolTracePrivate.h | 54 ++++++++++ src/meson.build | 3 + tests/DSWaylandProtocolTrace-test.cpp | 59 +++++++++++ tests/meson.build | 1 + 6 files changed, 288 insertions(+) create mode 100644 src/DSWaylandServer/DSWaylandProtocolTrace.cpp create mode 100644 src/DSWaylandServer/DSWaylandProtocolTrace.h create mode 100644 src/DSWaylandServer/DSWaylandProtocolTracePrivate.h create mode 100644 tests/DSWaylandProtocolTrace-test.cpp diff --git a/src/DSWaylandServer/DSWaylandProtocolTrace.cpp b/src/DSWaylandServer/DSWaylandProtocolTrace.cpp new file mode 100644 index 0000000..0f8c9a6 --- /dev/null +++ b/src/DSWaylandServer/DSWaylandProtocolTrace.cpp @@ -0,0 +1,113 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#include "DSWaylandProtocolTrace.h" +#include "DSWaylandProtocolTracePrivate.h" + +namespace display_server +{ + +int DSWaylandProtocolTrace::__refCount { 0 }; +std::mutex DSWaylandProtocolTrace::__mutex; +DSWaylandProtocolTrace* DSWaylandProtocolTrace::__protocolTrace { nullptr }; + +DSWaylandProtocolTrace::DSWaylandProtocolTrace(DSObject *parent) + : DS_INIT_PRIVATE_PTR(DSWaylandProtocolTrace) +{ + //init(); +} + +DSWaylandProtocolTrace::~DSWaylandProtocolTrace() +{ + +} + +DSWaylandProtocolTrace *DSWaylandProtocolTrace::getInstance() +{ + std::lock_guard tLock(__mutex); + + if(!__protocolTrace && (__refCount == 0)) + { + __protocolTrace = new DSWaylandProtocolTrace(new DSObject); + DSLOG_INF("DSWaylandProtocolTrace", "DSWaylandProtocolTrace instance has been created !"); + } + + ++__refCount; + return __protocolTrace; +} + +void DSWaylandProtocolTrace::releaseInstance() +{ + std::lock_guard tLock(__mutex); + + --__refCount; + if(__refCount < 0) + __refCount = 0; + + if((0==__refCount) && __protocolTrace) + { + delete __protocolTrace; + __protocolTrace = nullptr; + DSLOG_INF("DSWaylandProtocolTrace", "DSWaylandProtocolTrace instance has been removed !"); + } +} + +bool DSWaylandProtocolTrace::init(void) +{ + return false; +} + +int DSWaylandProtocolTrace::enableProtocolTrace(bool state) +{ + //following state : enable, disable trace + return -1; +} + +DSWaylandProtocolTracePrivate::DSWaylandProtocolTracePrivate(DSWaylandProtocolTrace *p_ptr) + : DSObjectPrivate(p_ptr), __p_ptr(p_ptr) +{ + +} + +DSWaylandProtocolTracePrivate::~DSWaylandProtocolTracePrivate() +{ + +} + +void DSWaylandProtocolTracePrivate::protocol_rule_init(char *rule_path) +{ +} + +void DSWaylandProtocolTracePrivate::protocol_trace_init(char *trace_path) +{ +} + +void DSWaylandProtocolTracePrivate::protocol_rule_set(void) +{ +} + +void DSWaylandProtocolTracePrivate::protocol_rule_file_set(void) +{ +} + +} // namespace display_server \ No newline at end of file diff --git a/src/DSWaylandServer/DSWaylandProtocolTrace.h b/src/DSWaylandServer/DSWaylandProtocolTrace.h new file mode 100644 index 0000000..b9526df --- /dev/null +++ b/src/DSWaylandServer/DSWaylandProtocolTrace.h @@ -0,0 +1,58 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#ifndef __DS_WAYLAND_PROTOCOL_TRACE_H__ +#define __DS_WAYLAND_PROTOCOL_TRACE_H__ + +#include +#include + +namespace display_server +{ + +class DSWaylandProtocolTracePrivate; + +class DSWaylandProtocolTrace : public DSObject +{ +DS_PIMPL_USE_PRIVATE(DSWaylandProtocolTrace); + +public: + DSWaylandProtocolTrace(DSObject *parent); + virtual ~DSWaylandProtocolTrace(); + static DSWaylandProtocolTrace *getInstance(); + static void releaseInstance(); + + bool init(void); + int enableProtocolTrace(bool state); + //int registerProtocolRule(void); + +private: + static std::mutex __mutex; + static DSWaylandProtocolTrace *__protocolTrace; + static int __refCount; + +}; + +} + +#endif // __DS_WAYLAND_PROTOCOL_TRACE_H__ \ No newline at end of file diff --git a/src/DSWaylandServer/DSWaylandProtocolTracePrivate.h b/src/DSWaylandServer/DSWaylandProtocolTracePrivate.h new file mode 100644 index 0000000..d43ed9d --- /dev/null +++ b/src/DSWaylandServer/DSWaylandProtocolTracePrivate.h @@ -0,0 +1,54 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#ifndef __DS_WAYLAND_PROTOCOL_TRACE_PRIVATE_H__ +#define __DS_WAYLAND_PROTOCOL_TRACE_PRIVATE_H__ + +#include "DSWaylandProtocolTrace.h" + +namespace display_server +{ + +class DSWaylandProtocolTracePrivate : public DSObjectPrivate +{ +DS_PIMPL_USE_PUBLIC(DSWaylandProtocolTrace); + +public: + DSWaylandProtocolTracePrivate() = delete; + DSWaylandProtocolTracePrivate(DSWaylandProtocolTrace *p_ptr); + ~DSWaylandProtocolTracePrivate(); + + +protected: + void protocol_rule_init(char *rule_path); + void protocol_trace_init(char *trace_path); + + void protocol_rule_set(void); + void protocol_rule_file_set(void); +}; + +} + + + +#endif // __DS_WAYLAND_PROTOCOL_TRACE_PRIVATE_H__ \ No newline at end of file diff --git a/src/meson.build b/src/meson.build index e4ab5e5..0766802 100644 --- a/src/meson.build +++ b/src/meson.build @@ -157,6 +157,9 @@ libds_wayland_srcs = [ 'DSWaylandServer/DSWaylandTizenAppinfoPrivate.h', 'DSWaylandServer/DSWaylandTizenAppinfo.h', 'DSWaylandServer/DSWaylandTizenAppinfo.cpp', + 'DSWaylandServer/DSWaylandProtocolTracePrivate.h', + 'DSWaylandServer/DSWaylandProtocolTrace.h', + 'DSWaylandServer/DSWaylandProtocolTrace.cpp', ] libds_srcs += libds_wayland_srcs diff --git a/tests/DSWaylandProtocolTrace-test.cpp b/tests/DSWaylandProtocolTrace-test.cpp new file mode 100644 index 0000000..e02cf3e --- /dev/null +++ b/tests/DSWaylandProtocolTrace-test.cpp @@ -0,0 +1,59 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#include "libds-tests.h" +#include "DSWaylandProtocolTrace.h" + +using namespace display_server; + +class DSWaylandProtocolTraceTest : public ::testing::Test +{ +public: + void SetUp(void) override + {} + void TearDown(void) override + {} + +}; + +TEST_F(DSWaylandProtocolTraceTest, NewDSWaylandProtocolTrace) +{ + DSWaylandProtocolTrace *pTrace = DSWaylandProtocolTrace::getInstance(); + EXPECT_TRUE(pTrace != nullptr); + + if(pTrace) + DSWaylandProtocolTrace::releaseInstance(); +} + +TEST_F(DSWaylandProtocolTraceTest, BasicMethods) +{ + DSWaylandProtocolTrace *pTrace = DSWaylandProtocolTrace::getInstance(); + bool trace_state = false; //disable + + if(pTrace) + { + EXPECT_TRUE(pTrace->init() == true); + EXPECT_TRUE(pTrace->enableProtocolTrace(trace_state) == 0); + DSWaylandProtocolTrace::releaseInstance(); + } +} \ No newline at end of file diff --git a/tests/meson.build b/tests/meson.build index 45e852d..946b46d 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -53,6 +53,7 @@ libds_tests_srcs = [ 'DSKeyboard-test.cpp', 'DSTouch-test.cpp', 'DSTizenAppinfo-test.cpp', + 'DSWaylandProtocolTrace-test.cpp', ] gmock_dep = dependency('gmock', method : 'pkg-config') -- 2.7.4 From 0dae1f5ce5d24d5d89ba5257148cd091ea411ec7 Mon Sep 17 00:00:00 2001 From: "Junseok, Kim" Date: Wed, 12 Aug 2020 21:06:47 +0900 Subject: [PATCH 14/16] DSWaylandServer: add initializer of m_glovalVersion and m_displayDestroyedListener Added initializer of m_glovalVersion and m_displayDestroyedListener for all dswayland-server classes Change-Id: Ic4c7fca6653f395a9c491918c0e844852b88e512 Signed-off-by: Junseok, Kim --- src/DSWaylandServer/dswayland-server-eom.cpp | 8 + src/DSWaylandServer/dswayland-server-eom.h | 1 + .../dswayland-server-fullscreen-shell.cpp | 16 ++ .../dswayland-server-fullscreen-shell.h | 2 + .../dswayland-server-input-method.cpp | 32 ++++ .../dswayland-server-input-method.h | 4 + .../dswayland-server-presentation-time.cpp | 16 ++ .../dswayland-server-presentation-time.h | 2 + src/DSWaylandServer/dswayland-server-scaler.cpp | 16 ++ src/DSWaylandServer/dswayland-server-scaler.h | 2 + .../dswayland-server-screenshooter.cpp | 8 + .../dswayland-server-screenshooter.h | 1 + .../dswayland-server-text-cursor-position.cpp | 8 + .../dswayland-server-text-cursor-position.h | 1 + src/DSWaylandServer/dswayland-server-text.cpp | 16 ++ src/DSWaylandServer/dswayland-server-text.h | 2 + .../dswayland-server-tizen-dpms.cpp | 8 + src/DSWaylandServer/dswayland-server-tizen-dpms.h | 1 + .../dswayland-server-tizen-extension.cpp | 200 +++++++++++++++++++++ .../dswayland-server-tizen-extension.h | 25 +++ src/DSWaylandServer/dswayland-server-tizen-hwc.cpp | 16 ++ src/DSWaylandServer/dswayland-server-tizen-hwc.h | 2 + .../dswayland-server-tizen-launch.cpp | 24 +++ .../dswayland-server-tizen-launch.h | 3 + .../dswayland-server-tizen-remote-surface.cpp | 32 ++++ .../dswayland-server-tizen-remote-surface.h | 4 + .../dswayland-server-tizen-surface.cpp | 16 ++ .../dswayland-server-tizen-surface.h | 2 + .../dswayland-server-tizen_policy_ext.cpp | 16 ++ .../dswayland-server-tizen_policy_ext.h | 2 + src/DSWaylandServer/dswayland-server-transform.cpp | 16 ++ src/DSWaylandServer/dswayland-server-transform.h | 2 + src/DSWaylandServer/dswayland-server-tzsh.cpp | 128 +++++++++++++ src/DSWaylandServer/dswayland-server-tzsh.h | 16 ++ src/DSWaylandServer/dswayland-server-wayland.cpp | 160 +++++++++++++++++ src/DSWaylandServer/dswayland-server-wayland.h | 20 +++ .../dswayland-server-xdg-shell-unstable-v6.cpp | 40 +++++ .../dswayland-server-xdg-shell-unstable-v6.h | 5 + src/DSWaylandServer/dswayland-server-xdg-shell.cpp | 40 +++++ src/DSWaylandServer/dswayland-server-xdg-shell.h | 5 + 40 files changed, 918 insertions(+) diff --git a/src/DSWaylandServer/dswayland-server-eom.cpp b/src/DSWaylandServer/dswayland-server-eom.cpp index d5f67fc..a6ff4a1 100644 --- a/src/DSWaylandServer/dswayland-server-eom.cpp +++ b/src/DSWaylandServer/dswayland-server-eom.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-eom.h b/src/DSWaylandServer/dswayland-server-eom.h index d68ecae..4630191 100644 --- a/src/DSWaylandServer/dswayland-server-eom.h +++ b/src/DSWaylandServer/dswayland-server-eom.h @@ -179,6 +179,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_eom *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-fullscreen-shell.cpp b/src/DSWaylandServer/dswayland-server-fullscreen-shell.cpp index 6ede38d..1062e0d 100644 --- a/src/DSWaylandServer/dswayland-server-fullscreen-shell.cpp +++ b/src/DSWaylandServer/dswayland-server-fullscreen-shell.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -258,6 +266,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -266,6 +276,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -274,6 +286,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -282,6 +296,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-fullscreen-shell.h b/src/DSWaylandServer/dswayland-server-fullscreen-shell.h index c384908..97ab3a6 100644 --- a/src/DSWaylandServer/dswayland-server-fullscreen-shell.h +++ b/src/DSWaylandServer/dswayland-server-fullscreen-shell.h @@ -131,6 +131,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { _wl_fullscreen_shell *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -210,6 +211,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { _wl_fullscreen_shell_mode_feedback *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-input-method.cpp b/src/DSWaylandServer/dswayland-server-input-method.cpp index c556a9c..3fcce7a 100644 --- a/src/DSWaylandServer/dswayland-server-input-method.cpp +++ b/src/DSWaylandServer/dswayland-server-input-method.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1086,6 +1094,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1094,6 +1104,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1102,6 +1114,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1110,6 +1124,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1337,6 +1353,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1345,6 +1363,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1353,6 +1373,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1361,6 +1383,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1505,6 +1529,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1513,6 +1539,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1521,6 +1549,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1529,6 +1559,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-input-method.h b/src/DSWaylandServer/dswayland-server-input-method.h index cea8f8c..3d2b501 100644 --- a/src/DSWaylandServer/dswayland-server-input-method.h +++ b/src/DSWaylandServer/dswayland-server-input-method.h @@ -302,6 +302,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_input_method_context *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -385,6 +386,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_input_method *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -467,6 +469,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_input_panel *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -572,6 +575,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_input_panel_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-presentation-time.cpp b/src/DSWaylandServer/dswayland-server-presentation-time.cpp index 57a016e..1f75f74 100644 --- a/src/DSWaylandServer/dswayland-server-presentation-time.cpp +++ b/src/DSWaylandServer/dswayland-server-presentation-time.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -233,6 +241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -241,6 +251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -249,6 +261,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -257,6 +271,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-presentation-time.h b/src/DSWaylandServer/dswayland-server-presentation-time.h index 7ff0917..f3d3637 100644 --- a/src/DSWaylandServer/dswayland-server-presentation-time.h +++ b/src/DSWaylandServer/dswayland-server-presentation-time.h @@ -110,6 +110,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wp_presentation *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -196,6 +197,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wp_presentation_feedback *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-scaler.cpp b/src/DSWaylandServer/dswayland-server-scaler.cpp index ddd5321..a323847 100644 --- a/src/DSWaylandServer/dswayland-server-scaler.cpp +++ b/src/DSWaylandServer/dswayland-server-scaler.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -213,6 +221,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -221,6 +231,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -229,6 +241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -237,6 +251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-scaler.h b/src/DSWaylandServer/dswayland-server-scaler.h index 50206c8..230fb71 100644 --- a/src/DSWaylandServer/dswayland-server-scaler.h +++ b/src/DSWaylandServer/dswayland-server-scaler.h @@ -106,6 +106,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_scaler *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -214,6 +215,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_viewport *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-screenshooter.cpp b/src/DSWaylandServer/dswayland-server-screenshooter.cpp index adccc4d..52c432f 100644 --- a/src/DSWaylandServer/dswayland-server-screenshooter.cpp +++ b/src/DSWaylandServer/dswayland-server-screenshooter.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-screenshooter.h b/src/DSWaylandServer/dswayland-server-screenshooter.h index 8f8f983..fc55245 100644 --- a/src/DSWaylandServer/dswayland-server-screenshooter.h +++ b/src/DSWaylandServer/dswayland-server-screenshooter.h @@ -101,6 +101,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { screenshooter *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-text-cursor-position.cpp b/src/DSWaylandServer/dswayland-server-text-cursor-position.cpp index a98c5d0..ff63823 100644 --- a/src/DSWaylandServer/dswayland-server-text-cursor-position.cpp +++ b/src/DSWaylandServer/dswayland-server-text-cursor-position.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-text-cursor-position.h b/src/DSWaylandServer/dswayland-server-text-cursor-position.h index efe52f2..736ec03 100644 --- a/src/DSWaylandServer/dswayland-server-text-cursor-position.h +++ b/src/DSWaylandServer/dswayland-server-text-cursor-position.h @@ -99,6 +99,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { text_cursor_position *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-text.cpp b/src/DSWaylandServer/dswayland-server-text.cpp index dd09ddd..a5e4d3c 100644 --- a/src/DSWaylandServer/dswayland-server-text.cpp +++ b/src/DSWaylandServer/dswayland-server-text.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1180,6 +1188,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1188,6 +1198,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1196,6 +1208,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1204,6 +1218,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-text.h b/src/DSWaylandServer/dswayland-server-text.h index 20c4721..eb437ef 100644 --- a/src/DSWaylandServer/dswayland-server-text.h +++ b/src/DSWaylandServer/dswayland-server-text.h @@ -377,6 +377,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_text_input *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -458,6 +459,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_text_input_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-dpms.cpp b/src/DSWaylandServer/dswayland-server-tizen-dpms.cpp index b4355b5..d3e7cda 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-dpms.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-dpms.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-dpms.h b/src/DSWaylandServer/dswayland-server-tizen-dpms.h index d162f6d..4d73523 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-dpms.h +++ b/src/DSWaylandServer/dswayland-server-tizen-dpms.h @@ -127,6 +127,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_dpms_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-extension.cpp b/src/DSWaylandServer/dswayland-server-tizen-extension.cpp index 5634e9e..94a0000 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-extension.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-extension.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -213,6 +221,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -221,6 +231,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -229,6 +241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -237,6 +251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -397,6 +413,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -405,6 +423,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -413,6 +433,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -421,6 +443,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1524,6 +1548,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1532,6 +1558,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1540,6 +1568,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1548,6 +1578,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1730,6 +1762,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1738,6 +1772,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1746,6 +1782,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1754,6 +1792,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1935,6 +1975,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1943,6 +1985,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1951,6 +1995,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1959,6 +2005,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2158,6 +2206,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2166,6 +2216,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2174,6 +2226,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2182,6 +2236,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2789,6 +2845,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2797,6 +2855,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2805,6 +2865,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2813,6 +2875,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3300,6 +3364,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3308,6 +3374,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3316,6 +3384,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3324,6 +3394,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3540,6 +3612,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3548,6 +3622,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3556,6 +3632,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3564,6 +3642,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3843,6 +3923,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3851,6 +3933,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3859,6 +3943,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3867,6 +3953,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4065,6 +4153,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4073,6 +4163,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4081,6 +4173,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4089,6 +4183,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4358,6 +4454,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4366,6 +4464,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4374,6 +4474,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4382,6 +4484,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4542,6 +4646,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4550,6 +4656,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4558,6 +4666,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4566,6 +4676,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4904,6 +5016,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4912,6 +5026,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4920,6 +5036,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4928,6 +5046,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -5195,6 +5315,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -5203,6 +5325,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -5211,6 +5335,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -5219,6 +5345,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -5394,6 +5522,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -5402,6 +5532,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -5410,6 +5542,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -5418,6 +5552,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -5844,6 +5980,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -5852,6 +5990,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -5860,6 +6000,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -5868,6 +6010,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -6097,6 +6241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -6105,6 +6251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -6113,6 +6261,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -6121,6 +6271,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -6278,6 +6430,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -6286,6 +6440,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -6294,6 +6450,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -6302,6 +6460,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -6516,6 +6676,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -6524,6 +6686,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -6532,6 +6696,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -6540,6 +6706,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -6724,6 +6892,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -6732,6 +6902,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -6740,6 +6912,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -6748,6 +6922,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -6931,6 +7107,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -6939,6 +7117,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -6947,6 +7127,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -6955,6 +7137,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -7174,6 +7358,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -7182,6 +7368,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -7190,6 +7378,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -7198,6 +7388,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -7429,6 +7621,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -7437,6 +7631,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -7445,6 +7641,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -7453,6 +7651,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-extension.h b/src/DSWaylandServer/dswayland-server-tizen-extension.h index a3172f4..6b092ea 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-extension.h +++ b/src/DSWaylandServer/dswayland-server-tizen-extension.h @@ -102,6 +102,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -185,6 +186,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_resource *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -554,6 +556,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_policy *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -646,6 +649,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_visibility *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -735,6 +739,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_position *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -834,6 +839,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_move_resize *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1045,6 +1051,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_gesture *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1224,6 +1231,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_keyrouter *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1320,6 +1328,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_screenshooter *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1440,6 +1449,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_screenmirror *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1541,6 +1551,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_video *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1648,6 +1659,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_video_object *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1737,6 +1749,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_subsurface_watcher *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1868,6 +1881,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_viewport *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2000,6 +2014,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_destination_mode *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2087,6 +2102,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_embedded_compositor *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2274,6 +2290,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_input_device_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2386,6 +2403,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_input_device *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2471,6 +2489,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_launchscreen *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2591,6 +2610,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_launch_image *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2683,6 +2703,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_effect *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2777,6 +2798,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_display_policy *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2897,6 +2919,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_indicator *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2997,6 +3020,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_clipboard *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -3085,6 +3109,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_screen_rotation *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-hwc.cpp b/src/DSWaylandServer/dswayland-server-tizen-hwc.cpp index a9d2ad8..c4f0df1 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-hwc.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-hwc.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -215,6 +223,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -223,6 +233,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -231,6 +243,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -239,6 +253,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-hwc.h b/src/DSWaylandServer/dswayland-server-tizen-hwc.h index c83151f..9344392 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-hwc.h +++ b/src/DSWaylandServer/dswayland-server-tizen-hwc.h @@ -103,6 +103,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_hwc *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -180,6 +181,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_hwc_commit_feedback *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-launch.cpp b/src/DSWaylandServer/dswayland-server-tizen-launch.cpp index c8af51d..f84892d 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-launch.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-launch.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -249,6 +257,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -257,6 +267,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -265,6 +277,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -273,6 +287,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -494,6 +510,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -502,6 +520,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -510,6 +530,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -518,6 +540,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-launch.h b/src/DSWaylandServer/dswayland-server-tizen-launch.h index d62a6a9..fa93b85 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-launch.h +++ b/src/DSWaylandServer/dswayland-server-tizen-launch.h @@ -113,6 +113,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_launch_effect *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -240,6 +241,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_launch_splash *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -366,6 +368,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_launch_appinfo *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp index 005d160..2f0512d 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -276,6 +284,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -284,6 +294,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -292,6 +304,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -300,6 +314,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -514,6 +530,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -522,6 +540,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -530,6 +550,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -538,6 +560,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1070,6 +1094,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1078,6 +1104,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1086,6 +1114,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1094,6 +1124,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h index 68467c2..de250ee 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h +++ b/src/DSWaylandServer/dswayland-server-tizen-remote-surface.h @@ -123,6 +123,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_remote_surface_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -223,6 +224,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_remote_surface_provider *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -477,6 +479,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_remote_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -565,6 +568,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_remote_surface_region *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen-surface.cpp b/src/DSWaylandServer/dswayland-server-tizen-surface.cpp index 4be5176..d721fba 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-surface.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen-surface.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -213,6 +221,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -221,6 +231,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -229,6 +241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -237,6 +251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen-surface.h b/src/DSWaylandServer/dswayland-server-tizen-surface.h index ed6aceb..96a5632 100644 --- a/src/DSWaylandServer/dswayland-server-tizen-surface.h +++ b/src/DSWaylandServer/dswayland-server-tizen-surface.h @@ -102,6 +102,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_surface_shm *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -187,6 +188,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_surface_shm_flusher *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tizen_policy_ext.cpp b/src/DSWaylandServer/dswayland-server-tizen_policy_ext.cpp index 9506ca8..6a035da 100644 --- a/src/DSWaylandServer/dswayland-server-tizen_policy_ext.cpp +++ b/src/DSWaylandServer/dswayland-server-tizen_policy_ext.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -235,6 +243,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -243,6 +253,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -251,6 +263,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -259,6 +273,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tizen_policy_ext.h b/src/DSWaylandServer/dswayland-server-tizen_policy_ext.h index 8ee3662..66d7b92 100644 --- a/src/DSWaylandServer/dswayland-server-tizen_policy_ext.h +++ b/src/DSWaylandServer/dswayland-server-tizen_policy_ext.h @@ -106,6 +106,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_policy_ext *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -227,6 +228,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_rotation *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-transform.cpp b/src/DSWaylandServer/dswayland-server-transform.cpp index 565b71a..3cfa511 100644 --- a/src/DSWaylandServer/dswayland-server-transform.cpp +++ b/src/DSWaylandServer/dswayland-server-transform.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -213,6 +221,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -221,6 +231,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -229,6 +241,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -237,6 +251,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-transform.h b/src/DSWaylandServer/dswayland-server-transform.h index 8b5baf9..52ce46c 100644 --- a/src/DSWaylandServer/dswayland-server-transform.h +++ b/src/DSWaylandServer/dswayland-server-transform.h @@ -102,6 +102,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_transform *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -194,6 +195,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_rotator *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-tzsh.cpp b/src/DSWaylandServer/dswayland-server-tzsh.cpp index 7d865d0..ba422df 100644 --- a/src/DSWaylandServer/dswayland-server-tzsh.cpp +++ b/src/DSWaylandServer/dswayland-server-tzsh.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -387,6 +395,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -395,6 +405,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -403,6 +415,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -411,6 +425,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -706,6 +722,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -714,6 +732,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -722,6 +742,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -730,6 +752,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -900,6 +924,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -908,6 +934,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -916,6 +944,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -924,6 +954,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1110,6 +1142,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1118,6 +1152,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1126,6 +1162,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1134,6 +1172,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1431,6 +1471,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1439,6 +1481,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1447,6 +1491,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1455,6 +1501,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1617,6 +1665,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1625,6 +1675,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1633,6 +1685,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1641,6 +1695,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1832,6 +1888,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1840,6 +1898,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1848,6 +1908,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1856,6 +1918,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2118,6 +2182,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2126,6 +2192,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2134,6 +2202,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2142,6 +2212,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2282,6 +2354,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2290,6 +2364,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2298,6 +2374,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2306,6 +2384,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2463,6 +2543,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2471,6 +2553,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2479,6 +2563,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2487,6 +2573,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2627,6 +2715,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2635,6 +2725,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2643,6 +2735,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2651,6 +2745,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2868,6 +2964,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2876,6 +2974,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2884,6 +2984,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2892,6 +2994,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3151,6 +3255,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3159,6 +3265,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3167,6 +3275,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3175,6 +3285,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3374,6 +3486,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3382,6 +3496,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3390,6 +3506,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3398,6 +3516,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3729,6 +3849,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3737,6 +3859,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3745,6 +3869,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3753,6 +3879,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-tzsh.h b/src/DSWaylandServer/dswayland-server-tzsh.h index a573556..4e58000 100644 --- a/src/DSWaylandServer/dswayland-server-tzsh.h +++ b/src/DSWaylandServer/dswayland-server-tzsh.h @@ -154,6 +154,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tizen_ws_shell *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -300,6 +301,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_quickpanel *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -392,6 +394,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_tvsrv *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -488,6 +491,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_region *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -620,6 +624,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -703,6 +708,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_indicator *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -809,6 +815,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_quickpanel *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -920,6 +927,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_screensaver_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1004,6 +1012,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_screensaver *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1095,6 +1104,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_cbhm *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1175,6 +1185,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_dummy_extension *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1272,6 +1283,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_softkey *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1407,6 +1419,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_softkey *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1520,6 +1533,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_magnifier *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1657,6 +1671,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_service_launcher *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1752,6 +1767,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { tws_shared_widget_launch *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-wayland.cpp b/src/DSWaylandServer/dswayland-server-wayland.cpp index d9d66ac..d9a1fe8 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.cpp +++ b/src/DSWaylandServer/dswayland-server-wayland.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -195,6 +203,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -203,6 +213,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -211,6 +223,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -219,6 +233,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -378,6 +394,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -386,6 +404,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -394,6 +414,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -402,6 +424,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -586,6 +610,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -594,6 +620,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -602,6 +630,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -610,6 +640,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -776,6 +808,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -784,6 +818,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -792,6 +828,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -800,6 +838,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -958,6 +998,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -966,6 +1008,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -974,6 +1018,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -982,6 +1028,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1254,6 +1302,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1262,6 +1312,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1270,6 +1322,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1278,6 +1332,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1568,6 +1624,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1576,6 +1634,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1584,6 +1644,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1592,6 +1654,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1902,6 +1966,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1910,6 +1976,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1918,6 +1986,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1926,6 +1996,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2087,6 +2159,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2095,6 +2169,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2103,6 +2179,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2111,6 +2189,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2255,6 +2335,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2263,6 +2345,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2271,6 +2355,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2279,6 +2365,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -2660,6 +2748,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -2668,6 +2758,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -2676,6 +2768,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -2684,6 +2778,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3031,6 +3127,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3039,6 +3137,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3047,6 +3147,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3055,6 +3157,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3286,6 +3390,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3294,6 +3400,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3302,6 +3410,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3310,6 +3420,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3677,6 +3789,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3685,6 +3799,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -3693,6 +3809,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -3701,6 +3819,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -3987,6 +4107,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -3995,6 +4117,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4003,6 +4127,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4011,6 +4137,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4313,6 +4441,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4321,6 +4451,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4329,6 +4461,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4337,6 +4471,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4575,6 +4711,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4583,6 +4721,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4591,6 +4731,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4599,6 +4741,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4785,6 +4929,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4793,6 +4939,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4801,6 +4949,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4809,6 +4959,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -4970,6 +5122,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -4978,6 +5132,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -4986,6 +5142,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -4994,6 +5152,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-wayland.h b/src/DSWaylandServer/dswayland-server-wayland.h index 2a1bc52..85dcffb 100644 --- a/src/DSWaylandServer/dswayland-server-wayland.h +++ b/src/DSWaylandServer/dswayland-server-wayland.h @@ -91,6 +91,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_callback *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -177,6 +178,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_compositor *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -272,6 +274,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_shm_pool *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -467,6 +470,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_shm *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -550,6 +554,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_buffer *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -666,6 +671,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_data_offer *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -774,6 +780,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_data_source *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -885,6 +892,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_data_device *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -979,6 +987,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_data_device_manager *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1065,6 +1074,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_shell *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1233,6 +1243,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_shell_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1375,6 +1386,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1481,6 +1493,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_seat *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1609,6 +1622,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_pointer *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1712,6 +1726,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_keyboard *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1807,6 +1822,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_touch *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -1921,6 +1937,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_output *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2017,6 +2034,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_region *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2108,6 +2126,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_subcompositor *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -2216,6 +2235,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { wl_subsurface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp index 5758fc4..63d8e1e 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp +++ b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -267,6 +275,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -275,6 +285,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -283,6 +295,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -291,6 +305,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -543,6 +559,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -551,6 +569,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -559,6 +579,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -567,6 +589,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -805,6 +829,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -813,6 +839,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -821,6 +849,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -829,6 +859,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1240,6 +1272,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1248,6 +1282,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1256,6 +1292,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1264,6 +1302,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h index 26363d1..e6784a6 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h +++ b/src/DSWaylandServer/dswayland-server-xdg-shell-unstable-v6.h @@ -124,6 +124,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { zxdg_shell_v6 *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -269,6 +270,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { zxdg_positioner_v6 *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -383,6 +385,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { zxdg_surface_v6 *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -556,6 +559,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { zxdg_toplevel_v6 *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -651,6 +655,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { zxdg_popup_v6 *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell.cpp b/src/DSWaylandServer/dswayland-server-xdg-shell.cpp index 8440d58..0cb664b 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell.cpp +++ b/src/DSWaylandServer/dswayland-server-xdg-shell.cpp @@ -30,6 +30,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -38,6 +40,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -46,6 +50,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -54,6 +60,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -267,6 +275,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -275,6 +285,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -283,6 +295,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -291,6 +305,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -543,6 +559,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -551,6 +569,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -559,6 +579,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -567,6 +589,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -805,6 +829,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -813,6 +839,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -821,6 +849,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -829,6 +859,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } @@ -1240,6 +1272,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(client, id, version); } @@ -1248,6 +1282,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(display, version); } @@ -1256,6 +1292,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { init(resource); } @@ -1264,6 +1302,8 @@ namespace DSWaylandServer { : m_resource_map() , m_resource(NULL) , m_global(NULL) + , m_globalVersion(0) + , m_displayDestroyedListener() { } diff --git a/src/DSWaylandServer/dswayland-server-xdg-shell.h b/src/DSWaylandServer/dswayland-server-xdg-shell.h index ec0494a..4a90969 100644 --- a/src/DSWaylandServer/dswayland-server-xdg-shell.h +++ b/src/DSWaylandServer/dswayland-server-xdg-shell.h @@ -124,6 +124,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { xdg_wm_base *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -277,6 +278,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { xdg_positioner *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -391,6 +393,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { xdg_surface *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -568,6 +571,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { xdg_toplevel *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; @@ -663,6 +667,7 @@ namespace DSWaylandServer { uint32_t m_globalVersion; struct DisplayDestroyedListener : ::wl_listener { xdg_popup *parent; + DisplayDestroyedListener(): parent(NULL) {} }; DisplayDestroyedListener m_displayDestroyedListener; }; -- 2.7.4 From fa5debf07245797f9c7807ee8bede5f201128ad8 Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Thu, 13 Aug 2020 13:51:40 +0900 Subject: [PATCH 15/16] DSTizenAppinfoMgr: change into singleton and add getInstance(),releaseInstance() Change-Id: Ie7b93ea027785c79d932671d5e4b116361889c71 --- src/DSCompositor/DSCompositor.cpp | 10 +- src/DSCompositor/DSCompositorPrivate.h | 4 + .../DSTizenAppinfo.cpp | 8 - .../DSTizenAppinfo.h | 2 +- src/DSTizenAppinfo/DSTizenAppinfoMgr.cpp | 214 +++++++++++++++++++++ .../DSTizenAppinfoMgr.h | 25 +-- src/DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h | 53 +++++ src/DSWaylandExtension/DSTizenAppinfoMgr.cpp | 107 ----------- src/DSWaylandExtension/DSWaylandExtension.cpp | 10 +- src/DSWaylandExtension/DSWaylandExtensionPrivate.h | 6 +- src/DSWaylandServer/DSWaylandTizenAppinfo.cpp | 16 +- src/meson.build | 10 +- tests/DSTizenAppinfo-test.cpp | 12 +- 13 files changed, 324 insertions(+), 153 deletions(-) rename src/{DSWaylandExtension => DSTizenAppinfo}/DSTizenAppinfo.cpp (92%) rename src/{DSWaylandExtension => DSTizenAppinfo}/DSTizenAppinfo.h (98%) create mode 100644 src/DSTizenAppinfo/DSTizenAppinfoMgr.cpp rename src/{DSWaylandExtension => DSTizenAppinfo}/DSTizenAppinfoMgr.h (77%) create mode 100644 src/DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h delete mode 100644 src/DSWaylandExtension/DSTizenAppinfoMgr.cpp diff --git a/src/DSCompositor/DSCompositor.cpp b/src/DSCompositor/DSCompositor.cpp index 1c46a96..5e70a1b 100644 --- a/src/DSCompositor/DSCompositor.cpp +++ b/src/DSCompositor/DSCompositor.cpp @@ -70,7 +70,8 @@ DSCompositorPrivate::DSCompositorPrivate(DSCompositor *p_ptr) : DSObjectPrivate(p_ptr), __p_ptr(p_ptr), __displayDevice(nullptr), - __canvas(nullptr) + __canvas(nullptr), + __dsAppinfoMgr(nullptr) { __eventLoop = DSEventLoop::getInstance(); @@ -83,6 +84,7 @@ DSCompositorPrivate::~DSCompositorPrivate() DSWaylandCompositor::releaseInstance(); DSBufferManager::releaseInstance(); DSEventLoop::releaseInstance(); + DSTizenAppinfoMgr::releaseInstance(); } bool DSCompositorPrivate::run() @@ -92,6 +94,7 @@ bool DSCompositorPrivate::run() __initializeWlDisplay(); __initializeOutputs(); __initializeBufferManager(); + __initializeTizenAppinfoMgr(); __canvas = pub->_onInitialized(); if (!__canvas) { DSLOG_ERR("Compositor", "_onInitialized() fails."); @@ -147,4 +150,9 @@ void DSCompositorPrivate::__initializeBufferManager() __dsBufferManager = DSBufferManager::getInstance(); } +void DSCompositorPrivate::__initializeTizenAppinfoMgr() +{ + __dsAppinfoMgr = DSTizenAppinfoMgr::getInstance(); +} + } // namespace display_server diff --git a/src/DSCompositor/DSCompositorPrivate.h b/src/DSCompositor/DSCompositorPrivate.h index 6e21ed8..3f5dc81 100644 --- a/src/DSCompositor/DSCompositorPrivate.h +++ b/src/DSCompositor/DSCompositorPrivate.h @@ -28,6 +28,7 @@ #include "DSEventLoop.h" #include "IDSDisplayDevice.h" #include "DSBufferManager.h" +#include "DSTizenAppinfoMgr.h" namespace display_server { @@ -35,6 +36,7 @@ namespace display_server class DSSeat; class DSInput; class DSWaylandCompositor; +class DSTizenAppinfoMgr; class DSCompositorPrivate : public DSObjectPrivate { @@ -59,10 +61,12 @@ private: std::list> __outputList; std::shared_ptr __canvas; DSBufferManager *__dsBufferManager; + DSTizenAppinfoMgr * __dsAppinfoMgr; void __initializeWlDisplay(); void __initializeOutputs(); void __initializeBufferManager(); + void __initializeTizenAppinfoMgr(); }; } diff --git a/src/DSWaylandExtension/DSTizenAppinfo.cpp b/src/DSTizenAppinfo/DSTizenAppinfo.cpp similarity index 92% rename from src/DSWaylandExtension/DSTizenAppinfo.cpp rename to src/DSTizenAppinfo/DSTizenAppinfo.cpp index f1b2220..905ea02 100644 --- a/src/DSWaylandExtension/DSTizenAppinfo.cpp +++ b/src/DSTizenAppinfo/DSTizenAppinfo.cpp @@ -25,14 +25,6 @@ namespace display_server { -DSTizenAppinfo::DSTizenAppinfo() - : __pid(-1), - __base_output_available(false), - __base_output_width(0), - __base_output_height(0) -{ -} - DSTizenAppinfo::DSTizenAppinfo(std::string appid) : __pid(-1), __base_output_available(false), diff --git a/src/DSWaylandExtension/DSTizenAppinfo.h b/src/DSTizenAppinfo/DSTizenAppinfo.h similarity index 98% rename from src/DSWaylandExtension/DSTizenAppinfo.h rename to src/DSTizenAppinfo/DSTizenAppinfo.h index 76bae93..5eecb93 100644 --- a/src/DSWaylandExtension/DSTizenAppinfo.h +++ b/src/DSTizenAppinfo/DSTizenAppinfo.h @@ -32,7 +32,7 @@ namespace display_server class DSTizenAppinfo : public DSObject { public: - DSTizenAppinfo(); + DSTizenAppinfo() = delete; DSTizenAppinfo(std::string appid); virtual ~DSTizenAppinfo(); diff --git a/src/DSTizenAppinfo/DSTizenAppinfoMgr.cpp b/src/DSTizenAppinfo/DSTizenAppinfoMgr.cpp new file mode 100644 index 0000000..356e865 --- /dev/null +++ b/src/DSTizenAppinfo/DSTizenAppinfoMgr.cpp @@ -0,0 +1,214 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#include "DSTizenAppinfoMgr.h" +#include "DSTizenAppinfoMgrPrivate.h" +#include "DSWaylandTizenAppinfo.h" +#include "DSDebugLog.h" + +namespace display_server +{ + +int DSTizenAppinfoMgr::__refCount { 0 }; +std::mutex DSTizenAppinfoMgr::__mutex; +DSTizenAppinfoMgr* DSTizenAppinfoMgr::__appinfoMgr { nullptr }; + +DSTizenAppinfoMgrPrivate::DSTizenAppinfoMgrPrivate(DSTizenAppinfoMgr *p_ptr) + : DSObjectPrivate(p_ptr), + __p_ptr(p_ptr) +{ +} + +DSTizenAppinfoMgrPrivate::~DSTizenAppinfoMgrPrivate() +{ +} + +std::shared_ptr DSTizenAppinfoMgrPrivate::getTizenAppinfo(std::string appId) +{ + auto it = __appIdMap.find(appId); + if (it != __appIdMap.end()) { + return it->second; + } + return nullptr; +} + +std::shared_ptr DSTizenAppinfoMgrPrivate::getTizenAppinfo(pid_t pid) +{ + std::shared_ptr ptr_appinfo; + DSTizenAppinfo * appinfo; + + for (auto it = __appIdMap.begin(); it != __appIdMap.end(); it++) { + ptr_appinfo = it->second; + if (ptr_appinfo == nullptr) + continue; + + appinfo = ptr_appinfo.get() ; + if ((appinfo) && (appinfo->pid() == pid)) { + return ptr_appinfo; + } + } + return nullptr; +} + +std::shared_ptr DSTizenAppinfoMgrPrivate::addTizenAppinfo(std::string appId) +{ + std::shared_ptr appinfo = nullptr; + + appinfo = std::make_shared(appId); + if (appinfo != nullptr) { + __appIdMap.emplace(appId, appinfo); + } + return appinfo; +} + +bool DSTizenAppinfoMgrPrivate::removeTizenAppinfo(std::string appId) +{ + auto it = __appIdMap.find(appId); + if (it != __appIdMap.end()) { + __appIdMap.erase(it); + return true; + } + return false; +} + +DSTizenAppinfoMgr::DSTizenAppinfoMgr(DSObject *parent) + : DS_INIT_PRIVATE_PTR(DSTizenAppinfoMgr) +{ +} + +DSTizenAppinfoMgr::~DSTizenAppinfoMgr() +{ +} + +DSTizenAppinfoMgr *DSTizenAppinfoMgr::getInstance() +{ + std::lock_guard tLock(__mutex); + + if (!__appinfoMgr && (__refCount == 0)) + { + __appinfoMgr = new DSTizenAppinfoMgr(new DSObject); + DSLOG_INF("DSTizenAppinfoMgr", + "DSTizenAppinfoMgr instance has been created !"); + } + + ++__refCount; + return __appinfoMgr; +} + +void DSTizenAppinfoMgr::releaseInstance() +{ + std::lock_guard tLock(__mutex); + + --__refCount; + if (__refCount < 0) + __refCount = 0; + + if ((0 == __refCount) && __appinfoMgr) + { + delete __appinfoMgr; + __appinfoMgr = nullptr; + DSLOG_INF("DSTizenAppinfoMgr", + "DSTizenAppinfoMgr instance has been removed !"); + } +} + +std::shared_ptr DSTizenAppinfoMgr::getTizenAppinfo(std::string appId) +{ + DS_GET_PRIV(DSTizenAppinfoMgr); + + return priv->getTizenAppinfo(appId); +} + +std::shared_ptr DSTizenAppinfoMgr::getTizenAppinfo(pid_t pid) +{ + DS_GET_PRIV(DSTizenAppinfoMgr); + + return priv->getTizenAppinfo(pid); +} + +std::shared_ptr DSTizenAppinfoMgr::addTizenAppinfo(std::string appId) +{ + DS_GET_PRIV(DSTizenAppinfoMgr); + + std::shared_ptr appinfo = getTizenAppinfo(appId); + if (appinfo == nullptr) { + appinfo = priv->addTizenAppinfo(appId); + DSLOG_INF("DSTizenAppinfoMgr", "New TizenAppinfo(apppId:%s) added", appId.c_str()); + } + else + DSLOG_INF("DSTizenAppinfoMgr", "Adding TizenAppinfo(apppId:%s) failed..", appId.c_str()); + return appinfo; +} + +bool DSTizenAppinfoMgr::removeTizenAppinfo(std::string appId) +{ + DS_GET_PRIV(DSTizenAppinfoMgr); + bool ret = false; + + ret = priv->removeTizenAppinfo(appId); + if (ret) + DSLOG_INF("DSTizenAppinfoMgr", "Removing TizenAppinfo(appId:%s) failedd..", appId.c_str()); + else + DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) removed", appId.c_str()); + return ret; +} + +void DSTizenAppinfoMgr::updateTizenAppinfo(std::string appId, pid_t pid) +{ + std::shared_ptr ptr_appinfo; + DSTizenAppinfo * appinfo; + + ptr_appinfo = getTizenAppinfo(appId); + if (ptr_appinfo == nullptr) + return; + + appinfo = ptr_appinfo.get(); + if (appinfo != nullptr) + { + appinfo->setPid(pid); + DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) set to pid:%d", appId.c_str(), pid); + } +} + +bool DSTizenAppinfoMgr::getBaseOutputResolution(pid_t pid, int *res_w, int *res_h) +{ + std::shared_ptr ptr_appinfo; + DSTizenAppinfo * appinfo; + + ptr_appinfo = getTizenAppinfo(pid); + if (ptr_appinfo = nullptr) + return false; + + appinfo = ptr_appinfo.get(); + if (appinfo == nullptr) + return false; + + if (!appinfo->base_output_available()) + return false; + + if (res_w) *res_w = appinfo->base_output_width(); + if (res_h) *res_h = appinfo->base_output_height(); + return true; +} + +} diff --git a/src/DSWaylandExtension/DSTizenAppinfoMgr.h b/src/DSTizenAppinfo/DSTizenAppinfoMgr.h similarity index 77% rename from src/DSWaylandExtension/DSTizenAppinfoMgr.h rename to src/DSTizenAppinfo/DSTizenAppinfoMgr.h index fec3ece..b553a66 100644 --- a/src/DSWaylandExtension/DSTizenAppinfoMgr.h +++ b/src/DSTizenAppinfo/DSTizenAppinfoMgr.h @@ -30,31 +30,34 @@ namespace display_server { +class DSTizenAppinfoMgrPrivate; + class DSTizenAppinfoMgr : public DSObject { +DS_PIMPL_USE_PRIVATE(DSTizenAppinfoMgr); public: - DSTizenAppinfoMgr(); - virtual ~DSTizenAppinfoMgr(); + static DSTizenAppinfoMgr *getInstance(); + static void releaseInstance(); std::shared_ptr getTizenAppinfo(std::string appId); std::shared_ptr getTizenAppinfo(pid_t pid); std::shared_ptr addTizenAppinfo(std::string appId); - void removeTizenAppinfo(std::string appId); + bool removeTizenAppinfo(std::string appId); void updateTizenAppinfo(std::string appId, pid_t pid); - int numAppinfo() - { - return __numAppinfo; - }; + bool getBaseOutputResolution(pid_t pid, int *res_w, int *res_h); private: - DSWaylandCompositor *__wlCompositor; - DSWaylandTizenAppinfo *__wlAppinfo; - std::unordered_map > __appIdMap; - int __numAppinfo; + static std::mutex __mutex; + static DSTizenAppinfoMgr *__appinfoMgr; + static int __refCount; + + DSTizenAppinfoMgr() = delete; + ~DSTizenAppinfoMgr(); + DSTizenAppinfoMgr(DSObject *parent); }; } diff --git a/src/DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h b/src/DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h new file mode 100644 index 0000000..0ac3795 --- /dev/null +++ b/src/DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h @@ -0,0 +1,53 @@ +/* +* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice (including the next +* paragraph) shall be included in all copies or substantial portions of the +* Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. +*/ + +#ifndef _DS_TIZENAPPINFO_MGR_PRIVATE_H_ +#define _DS_TIZENAPPINFO_MGR_PRIVATE_H_ + +#include "DSTizenAppinfoMgr.h" + +namespace display_server +{ + +class DSTizenAppinfoMgrPrivate : public DSObjectPrivate +{ + DS_PIMPL_USE_PUBLIC(DSTizenAppinfoMgr); +public: + DSTizenAppinfoMgrPrivate() = delete; + DSTizenAppinfoMgrPrivate(DSTizenAppinfoMgr *p_ptr); + ~DSTizenAppinfoMgrPrivate(); + + std::shared_ptr getTizenAppinfo(std::string appId); + std::shared_ptr getTizenAppinfo(pid_t pid); + + std::shared_ptr addTizenAppinfo(std::string appId); + bool removeTizenAppinfo(std::string appId); + +private: + std::unordered_map > __appIdMap; + +}; + +} + +#endif \ No newline at end of file diff --git a/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp b/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp deleted file mode 100644 index c1eed07..0000000 --- a/src/DSWaylandExtension/DSTizenAppinfoMgr.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* -* Copyright © 2020 Samsung Electronics co., Ltd. All Rights Reserved. -* -* Permission is hereby granted, free of charge, to any person obtaining a -* copy of this software and associated documentation files (the "Software"), -* to deal in the Software without restriction, including without limitation -* the rights to use, copy, modify, merge, publish, distribute, sublicense, -* and/or sell copies of the Software, and to permit persons to whom the -* Software is furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice (including the next -* paragraph) shall be included in all copies or substantial portions of the -* Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER -* DEALINGS IN THE SOFTWARE. -*/ - -#include "DSTizenAppinfoMgr.h" -#include "DSWaylandTizenAppinfo.h" -#include "DSDebugLog.h" - -namespace display_server -{ - -DSTizenAppinfoMgr::DSTizenAppinfoMgr() - :__numAppinfo(0) -{ - __wlCompositor = DSWaylandCompositor::getInstance(); - __wlAppinfo = new DSWaylandTizenAppinfo(__wlCompositor, this); -} - -DSTizenAppinfoMgr::~DSTizenAppinfoMgr() -{ -} - -std::shared_ptr DSTizenAppinfoMgr::getTizenAppinfo(std::string appId) -{ - auto it = __appIdMap.find(appId); - if (it != __appIdMap.end()) - { - DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo returned by appId:%s", appId.c_str()); - return it->second; - } - return nullptr; -} - -std::shared_ptr DSTizenAppinfoMgr::getTizenAppinfo(pid_t pid) -{ - std::unordered_map >::iterator it; - for (it = __appIdMap.begin(); it != __appIdMap.end(); it++) { - std::shared_ptr ptr_appinfo = it->second; - DSTizenAppinfo * appinfo; - appinfo = ptr_appinfo.get() ; - if (appinfo->pid() == pid) { - DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo returned by pid:%d", pid); - return ptr_appinfo; - } - } - return nullptr; -} - -std::shared_ptr DSTizenAppinfoMgr::addTizenAppinfo(std::string appId) -{ - std::shared_ptr appinfo = getTizenAppinfo(appId); - if (appinfo == nullptr) { - appinfo = std::make_shared(appId); - if (appinfo != nullptr) - { - __appIdMap.emplace(appId, appinfo); - __numAppinfo++; - DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) added", appId.c_str()); - return appinfo; - } - } - DSLOG_INF("DSTizenAppinfoMgr", "No TizenAppinfo added by apppId:%s", appId.c_str()); - return appinfo; -} - -void DSTizenAppinfoMgr::removeTizenAppinfo(std::string appId) -{ - auto it = __appIdMap.find(appId); - if (it != __appIdMap.end()) { - DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) removed", appId.c_str()); - __appIdMap.erase(it); - --__numAppinfo; - } - return; -} - -void DSTizenAppinfoMgr::updateTizenAppinfo(std::string appId, pid_t pid) -{ - std::shared_ptr ptr_appinfo = getTizenAppinfo(appId); - DSTizenAppinfo * appinfo; - appinfo = ptr_appinfo.get(); - if (appinfo != nullptr) - { - appinfo->setPid(pid); - DSLOG_INF("DSTizenAppinfoMgr", "TizenAppinfo(appId:%s) set to pid:%d", appId.c_str(), pid); - } -} -} diff --git a/src/DSWaylandExtension/DSWaylandExtension.cpp b/src/DSWaylandExtension/DSWaylandExtension.cpp index 8a103af..0c27e6c 100644 --- a/src/DSWaylandExtension/DSWaylandExtension.cpp +++ b/src/DSWaylandExtension/DSWaylandExtension.cpp @@ -26,7 +26,7 @@ #include "DSWaylandCompositor.h" #include "DSWaylandZxdgShellV6.h" #include "DSWaylandTizenPolicy.h" -#include "DSTizenAppinfoMgr.h" +#include "DSWaylandTizenAppinfo.h" namespace display_server @@ -56,7 +56,7 @@ bool DSWaylandExtensionPrivate::init(DSWaylandCompositor *compositor) { __initShell(); __initTizenPolicy(); - __initTizenAppinfoMgr(); + __initTizenAppinfo(); } catch(const std::runtime_error& e) { @@ -97,10 +97,10 @@ bool DSWaylandExtensionPrivate::__initTizenPolicy(void) return true; } -bool DSWaylandExtensionPrivate::__initTizenAppinfoMgr(void) +bool DSWaylandExtensionPrivate::__initTizenAppinfo(void) { - __tzAppinfoMgr = std::make_shared(); - if (__tzAppinfoMgr == nullptr) + __tzAppinfo = std::make_shared(__compositor); + if (__tzAppinfo == nullptr) { throw std::runtime_error(__func__); return false; diff --git a/src/DSWaylandExtension/DSWaylandExtensionPrivate.h b/src/DSWaylandExtension/DSWaylandExtensionPrivate.h index 50abefd..361082b 100644 --- a/src/DSWaylandExtension/DSWaylandExtensionPrivate.h +++ b/src/DSWaylandExtension/DSWaylandExtensionPrivate.h @@ -29,7 +29,7 @@ namespace display_server class DSWaylandZxdgShellV6; class DSWaylandTizenPolicy; -class DSTizenAppinfoMgr; +class DSWaylandTizenAppinfo; class DSWaylandExtensionPrivate : public DSObjectPrivate { @@ -45,13 +45,13 @@ public: private: bool __initShell(void); bool __initTizenPolicy(void); - bool __initTizenAppinfoMgr(void); + bool __initTizenAppinfo(void); private: DSWaylandCompositor *__compositor; std::shared_ptr __zxdgShell; std::shared_ptr __tzPolicy; - std::shared_ptr __tzAppinfoMgr; + std::shared_ptr __tzAppinfo; }; diff --git a/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp b/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp index 805d92e..9bbd803 100644 --- a/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp +++ b/src/DSWaylandServer/DSWaylandTizenAppinfo.cpp @@ -79,13 +79,17 @@ void DSWaylandTizenAppinfoPrivate::tizen_launch_appinfo_get_base_output_resoluti { DSLOG_DBG("TizenAppinfoPriv", ""); DS_GET_PUB(DSWaylandTizenAppinfo); + bool result; + int res_w, res_h; if (pub->__dsAppinfoMgr == nullptr) return; - std::shared_ptr ptr_appinfo = pub->__dsAppinfoMgr->getTizenAppinfo(pid); - DSTizenAppinfo *appinfo = ptr_appinfo.get(); - send_base_output_resolution_done(pid, appinfo->base_output_width(), appinfo->base_output_height()); - DSLOG_DBG("TizenAppinfoPriv", "SEND base_output_resolution_done event with width(%d), height(%d)", appinfo->base_output_width(), appinfo->base_output_height()); + result = pub->__dsAppinfoMgr->getBaseOutputResolution(pid, &res_w, &res_h); + if (!result) { + /* TODO: Read configured resolution values */ + } + send_base_output_resolution_done(pid, res_w, res_h); + DSLOG_DBG("TizenAppinfoPriv", "SEND base_output_resolution_done event with width(%d), height(%d)", res_w, res_h); } void DSWaylandTizenAppinfoPrivate::tizen_launch_appinfo_register_appid(Resource *resource, const std::string &appid) { @@ -116,10 +120,10 @@ void DSWaylandTizenAppinfoPrivate::tizen_launch_appinfo_ready_metadata(Resource DSWaylandTizenAppinfo::DSWaylandTizenAppinfo(DSWaylandCompositor *wlCompositor) : DS_INIT_PRIVATE_PTR(DSWaylandTizenAppinfo), __wlCompositor(wlCompositor), - __isCreated(false), - __dsAppinfoMgr(nullptr) + __isCreated(false) { this->initialize(__wlCompositor); + __dsAppinfoMgr = DSTizenAppinfoMgr::getInstance(); } DSWaylandTizenAppinfo::DSWaylandTizenAppinfo(DSWaylandCompositor *wlCompositor, DSTizenAppinfoMgr *dsAppinfoMgr) diff --git a/src/meson.build b/src/meson.build index 0766802..c58f4d5 100644 --- a/src/meson.build +++ b/src/meson.build @@ -55,10 +55,11 @@ libds_srcs = [ 'DSCore/DSStruct.h', 'DSCore/DSCore.h', 'DSWaylandExtension/DSWaylandExtension.cpp', - 'DSWaylandExtension/DSTizenAppinfo.h', - 'DSWaylandExtension/DSTizenAppinfo.cpp', - 'DSWaylandExtension/DSTizenAppinfoMgr.h', - 'DSWaylandExtension/DSTizenAppinfoMgr.cpp', + 'DSTizenAppinfo/DSTizenAppinfo.h', + 'DSTizenAppinfo/DSTizenAppinfo.cpp', + 'DSTizenAppinfo/DSTizenAppinfoMgr.h', + 'DSTizenAppinfo/DSTizenAppinfoMgrPrivate.h', + 'DSTizenAppinfo/DSTizenAppinfoMgr.cpp', 'DSWindow/DSWindow.h', 'DSWindow/DSWindowPrivate.h', 'DSWindow/DSWindow.cpp', @@ -227,6 +228,7 @@ libds_include_dirs = include_directories( './DSClient', './DSXkb', './DSTextInput', + './DSTizenAppinfo', ) libds_lib = shared_library( diff --git a/tests/DSTizenAppinfo-test.cpp b/tests/DSTizenAppinfo-test.cpp index c9bdcb1..b893611 100644 --- a/tests/DSTizenAppinfo-test.cpp +++ b/tests/DSTizenAppinfo-test.cpp @@ -42,7 +42,8 @@ public: TEST_F(DSTizenAppinfoTest, NewTizenAppinfo) { - DSTizenAppinfo *appinfo = new DSTizenAppinfo(); + std::string appId1{"com.appinfo.first"}; + DSTizenAppinfo *appinfo = new DSTizenAppinfo(appId1); EXPECT_TRUE(appinfo != nullptr); if (appinfo) @@ -51,19 +52,18 @@ TEST_F(DSTizenAppinfoTest, NewTizenAppinfo) TEST_F(DSTizenAppinfoTest, NewTizenAppinfoMgr) { - DSTizenAppinfoMgr *appinfoMgr = new DSTizenAppinfoMgr(); + DSTizenAppinfoMgr *appinfoMgr = DSTizenAppinfoMgr::getInstance(); EXPECT_TRUE(appinfoMgr != nullptr); if (appinfoMgr) { std::string appId1{"com.appinfo.first"}; - std::string appId2{"com.appinfo.econd"}; + std::string appId2{"com.appinfo.second"}; std::shared_ptr app1 = appinfoMgr->addTizenAppinfo(appId1); EXPECT_TRUE(app1 != nullptr); std::shared_ptr app2 = appinfoMgr->addTizenAppinfo(appId2); EXPECT_TRUE(app2 != nullptr); - EXPECT_TRUE(appinfoMgr->numAppinfo() == 2); std::shared_ptr temp = appinfoMgr->getTizenAppinfo(appId2); EXPECT_TRUE(temp != nullptr); @@ -74,8 +74,6 @@ TEST_F(DSTizenAppinfoTest, NewTizenAppinfoMgr) temp = appinfoMgr->getTizenAppinfo(pid); appinfoMgr->removeTizenAppinfo(temp->appId()); - EXPECT_TRUE(appinfoMgr->numAppinfo() == 0); - - delete appinfoMgr; + DSTizenAppinfoMgr::releaseInstance(); } } -- 2.7.4 From d1ac4461961a5ab3959aa266c122468c6623763a Mon Sep 17 00:00:00 2001 From: Duna Oh Date: Thu, 13 Aug 2020 13:56:06 +0900 Subject: [PATCH 16/16] DSWaylandOutput: add getBaseResolutionFromAppinfo() func to get resolution information from DSTizenAppinfo Change-Id: Ibc07c1a65af07c8bc4c528cf1d3b65412245ecb6 --- samples/exampleClient.c | 5 +++ src/DSWaylandServer/DSWaylandOutput.cpp | 60 +++++++++++++++++++++++++++- src/DSWaylandServer/DSWaylandOutputPrivate.h | 3 ++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/samples/exampleClient.c b/samples/exampleClient.c index a8c262d..929f72b 100644 --- a/samples/exampleClient.c +++ b/samples/exampleClient.c @@ -45,6 +45,7 @@ struct wl_surface *surface = NULL; struct wl_pointer *pointer = NULL; struct wl_keyboard *keyboard = NULL; struct wl_touch *touch = NULL; +struct wl_output *output = NULL; struct xkb_context *xkb_context = NULL; struct xkb_keymap *keymap = NULL; struct tizen_policy *tz_policy = NULL; @@ -478,6 +479,10 @@ global_registry_handler(void *data, struct wl_registry *registry, uint32_t id, tizen_launch_appinfo_register_appid(tz_appinfo, "com.samsung.clocksetting"); tizen_launch_appinfo_set_pid(tz_appinfo, "com.samsung.clocksetting", 4077); } + else if(strcmp(interface, "wl_output") == 0) + { + output = wl_registry_bind(registry, id, &wl_output_interface, 2); + } } static void diff --git a/src/DSWaylandServer/DSWaylandOutput.cpp b/src/DSWaylandServer/DSWaylandOutput.cpp index a3b1ae7..067f353 100644 --- a/src/DSWaylandServer/DSWaylandOutput.cpp +++ b/src/DSWaylandServer/DSWaylandOutput.cpp @@ -23,6 +23,8 @@ #include "DSWaylandOutput.h" #include "DSWaylandOutputPrivate.h" +#include "DSWaylandClient.h" +#include "DSTizenAppinfoMgr.h" namespace display_server { @@ -42,7 +44,22 @@ DSWaylandOutputPrivate::~DSWaylandOutputPrivate() void DSWaylandOutputPrivate::output_bind_resource(wl_output::Resource *resource) { - sendWaylandOutputInfo(resource); + DSLOG_DBG("DSWaylandOutputPriv", ""); + int res_w, res_h; + + /* TODO: if the config of configured_output_resolution.use is set, use the congigured resolution values */ + //if (e_config->configured_output_resolution.use) + //{ + if (!getBaseResolutionFromAppinfo(resource, &res_w, &res_h)) { + /* TODO: Read configured resolution values */ + } + //} + //else + //{ + res_w = __outputRect.w; + res_h = __outputRect.h; + //} + sendWaylandOutputInfo(resource, res_w, res_h); } void DSWaylandOutputPrivate::output_destroy_resource(Resource *resource) @@ -55,12 +72,53 @@ void DSWaylandOutputPrivate::output_release(wl_output::Resource *resource) void DSWaylandOutputPrivate::sendWaylandOutputInfo(Resource *resource) { + DSLOG_DBG("DSWaylandOutputPriv", "outputRect.x,y,w,h: (%d,%d,%d,%d), phyWidth,Height: (%d,%d)", __outputRect.x, __outputRect.y, __outputRect.w, __outputRect.h, __phyWidth, __phyHeight); wl_output::send_scale(resource->handle, __scale); wl_output::send_geometry(resource->handle, __outputRect.x, __outputRect.y, __phyWidth, __phyHeight, __subpixel, __make, __model, __transform); wl_output::send_mode(resource->handle, mode_current | mode_preferred, __outputRect.w, __outputRect.h, __refresh); wl_output::send_done(resource->handle); } +void DSWaylandOutputPrivate::sendWaylandOutputInfo(Resource *resource, int res_w, int res_h) +{ + DSLOG_DBG("DSWaylandOutputPriv", "resolution width,hight: (%d,%d)", res_w, res_h); + int w, h, phyw, phyh; + + /* TODO: calculate the ratio of resolution width/height and output values and change the configured output resolution and configured physical size */ + w = __outputRect.w; + h = __outputRect.h; + phyw = __phyWidth; + phyh = __phyHeight; + + wl_output::send_scale(resource->handle, __scale); + wl_output::send_geometry(resource->handle, __outputRect.x, __outputRect.y, phyw, phyh, __subpixel, __make, __model, __transform); + wl_output::send_mode(resource->handle, mode_current | mode_preferred, w, h, __refresh); + wl_output::send_done(resource->handle); +} + +bool DSWaylandOutputPrivate::getBaseResolutionFromAppinfo(Resource *resource, int *w, int *h) +{ + DSWaylandClient *client = DSWaylandClient::fromWlClient(resource->client()); + DSTizenAppinfoMgr *appinfoMgr = DSTizenAppinfoMgr::getInstance(); + pid_t pid = -1; + int res_w, res_h; + bool res = false; + + pid = client->pid(); + if (pid <= 0) { + return false; + } + res = appinfoMgr->getBaseOutputResolution(pid, &res_w, &res_h); + if (!res) + return false; + + if (w) *w = res_w; + if (h) *h = res_h; + + DSTizenAppinfoMgr::releaseInstance(); + return true; +} + void DSWaylandOutputPrivate::sendWaylandOutputInfo(void) { std::multimap::iterator iter; diff --git a/src/DSWaylandServer/DSWaylandOutputPrivate.h b/src/DSWaylandServer/DSWaylandOutputPrivate.h index f6e916c..7320781 100644 --- a/src/DSWaylandServer/DSWaylandOutputPrivate.h +++ b/src/DSWaylandServer/DSWaylandOutputPrivate.h @@ -45,6 +45,7 @@ protected: void output_release(Resource *resource) override; void sendWaylandOutputInfo(Resource *resource); + void sendWaylandOutputInfo(Resource *resource, int res_w, int res_h); void sendWaylandOutputInfo(void); void setWaylandOutputResolution(int x, int y, int w, int h); @@ -56,6 +57,8 @@ protected: void setWaylandOutputSubpixel(unsigned int subpixel); void setWaylandOutputTransform(unsigned int transform); + bool getBaseResolutionFromAppinfo(Resource *resource, int *w, int *h); + private: stRect __outputRect; int __phyWidth; -- 2.7.4