Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-04-08 23:04:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:53:14 +0300
commit976fb99da373b5318cb1e0671977575ffd68bc7b (patch)
treed839ed870c7ee6067e7ff3c6581e4934310cf6f8 /api
parent8be07b53ac27dbacedee3494dc529010b7ddb611 (diff)
[api] Factor out api-client-internals.h
Diffstat (limited to 'api')
-rw-r--r--api/internal/c/api-client-internals.h22
-rw-r--r--api/tests/c/api-client-test.c7
2 files changed, 23 insertions, 6 deletions
diff --git a/api/internal/c/api-client-internals.h b/api/internal/c/api-client-internals.h
new file mode 100644
index 0000000000..b7fd54329a
--- /dev/null
+++ b/api/internal/c/api-client-internals.h
@@ -0,0 +1,22 @@
+#ifndef MAPSWITHME_API_INTERNAL_API_CLIENT_INTERNALS
+#define MAPSWITHME_API_INTERNAL_API_CLIENT_INTERNALS
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAPSWITHME_MAX_POINT_BYTES 10
+#define MAPSWITHME_MAX_COORD_BITS (MAPSWITHME_MAX_POINT_BYTES * 3)
+
+char MapsWithMe_Base64Char(int x);
+int MapsWithMe_LatToInt(double lat, int maxValue);
+double MapsWithMe_LonIn180180(double lon);
+int MapsWithMe_LonToInt(double lon, int maxValue);
+void MapsWithMe_LatLonToString(double lat, double lon, char * s, int nBytes);
+
+#ifdef __cplusplus
+} // Closing brace for extern "C"
+#endif
+
+
+#endif // MAPSWITHME_API_INTERNAL_API_CLIENT_INTERNALS
diff --git a/api/tests/c/api-client-test.c b/api/tests/c/api-client-test.c
index c2fed0af55..1c6c99f20c 100644
--- a/api/tests/c/api-client-test.c
+++ b/api/tests/c/api-client-test.c
@@ -1,11 +1,6 @@
#include "fct.h"
#include "../../src/c/api-client.h"
-
-char MapsWithMe_Base64Char(int x);
-int MapsWithMe_LatToInt(double lat, int maxValue);
-double MapsWithMe_LonIn180180(double lon);
-int MapsWithMe_LonToInt(double lon, int maxValue);
-void MapsWithMe_LatLonToString(double lat, double lon, char * s, int nBytes);
+#include "../../internal/c/api-client-internals.h"
static const int MAX_POINT_BYTES = 10;
static const int TEST_COORD_BYTES = 9;