modality vision module : generate modality vision module 49/265149/1
authordyamy-lee <dyamy.lee@samsung.com>
Thu, 19 Aug 2021 08:49:49 +0000 (17:49 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 12 Oct 2021 03:05:37 +0000 (12:05 +0900)
mmi-vision-provider.h/.c : add skeleton code for modality vision module

Change-Id: I562a14bc8bc559599fcc33f39a9cf9e0094b9ebc

src/modules/modality_vision/mmi-vision-provider.c [new file with mode: 0644]
src/modules/modality_vision/mmi-vision-provider.h [new file with mode: 0644]

diff --git a/src/modules/modality_vision/mmi-vision-provider.c b/src/modules/modality_vision/mmi-vision-provider.c
new file mode 100644 (file)
index 0000000..7c6fffa
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+* 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-vision-provider.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+static mmi_provider_module_data *
+vision_modality_init(void)
+{
+    return NULL;
+}
+
+bool vision_set_mode(mmi_provider_op_mode mode)
+{
+    return 0;
+}
+
+mmi_provider_op_mode vision_get_mode(void)
+{
+    return MODALITY_PROVIDER_MODE_NONE;
+}
+
+static void
+vision_modality_deinit(mmi_provider_module_data *module_data)
+{
+}
+
+MMI_PROVIDER_API mmi_provider_module mmi_provider_module_info = {
+};
\ No newline at end of file
diff --git a/src/modules/modality_vision/mmi-vision-provider.h b/src/modules/modality_vision/mmi-vision-provider.h
new file mode 100644 (file)
index 0000000..024c1ba
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+* 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.
+*/
+
+#ifndef __MMI_VISION_PROVIDER_H__
+#define __MMI_VISION_PROVIDER_H__
+
+#include <mmi-common.h>
+#include <mmi-provider-iface.h>
+#include <mmi-manager-dbg.h>
+
+bool vision_set_mode(mmi_provider_op_mode mode);
+mmi_provider_op_mode vision_get_mode(void);
+
+#endif //__MMI_VISION_PROVIDER_H__