mmi-common: import definition of MMI_MANAGER_EVENT_XXX_CHANGE event from mmi-manager 70/264070/1
authorSung-Jin Park <sj76.park@samsung.com>
Fri, 3 Sep 2021 06:43:27 +0000 (15:43 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:25:39 +0000 (20:25 +0900)
Change-Id: I548e4800b6f7e0fcb2d76585e1641c7d18b04917
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/meson.build
src/mmi-common.c [new file with mode: 0644]
src/mmi-manager.c

index cd98330..c2f3a0b 100644 (file)
@@ -9,6 +9,7 @@ mmi_manager_srcs = [
        'mmi-client.h',
        'mmi-client.c',
        'mmi-common.h',
+       'mmi-common.c',
        'mmi-provider.c',
        'mmi-provider.h',
        'mmi-provider-iface.h',
diff --git a/src/mmi-common.c b/src/mmi-common.c
new file mode 100644 (file)
index 0000000..27cd439
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+* Copyright © 2021 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 "mmi-common.h"
+
+MMI_API int MMI_MANAGER_EVENT_FOCUS_CHANGE = -1;
+MMI_API int MMI_MANAGER_EVENT_STATE_CHANGE = -1;
+
index b439ef0..7a76756 100644 (file)
@@ -38,9 +38,6 @@ static int _focus_candidates_cnt = 0;
 static mmi_client* _cur_focus_client = NULL;
 Ecore_Event_Handler *_event_handlers[2];
 
-int MMI_MANAGER_EVENT_FOCUS_CHANGE = -1;
-int MMI_MANAGER_EVENT_STATE_CHANGE = -1;
-
 int
 mmi_manager_remove_client_from_focus_candidates(mmi_client *client)
 {