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.
17 #ifndef __TIZEN_LOCATION_LOCATIONS_PRIVATE_H__
18 #define __TIZEN_LOCATION_LOCATIONS_PRIVATE_H__
20 #include <location/location.h>
21 #include <locations.h>
27 #define LOG_TAG "CAPI_LOCATION_MANAGER"
32 #define LOCATIONS_LOGD(fmt,args...) LOGD(fmt, ##args)
33 #define LOCATIONS_LOGW(fmt,args...) LOGW(fmt, ##args)
34 #define LOCATIONS_LOGI(fmt,args...) LOGI(fmt, ##args)
35 #define LOCATIONS_LOGE(fmt,args...) LOGE(fmt, ##args)
37 #define LOCATIONS_CHECK_CONDITION(condition, error, msg) \
41 LOCATIONS_LOGE("%s(0x%08x)", msg, error); \
47 #define LOCATIONS_PRINT_ERROR_CODE(error, msg) \
49 LOCATIONS_LOGE("%s(0x%08x)", msg, error); \
59 _LOCATIONS_EVENT_TYPE_SERVICE_STATE,
60 _LOCATIONS_EVENT_TYPE_POSITION,
61 _LOCATIONS_EVENT_TYPE_VELOCITY,
62 _LOCATIONS_EVENT_TYPE_BOUNDARY,
63 _LOCATIONS_EVENT_TYPE_SATELLITE,
64 _LOCATIONS_EVENT_TYPE_FOREACH_BOUNDS,
65 _LOCATIONS_EVENT_TYPE_NUM
68 typedef struct _location_manager_s {
69 LocationObject* object;
70 const void* user_cb[_LOCATIONS_EVENT_TYPE_NUM];
71 void* user_data[_LOCATIONS_EVENT_TYPE_NUM];
72 location_method_e method;
73 bool is_continue_foreach_bounds;
77 typedef struct _location_bounds_s {
78 LocationBoundary* boundary;
87 #endif //__TIZEN_LOCATION_LOCATIONS_PRIVATE_H__