Geofence3 / inc /

data.h

  1. /*
  2. * Copyright (c) 2016 Samsung Electronics Co., Ltd
  3. *
  4. * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
  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. #include <geofence_manager.h>
  18.  
  19. #if !defined(_DATA_H)
  20. #define _DATA_H
  21.  
  22. #define METHOD_GPS 0
  23. #define METHOD_WIFI 1
  24. #define METHOD_BT 2
  25.  
  26. #define MAX_COUNT 100
  27.  
  28. #define LATITUDE 12.98025
  29. #define LONGITUDE 77.69773
  30. #define BSSID "88:30:8a:6c:28:15"
  31.  
  32. typedef struct appdata {
  33. int place_id[MAX_COUNT];
  34. int fence_id[MAX_COUNT];
  35.  
  36. geofence_manager_h geo_manager;
  37. } appdata_s;
  38.  
  39. /*
  40. * Initialize the data component.
  41. */
  42. void data_initialize(appdata_s *ad);
  43.  
  44. /*
  45. * Finalize the data component.
  46. */
  47. void data_finalize(appdata_s *ad);
  48.  
  49. #endif