removed wrong contact points & added two authors
[platform/core/location/lbs-server.git] / lbs-server / src / setting.h
1 /*
2  * lbs-server
3  *
4  * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19 #ifndef _SETTING_H_
20 #define _SETTING_H_
21
22 #include <vconf.h>
23 #include <vconf-internal-location-keys.h>
24
25 #include <glib.h>
26
27 #define NPS_UNIQUE_ID_LEN (20)
28
29 /*#define NPS_MANAGER_PLUGIN_PATH       "/usr/lib/libSLP-nps-plugin.so" */
30
31 typedef enum {
32         POSITION_OFF = 0,
33         POSITION_SEARCHING,
34         POSITION_CONNECTED,
35         POSITION_MAX
36 } pos_state_t;
37
38 int setting_set_int(const char *path, int val);
39 int setting_get_int(const char *path, int *val);
40 int setting_set_double(const char *path, double val);
41 int setting_get_double(const char *path, double *val);
42 int setting_set_string(const char *path, const char *val);
43 char *setting_get_string(const char *path);
44
45 typedef void (*key_changed_cb)(keynode_t *key, void *data);
46
47 int setting_notify_key_changed(const char *path, void *key_changed_cb, void *data);
48 int setting_ignore_key_changed(const char *path, void *key_changed_cb);
49
50 unsigned char setting_get_unique_id(char *unique_id);
51
52 #endif                          /* _SETTING_H_ */