2 * Copyright (c) 2011 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 __TIZEN_APPFW_PREFERENCE_INTERNAL_H__
19 #define __TIZEN_APPFW_PREFERENCE_INTERNAL_H__
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)
34 PREFERENCE_TYPE_INT = 1,
35 PREFERENCE_TYPE_BOOLEAN,
36 PREFERENCE_TYPE_DOUBLE,
37 PREFERENCE_TYPE_STRING
40 typedef struct _pref_changed_cb_node_t{
42 preference_changed_cb cb;
44 struct _pref_changed_cb_node_t *prev;
45 struct _pref_changed_cb_node_t *next;
46 } pref_changed_cb_node_t;
52 #endif /* __TIZEN_APPFW_PREFERENCE_INTERNAL_H__ */