tbm_module: add tbm_module.c file 97/259697/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 10 Jun 2021 01:25:26 +0000 (10:25 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 10 Jun 2021 01:25:26 +0000 (10:25 +0900)
Change-Id: I5e8d4d9454f453d66381dacba1905817e04db245

src/Makefile.am
src/tbm_module.c [new file with mode: 0644]

index bdc188f..05adbd5 100644 (file)
@@ -25,6 +25,7 @@ libtbm_la_SOURCES = \
        tbm_drm_helper_client.c \
        tbm_sync.c \
        tbm_log.c \
+       tbm_module.c \
        tbm_error.c \
        tbm_backend.c \
        tbm_dummy_display.c
diff --git a/src/tbm_module.c b/src/tbm_module.c
new file mode 100644 (file)
index 0000000..0aef6a7
--- /dev/null
@@ -0,0 +1,50 @@
+/**************************************************************************
+
+libtbm
+
+Copyright 2012-2021 Samsung Electronics co., Ltd. All Rights Reserved.
+
+Contact: SooChan Lim <sc1.lim@samsung.com>
+         Changyeon Lee <cyeon.lee@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.
+
+**************************************************************************/
+
+#include "config.h"
+
+#include "tbm_bufmgr_int.h"
+#include "tbm_bufmgr_backend.h"
+#include "tbm_drm_helper.h"
+
+tbm_module *
+tbm_module_load(int fd)
+{
+       // TODO:
+       return NULL;
+}
+
+void
+tbm_module_unload(tbm_module *module)
+{
+       // TODO:
+}
+