[api] More minor fixes.

This commit is contained in:
Yury Melnichek 2013-03-20 00:15:00 +01:00 committed by Alex Zolotarev
parent 7c30a7b80f
commit b038b09dd7
2 changed files with 5 additions and 2 deletions

View file

@ -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;
}

View file

@ -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"