adds module for worker interface 11/176411/1
authorJeonghoon Park <jh1979.park@samsung.com>
Thu, 19 Apr 2018 06:14:14 +0000 (15:14 +0900)
committerJeonghoon Park <jh1979.park@samsung.com>
Thu, 19 Apr 2018 06:17:51 +0000 (15:17 +0900)
Change-Id: I20ae241395cdcd1fa8ecdc4b01700cc3a9c1aab2

daemon/include/ttd-worker-interface.h [new file with mode: 0644]
daemon/src/ttd-worker-interface.c [new file with mode: 0644]

diff --git a/daemon/include/ttd-worker-interface.h b/daemon/include/ttd-worker-interface.h
new file mode 100644 (file)
index 0000000..dc359e5
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TT_DAEMON_WORKER_INTERFACE_H__
+#define __TT_DAEMON_WORKER_INTERFACE_H__
+
+/* TODO : handle should be defined to some kind of struct or pointer */
+int ttd_worker_interface_init(int *handle);
+int ttd_worker_interface_fini(int handle);
+
+#endif /* __TT_DAEMON_WORKER_INTERFACE_H__ */
\ No newline at end of file
diff --git a/daemon/src/ttd-worker-interface.c b/daemon/src/ttd-worker-interface.c
new file mode 100644 (file)
index 0000000..c373cc9
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+/* handle should be redefined as a data struct */
+int ttd_worker_interface_init(int *handle)
+{
+       /* TODO */
+       // DBUS or file or IPC or.....which one?
+       return 0;
+}
+
+int ttd_worker_interface_fini(int handle)
+{
+       return 0;
+}