forked from organicmaps/organicmaps
[api] More minor fixes.
This commit is contained in:
parent
7c30a7b80f
commit
b038b09dd7
2 changed files with 5 additions and 2 deletions
|
@ -70,8 +70,10 @@ void MapsWithMe_LatLonToString(double lat, double lon, char * s, int nBytes)
|
|||
}
|
||||
}
|
||||
|
||||
char * MapsWithMe_GenShortShowMapUrl(double lat, double lon, double zoomLevel, char const * name)
|
||||
int MapsWithMe_GenShortShowMapUrl(double lat, double lon, double zoomLevel, char const * name, char * buf, int bufSize)
|
||||
{
|
||||
// @TODO: Implement MapsWithMe_GenShortShowMapUrl().
|
||||
// @TODO: Escape URL-unfriendly characters: ! * ' ( ) ; : @ & = + $ , / ? % # [ ]
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -39,7 +39,8 @@ char * MapsWithMe_GenShowMapUrl(MapsWithMe_ShowMapRequest const * request);
|
|||
*/
|
||||
|
||||
// Helper method to generate short url.
|
||||
char * MapsWithMe_GenShortShowMapUrl(double lat, double lon, double zoomLevel, char const * name);
|
||||
// Returns the number of bytes required to fit the whole URL or an error_code < 0 on error.
|
||||
int MapsWithMe_GenShortShowMapUrl(double lat, double lon, double zoomLevel, char const * name, char * buf, int bufSize);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // Closing brace for extern "C"
|
||||
|
|
Loading…
Add table
Reference in a new issue