2 * Copyright 2012 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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 __DEF_cam_lbs_H_
19 #define __DEF_cam_lbs_H_
24 CAM_LBS_STATE_DISABLE = 0, /* disable or stop */
25 CAM_LBS_STATE_SERVICE_START, /* start */
26 CAM_LBS_STATE_SERVICE_ENABLE, /* enable service */
27 CAM_LBS_STATE_ACCURANCY_ROUGH, /* rough, if < LOCATION_ACCURACY_LEVEL_STREET */
28 CAM_LBS_STATE_ACCURANCY_DETAILED, /* detail, if >= LOCATION_ACCURACY_LEVEL_STREET */
32 gboolean cam_lbs_init(void);
33 gboolean cam_lbs_finialize(void);
34 gboolean cam_lbs_start(void (*lbs_update_cb) (void *data, int lbs_state),
36 gboolean cam_lbs_stop(void);
38 gboolean cam_lbs_is_valid(void);
40 gboolean cam_lbs_get_current_position(double *longitude, double *latitude,
41 double *altitude, time_t *time_stamp);
42 gboolean cam_lbs_get_address(char *address, int max_length);
44 int cam_lbs_get_state(void);
46 #endif /* __DEF_cam_lbs_H_ */