Merge "Fix invalid memory access" into tizen
[platform/core/iot/iotcon.git] / lib / icl-resource-types.h
1 /*
2  * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 #ifndef __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESOURCE_TYPES_H__
17 #define __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESOURCE_TYPES_H__
18
19 #include <glib.h>
20 #include "iotcon-types.h"
21 #include "icl-query.h"
22
23 /**
24  * @brief The maximum length which can be held in a resource type.
25  *
26  * @since_tizen 3.0
27  */
28 #define ICL_RESOURCE_TYPE_LENGTH_MAX (ICL_QUERY_LENGTH_MAX - 3)
29
30
31 struct icl_resource_types {
32         int ref_count;
33         GList *type_list;
34 };
35
36 iotcon_resource_types_h icl_resource_types_ref(iotcon_resource_types_h res_types);
37
38 #endif /* __IOT_CONNECTIVITY_MANAGER_LIBRARY_RESOURCE_TYPES_H__ */