config: move to src 12/174412/1
authorBoram Park <boram1288.park@samsung.com>
Mon, 2 Apr 2018 04:55:28 +0000 (13:55 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 2 Apr 2018 04:58:35 +0000 (13:58 +0900)
Change-Id: If7c889f1704be1c0aa0d8bbd2f4b5785368feb60

include/Makefile.am
include/tdm_config.h [deleted file]
packaging/libtdm.spec
src/tdm_config.h [new file with mode: 0644]

index a16c981d2a635d74dabbd027d28d184ec7ffe9fa..0e0884afd317e089c89a829f1831f90aac808330 100644 (file)
@@ -4,7 +4,6 @@ libtdminclude_HEADERS = \
        tdm_common.h \
        tdm_types.h \
        tdm_list.h \
-       tdm_config.h \
        tdm_log.h \
        tdm_backend.h \
        tdm_helper.h \
diff --git a/include/tdm_config.h b/include/tdm_config.h
deleted file mode 100644 (file)
index 1b1e36a..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/**************************************************************************
- *
- * libtdm
- *
- * Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
- *
- * Contact: Eunchul Kim <chulspro.kim@samsung.com>,
- *          JinYoung Jeon <jy0.jeon@samsung.com>,
- *          Taeheon Kim <th908.kim@samsung.com>,
- *          YoungJun Cho <yj44.cho@samsung.com>,
- *          SooChan Lim <sc1.lim@samsung.com>,
- *          Boram Park <boram1288.park@samsung.com>
- *
- * 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.
- *
-**************************************************************************/
-
-#ifndef _TDM_CONFIG_H_
-#define _TDM_CONFIG_H_
-
-#include "tdm_common.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "tdm_common.h"
-
-/**
- * @file tdm_config.h
- * @brief The config header file for a frontend library
- */
-
-tdm_error
-tdm_config_init(void);
-void
-tdm_config_deinit(void);
-
-tdm_error
-tdm_config_set_int(const char *key, int value);
-tdm_error
-tdm_config_set_string(const char *key, const char *value);
-
-
-#define TDM_CONFIG_DELIM ", "
-
-/*** general keys ************************************************************/
-
-/* backends order list to load.
- * default: libtdm-default.so
- * ex) libtdm-default.so,libtdm-dummy.so
- */
-#define TDM_CONFIG_KEY_GENERAL_BACKENDS           "general:backends"
-
-/* enable thd tdm thread. [0(disable), 1(enable)]
- * default: 0
- * ex) 1
- */
-#define TDM_CONFIG_KEY_GENERAL_THREAD             "general:thread"
-
-/* enable the tdm commit-per-vblank functionality. [0(disable), 1(enable)]
- * default: 0
- * ex) 1
- */
-#define TDM_CONFIG_KEY_GENERAL_COMMIT_PER_VBLANK  "general:commit_per_vblank"
-
-
-/*** debug keys **************************************************************/
-
-/* debugging module list. [0(disable), 1(enable)]
- * default: 1
- * ex) 0
- */
-#define TDM_CONFIG_KEY_DEBUG_DLOG                 "debug:dlog"
-
-/* debugging module list. [none,all,buffer,thread,event,mutex,vblank,commit]
- * default: none
- * ex) mutex,vblank
- */
-#define TDM_CONFIG_KEY_DEBUG_MODULE               "debug:module"
-
-/* debugging dump list. [none,current,all,layer,pp,capture,window]
- * default: none
- * ex) layer,capture
- */
-#define TDM_CONFIG_KEY_DEBUG_DUMP                 "debug:dump"
-
-/* debugging log path. [{filepath}]
- * default:
- * ex) /var/tdm.log
- */
-#define TDM_CONFIG_KEY_DEBUG_LOG_PATH             "debug:log_path"
-
-/* debugging log level. [1(ERR),2(WRN),3(INFO),4(DBG)]
- * default: 3
- * ex) 4
- */
-#define TDM_CONFIG_KEY_DEBUG_LOG_LEVEL            "debug:log_level"
-
-/* debugging log level to assert. [0(NONE),1(ERR),2(WRN),3(INFO),4(DBG)]
- * default: 0
- * ex) 1
- */
-#define TDM_CONFIG_KEY_DEBUG_ASSERT_LEVEL         "debug:assert_level"
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _TDM_CONFIG_H_ */
index a4c14d7278b79d8c493b17abc927500022f9aa2d..493b7b7f37361cbb867727b9582dbc53018736b6 100644 (file)
@@ -128,7 +128,6 @@ rm -f %{_unitdir_user}/basic.target.wants/tdm-socket-user.path
 %{_includedir}/tdm_list.h
 %{_includedir}/tdm_log.h
 %{_includedir}/tdm_types.h
-%{_includedir}/tdm_config.h
 %{_includedir}/tdm_deprecated.h
 %{_libdir}/pkgconfig/libtdm.pc
 %{_libdir}/libtdm.so
diff --git a/src/tdm_config.h b/src/tdm_config.h
new file mode 100644 (file)
index 0000000..b6a34ba
--- /dev/null
@@ -0,0 +1,127 @@
+/**************************************************************************
+ *
+ * libtdm
+ *
+ * Copyright 2015 Samsung Electronics co., Ltd. All Rights Reserved.
+ *
+ * Contact: Eunchul Kim <chulspro.kim@samsung.com>,
+ *          JinYoung Jeon <jy0.jeon@samsung.com>,
+ *          Taeheon Kim <th908.kim@samsung.com>,
+ *          YoungJun Cho <yj44.cho@samsung.com>,
+ *          SooChan Lim <sc1.lim@samsung.com>,
+ *          Boram Park <boram1288.park@samsung.com>
+ *
+ * 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.
+ *
+**************************************************************************/
+
+#ifndef _TDM_CONFIG_H_
+#define _TDM_CONFIG_H_
+
+#include "tdm_common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "tdm_common.h"
+
+/**
+ * @file tdm_config.h
+ * @brief The config header file for a frontend library
+ */
+
+void
+tdm_config_deinit(void);
+
+tdm_error
+tdm_config_set_int(const char *key, int value);
+tdm_error
+tdm_config_set_string(const char *key, const char *value);
+
+
+#define TDM_CONFIG_DELIM ", "
+
+/*** general keys ************************************************************/
+
+/* backends order list to load.
+ * default: libtdm-default.so
+ * ex) libtdm-default.so,libtdm-dummy.so
+ */
+#define TDM_CONFIG_KEY_GENERAL_BACKENDS           "general:backends"
+
+/* enable thd tdm thread. [0(disable), 1(enable)]
+ * default: 0
+ * ex) 1
+ */
+#define TDM_CONFIG_KEY_GENERAL_THREAD             "general:thread"
+
+/* enable the tdm commit-per-vblank functionality. [0(disable), 1(enable)]
+ * default: 0
+ * ex) 1
+ */
+#define TDM_CONFIG_KEY_GENERAL_COMMIT_PER_VBLANK  "general:commit_per_vblank"
+
+
+/*** debug keys **************************************************************/
+
+/* debugging module list. [0(disable), 1(enable)]
+ * default: 1
+ * ex) 0
+ */
+#define TDM_CONFIG_KEY_DEBUG_DLOG                 "debug:dlog"
+
+/* debugging module list. [none,all,buffer,thread,event,mutex,vblank,commit]
+ * default: none
+ * ex) mutex,vblank
+ */
+#define TDM_CONFIG_KEY_DEBUG_MODULE               "debug:module"
+
+/* debugging dump list. [none,current,all,layer,pp,capture,window]
+ * default: none
+ * ex) layer,capture
+ */
+#define TDM_CONFIG_KEY_DEBUG_DUMP                 "debug:dump"
+
+/* debugging log path. [{filepath}]
+ * default:
+ * ex) /var/tdm.log
+ */
+#define TDM_CONFIG_KEY_DEBUG_LOG_PATH             "debug:log_path"
+
+/* debugging log level. [1(ERR),2(WRN),3(INFO),4(DBG)]
+ * default: 3
+ * ex) 4
+ */
+#define TDM_CONFIG_KEY_DEBUG_LOG_LEVEL            "debug:log_level"
+
+/* debugging log level to assert. [0(NONE),1(ERR),2(WRN),3(INFO),4(DBG)]
+ * default: 0
+ * ex) 1
+ */
+#define TDM_CONFIG_KEY_DEBUG_ASSERT_LEVEL         "debug:assert_level"
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _TDM_CONFIG_H_ */