From: Youngjae Cho Date: Thu, 3 Aug 2023 06:07:11 +0000 (+0900) Subject: display: Introduce resource-driver X-Git-Tag: accepted/tizen/unified/20230818.183532~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4da4c33f17715bed2ec0aa762f38f6169d7df57d;p=platform%2Fcore%2Fsystem%2Fdeviced.git display: Introduce resource-driver Add skeleton resource-driver for the display. Change-Id: I716c208ed55b89636d4c3ecc394d8f6938abecc6 Signed-off-by: Youngjae Cho --- diff --git a/src/display/resource-display.c b/src/display/resource-display.c new file mode 100644 index 0000000..520605a --- /dev/null +++ b/src/display/resource-display.c @@ -0,0 +1,40 @@ +/* + * deviced + * + * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + */ + + +#include +#include + +#include +#include +#include + +#include "shared/common.h" + +static const struct syscommon_resman_resource_attribute display_attrs[] = { +}; + +static const struct syscommon_resman_resource_driver deviced_display_driver = { + .name = "display", + .type = DEVICED_RESOURCE_TYPE_DISPLAY, + /* FIXME: It could support multiple display */ + .flag = SYSCOMMON_RESMAN_RESOURCE_DRIVER_FLAG_COUNT_ONLY_ONE, + .attrs = display_attrs, + .num_attrs = ARRAY_SIZE(display_attrs), +}; +SYSCOMMON_RESMAN_RESOURCE_DRIVER_REGISTER(&deviced_display_driver);