2 * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __COMP_CONTEXT_H__
19 #define __COMP_CONTEXT_H__
25 #include <companion_gdbus.h>
26 #include <sys/types.h>
36 //GDBusConnection *connection;
40 GList *resource_list[COMP_RESOURCE_TYPE_MAX];
43 bool mot_me; /**< Indicator whether mot local comp-manager */
56 GDBusConnection *connection;
57 } comp_conn_destroy_data;
59 int comp_context_create();
60 int comp_context_destroy();
61 void comp_context_mutex_lock();
62 void comp_context_mutex_unlock();
64 comp_context_t *comp_context_get_context();
69 #endif /* __COMP_CONTEXT_H__ */