5874856966f242ab63aa3447160f3ae96cf7754c
[framework/api/location-manager.git] / include / locations_private.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 #ifndef __TIZEN_LOCATION_LOCATIONS_PRIVATE_H__
18 #define __TIZEN_LOCATION_LOCATIONS_PRIVATE_H__
19
20 #include <location/location.h>
21 #include <locations.h>
22 #include <location_bounds.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 typedef enum {
29         _LOCATIONS_EVENT_TYPE_SERVICE_STATE,
30         _LOCATIONS_EVENT_TYPE_POSITION,
31         _LOCATIONS_EVENT_TYPE_VELOCITY,
32         _LOCATIONS_EVENT_TYPE_BOUNDARY,
33         _LOCATIONS_EVENT_TYPE_SATELLITE,
34         _LOCATIONS_EVENT_TYPE_FOREACH_BOUNDS,
35         _LOCATIONS_EVENT_TYPE_NUM
36 }_location_event_e;
37
38 typedef struct _location_manager_s{
39         LocationObject* object;
40         const void* user_cb[_LOCATIONS_EVENT_TYPE_NUM];
41         void* user_data[_LOCATIONS_EVENT_TYPE_NUM];
42         location_method_e method;
43         bool is_continue_foreach_bounds;
44 } location_manager_s;
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif //__TIZEN_LOCATION_LOCATIONS_PRIVATE_H__