tizen 2.3 release
[framework/api/application.git] / include / app_preference_internal.h
1 /*
2  * Copyright (c) 2011 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
17
18 #ifndef __TIZEN_APPFW_PREFERENCE_INTERNAL_H__
19 #define __TIZEN_APPFW_PREFERENCE_INTERNAL_H__
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 #define PREF_DB_NAME            ".pref.db"
26 #define PREF_TBL_NAME           "pref"
27 #define PREF_F_KEY_NAME         "pref_key"
28 #define PREF_F_TYPE_NAME        "pref_type"
29 #define PREF_F_DATA_NAME        "pref_data"
30 #define BUF_LEN                 (4096)
31
32 typedef enum
33 {
34         PREFERENCE_TYPE_INT = 1,
35         PREFERENCE_TYPE_BOOLEAN,
36         PREFERENCE_TYPE_DOUBLE,
37         PREFERENCE_TYPE_STRING
38 } preference_type_e;
39
40 typedef struct _pref_changed_cb_node_t{
41         char *key;
42         preference_changed_cb cb;
43         void *user_data;
44         struct _pref_changed_cb_node_t *prev;
45         struct _pref_changed_cb_node_t *next;
46 } pref_changed_cb_node_t;
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* __TIZEN_APPFW_PREFERENCE_INTERNAL_H__ */