[cbhm] License is changed to Flora License
[framework/uifw/cbhm.git] / src / xconverter.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3
4  * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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  */
17
18 #ifndef _X_ATOM_H_
19 #define _X_ATOM_H_
20
21 enum ATOM_INDEX {
22         ATOM_INDEX_TARGET = 0,
23         ATOM_INDEX_TEXT = 1,
24         ATOM_INDEX_HTML = 2,
25         ATOM_INDEX_EFL = 3,
26         ATOM_INDEX_IMAGE = 4,
27         ATOM_INDEX_MAX = 5
28 };
29
30 #include "cbhm.h"
31
32 void init_target_atoms(AppData *ad);
33 void depose_target_atoms(AppData *ad);
34 int atom_type_index_get(AppData *ad, Ecore_X_Atom atom);
35 char *string_for_entry_get(AppData *ad, int type_index, const char *str);
36 Eina_Bool generic_converter(AppData *ad, Ecore_X_Atom reqAtom, CNP_ITEM *item, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *tsize);
37
38 #endif