mmi-manager: add dbg header file 12/264012/1
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 13 Jul 2021 16:57:07 +0000 (01:57 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:23:43 +0000 (20:23 +0900)
Change-Id: I95e46a985fdd4c58c0538542cd0e6572f8895771
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/meson.build
src/mmi-manager-dbg.h [new file with mode: 0644]

index 9b49d74..448088d 100644 (file)
@@ -16,6 +16,7 @@ mmi_manager_srcs = [
        'mmi-fusion.h',
        'mmi-fusion-iface.h',
        'mmi-manager-event-types.h',
+       'mmi-manager-dbg.h',
        'interface/mmifw_stub.h',
        'interface/mmifw_stub.c',
        ]
diff --git a/src/mmi-manager-dbg.h b/src/mmi-manager-dbg.h
new file mode 100644 (file)
index 0000000..9d122e6
--- /dev/null
@@ -0,0 +1,50 @@
+/*
+* 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_MANAGER_DBG_H__
+#define __MMI_MANAGER_DBG_H__
+
+#include <dlog.h>
+
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+#define LOG_TAG "MMIMGR"
+
+#ifndef _E
+#define _E LOGE
+#endif
+
+#ifndef _D
+#define _D LOGD
+#endif
+
+#ifndef _I
+#define _I LOGI
+#endif
+
+#ifndef _W
+#define _W LOGW
+#endif
+
+#endif // __MMI_MANAGER_DBG_H__