From 5e8efe4801471774ec573bf7a60907d4706e7a65 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Thu, 10 Jun 2021 10:25:26 +0900 Subject: [PATCH] tbm_module: add tbm_module.c file Change-Id: I5e8d4d9454f453d66381dacba1905817e04db245 --- src/Makefile.am | 1 + src/tbm_module.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 src/tbm_module.c diff --git a/src/Makefile.am b/src/Makefile.am index bdc188f..05adbd5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 index 0000000..0aef6a7 --- /dev/null +++ b/src/tbm_module.c @@ -0,0 +1,50 @@ +/************************************************************************** + +libtbm + +Copyright 2012-2021 Samsung Electronics co., Ltd. All Rights Reserved. + +Contact: SooChan Lim + Changyeon Lee + +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: +} + -- 2.7.4