PL SDK - Software Development Kit
5.4.0
API Reference
|
Go to the source code of this file.
Classes | |
struct | WPS_SimpleAuthentication |
struct | WPS_NameCode |
struct | WPS_StreetAddress |
struct | WPS_Location |
struct | WPS_IPLocation |
struct | WPS_GeoFence |
Typedefs | |
typedef WPS_Continuation(WPSAPI_CALL * | WPS_LocationCallback) (void *arg, WPS_ReturnCode code, const WPS_Location *location, const void *reserved) |
typedef WPS_Continuation(WPSAPI_CALL * | WPS_CertifiedLocationCallback) (void *arg, WPS_ReturnCode code, const WPS_Location **locations, unsigned nlocations, const void *reserved) |
typedef WPS_Continuation(WPSAPI_CALL * | WPS_TilingCallback) (void *arg, unsigned tileNumber, unsigned tileTotal) |
typedef void * | WPS_GeoFenceHandle |
typedef WPS_Continuation(WPSAPI_CALL * | WPS_GeoFenceCallback) (void *arg, const WPS_GeoFence *geofence, const WPS_Location *location, const void *reserved) |
Functions | |
WPSAPI_EXPORT const char *WPSAPI_CALL | WPS_version () |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_load () |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_unload () |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_location (const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_Location **location) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_periodic_location (const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, unsigned long period, unsigned iterations, WPS_LocationCallback callback, void *arg) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_certified_location (const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_CertifiedLocationCallback callback, void *arg) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_signed_certified_location (const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, const unsigned char *salt, unsigned saltLen, WPS_CertifiedLocationCallback callback, void *arg) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_ip_location (const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_IPLocation **location) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_offline_token (const WPS_SimpleAuthentication *authentication, const unsigned char *key, unsigned key_length, unsigned char **token, unsigned *token_size) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_offline_location (const WPS_SimpleAuthentication *authentication, const unsigned char *key, unsigned key_length, const unsigned char *token, unsigned token_size, WPS_Location **location) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_free_offline_token (unsigned char *token) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_free_location (WPS_Location *) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_free_ip_location (WPS_IPLocation *) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_set_proxy (const char *address, int port, const char *user, const char *password) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_set_server_url (const char *url) |
WPSAPI_EXPORT void WPSAPI_CALL | WPS_set_user_agent (const char *ua) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_local_files_path (const char **paths) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_tier2_area (const char *dirpath, unsigned size) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_tiling (const WPS_SimpleAuthentication *authentication, const char *dirpath, unsigned maxDataSizePerSession, unsigned maxDataSizeTotal, WPS_TilingCallback callback, void *arg) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_tiling (const char *dirpath, unsigned maxDataSizePerSession, unsigned maxDataSizeTotal, WPS_TilingCallback callback, void *arg) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_key (const char *key) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_auth (const char *key, const char *sku) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_auth_token (const char *token) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_registration_user (const WPS_SimpleAuthentication *authentication) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_register_user (const WPS_SimpleAuthentication *authentication, const WPS_SimpleAuthentication *new_authentication) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_tune_location (const WPS_SimpleAuthentication *authentication, const WPS_Location *location) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_geofence_set (const WPS_GeoFence *geofence, WPS_GeoFenceCallback callback, void *arg, WPS_GeoFenceHandle *handle) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_geofence_cancel (WPS_GeoFenceHandle handle) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_geofence_cancel_all () |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL | WPS_set_tunable (const char *key, const char *value) |
typedef WPS_Continuation(WPSAPI_CALL * WPS_CertifiedLocationCallback) (void *arg, WPS_ReturnCode code, const WPS_Location **locations, unsigned nlocations, const void *reserved) |
Callback routine for WPS_certified_location()
.
arg | the arg passed to WPS_certified_location() . |
code | the WPS_ReturnCode of the last request. |
locations | If code is WPS_OK points to an array of pointers to WPS_Location This pointer does not need to be freed. |
locationsSize | size of locations array |
WPS_CONTINUE
if WPS_certified_location()
should continue, WPS_STOP
if WPS_certified_location()
should stop.typedef WPS_Continuation(WPSAPI_CALL * WPS_GeoFenceCallback) (void *arg, const WPS_GeoFence *geofence, const WPS_Location *location, const void *reserved) |
Callback routine for WPS_geofence_set()
.
For a WPS_GEOFENCE_ENTER
geofence, this callback will be called whenever the user enters the geofence (but only once for as long as the user remains inside the geofence). For a WPS_GEOFENCE_LEAVE
geofence, this callback will be called whenever the user leaves the geofence (but only once for as long as the user remains outside the geofence).
arg | the arg passed to WPS_geofence_set() . |
geofence | the geofence that triggered this callback. |
location | the actual calculated location. |
WPS_CONTINUE
if WPS_periodic_location()
should continue, WPS_STOP
if WPS_periodic_location()
should stop (and no more callback will be invoked).typedef void* WPS_GeoFenceHandle |
Geofence handle.
typedef WPS_Continuation(WPSAPI_CALL * WPS_LocationCallback) (void *arg, WPS_ReturnCode code, const WPS_Location *location, const void *reserved) |
Callback routine for WPS_periodic_location()
.
arg | the arg passed to WPS_periodic_location() . |
code | the WPS_ReturnCode of the last request. |
location | If code is WPS_OK points to a WPS_Location This pointer does not need to be freed. |
WPS_CONTINUE
if WPS_periodic_location()
should continue, WPS_STOP
if WPS_periodic_location()
should stop.typedef WPS_Continuation(WPSAPI_CALL * WPS_TilingCallback) (void *arg, unsigned tileNumber, unsigned tileTotal) |
Callback routine for WPS_set_tiling()
.
arg | the arg passed to WPS_set_tiling() . |
tileNumber | the number of the tile to be downloaded next. |
tileTotal | the total number of tiles to be downloaded (in this session). |
tileNumber
ranges from 0 to tileTotal
(not inclusive), but if a tile has already been downloaded it will be skipped and the callback will not be called for that tile.WPS_CONTINUE
if WPS
should continue downloading tiles, WPS_STOP
if WPS
should stop downloading tiles.enum WPS_Continuation |
enum WPS_GeoFenceType |
Geofence type.
enum WPS_LocationType |
enum WPS_ReturnCode |
WPS return codes.
Enumerator | |
---|---|
WPS_OK | The call was successful. |
WPS_ERROR_SCANNER_NOT_FOUND | The
|
WPS_ERROR_WIFI_NOT_AVAILABLE | No Wi-Fi adapter was detected. |
WPS_ERROR_NO_WIFI_IN_RANGE | No Wi-Fi reference points in range. |
WPS_ERROR_UNAUTHORIZED | User authentication failed. |
WPS_ERROR_SERVER_UNAVAILABLE | The server is unavailable. |
WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED | A location couldn't be determined. |
WPS_ERROR_PROXY_UNAUTHORIZED | Proxy authentication failed. |
WPS_ERROR_FILE_IO | A file IO error occurred while reading the local file.
|
WPS_ERROR_INVALID_FILE_FORMAT | The local file has an invalid format.
|
WPS_ERROR_TIMEOUT | Network operation timed out.
|
WPS_NOT_APPLICABLE | Call cannot be completed at this time.
|
WPS_GEOFENCE_ERROR | An error occurred when processing a geofence.
|
WPS_ERROR_NOT_TUNED | Could not tune the location.
|
WPS_ERROR_NOT_SIGNED | Could not sign the certified location.
|
WPS_ERROR_LOCATION_SETTING_DISABLED | Location services are disabled in the system.
|
WPS_ERROR_LOCATION_NOT_PERMITTED | The application is not permitted to determine location.
|
WPS_NOT_SUPPORTED | Functionality is not supported.
|
WPS_ERROR_SERVICE_EXPIRED | Service has expired.
|
WPS_NOMEM | Cannot allocate memory.
|
WPS_ERROR | Some other error occurred. |
Street address lookup.
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_certified_location | ( | const WPS_SimpleAuthentication * | authentication, |
WPS_StreetAddressLookup | street_address_lookup, | ||
WPS_CertifiedLocationCallback | callback, | ||
void * | arg | ||
) |
Requests certified periodic geographic location based on observed Wi-Fi access points, cell towers, and GPS signals.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
street_address_lookup | request street address lookup in addition to latitude/longitude lookup Note that street address lookup is only performed when the location is determined by the remote server (network-centric model), not when the location is determined locally. |
callback | the callback routine to report locations to. |
arg | an opaque parameter passed to the callback routine. |
WPS_ReturnCode
callback
returns WPS_STOP
.WPSAPI_EXPORT void WPSAPI_CALL WPS_free_ip_location | ( | WPS_IPLocation * | ) |
Free a WPS_IPLocation
struct returned by WPS_ip_location()
.
WPSAPI_EXPORT void WPSAPI_CALL WPS_free_location | ( | WPS_Location * | ) |
Free a WPS_Location
struct returned by WPS_location()
.
WPSAPI_EXPORT void WPSAPI_CALL WPS_free_offline_token | ( | unsigned char * | token | ) |
Free a token returned by WPS_offline_token()
.
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_geofence_cancel | ( | WPS_GeoFenceHandle | handle | ) |
Cancel a geofence.
handle | the handle of the geofence to cancel. |
WPS_ReturnCode
. WPS_GEOFENCE_ERROR
indicates the geofence for this handle isn't defined.WPS_geofence_set()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_geofence_cancel_all | ( | ) |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_geofence_set | ( | const WPS_GeoFence * | geofence, |
WPS_GeoFenceCallback | callback, | ||
void * | arg, | ||
WPS_GeoFenceHandle * | handle | ||
) |
Define a new geofence.
geofence | the geofence to monitor. |
callback | the WPS_GeoFenceCallback to invoke when this geofence is triggered. |
arg | an opaque parameter passed to the WPS_GeoFenceCallback . |
handle | receives WPS_GeoFenceHandle which can be used to cancel this geofence. |
WPS_ReturnCode
.WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_ip_location | ( | const WPS_SimpleAuthentication * | authentication, |
WPS_StreetAddressLookup | street_address_lookup, | ||
WPS_IPLocation ** | location | ||
) |
Request geographic location information based on the IP address of the client making the request.
WPS_ip_location()
requires network connectivity.authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
street_address_lookup | request street address lookup in addition to lat/long lookup. |
location | pointer to return a WPS_IPLocation struct. This pointer must be freed by calling WPS_free_ip_location() |
WPS_ReturnCode
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_load | ( | ) |
Initializes WPS API. Should be called before making other WPS API calls.
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_location | ( | const WPS_SimpleAuthentication * | authentication, |
WPS_StreetAddressLookup | street_address_lookup, | ||
WPS_Location ** | location | ||
) |
Requests geographic location based on observed Wi-Fi access points, cell towers, and GPS signals.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
street_address_lookup | request street address lookup in addition to latitude/longitude lookup. |
location | pointer to return a WPS_Location struct. This pointer must be freed by calling WPS_free_location() . |
WPS_ReturnCode
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_offline_location | ( | const WPS_SimpleAuthentication * | authentication, |
const unsigned char * | key, | ||
unsigned | key_length, | ||
const unsigned char * | token, | ||
unsigned | token_size, | ||
WPS_Location ** | location | ||
) |
Request a geographic location from a token collected at a different time.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
key | a key used to encrypt the token . |
key_length | the length of the key used to encrypt the token |
token | the token to be converted to a location |
token_size | the size of the token |
location | pointer to return a WPS_Location struct. This pointer should be freed by calling WPS_free_location() |
WPS_ReturnCode
username
can be used to replay a token than the username
used to collect the token, however both users must belong to the same realm
. WPS_offline_token()
must be provided to WPS_offline_location()
. WPS_offline_location()
is not guaranteed to return a location with that same token.WPS_offline_token()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_offline_token | ( | const WPS_SimpleAuthentication * | authentication, |
const unsigned char * | key, | ||
unsigned | key_length, | ||
unsigned char ** | token, | ||
unsigned * | token_size | ||
) |
Retrieve a secure offline token based on the latest observed Wi-Fi access points and cell towers. This token can be saved and converted to a location later by calling WPS_offline_location()
.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
key | a key used to encrypt the token. The longer the key the more effective the encryption. It is recommended to have a key of at least 16 bytes. |
key_length | the length of the key. |
token | a pointer to receive the token. This pointer must be freed by calling WPS_free_offline_token() . |
token_size | a pointer to receive the size of token . |
WPS_ReturnCode
WPS_offline_token()
is after either WPS_location()
failed with WPS_ERROR_SERVER_UNAVAILABLE
or WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
, or from the WPS_periodic_location()
callback again with a WPS_ERROR_SERVER_UNAVAILABLE
or WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
error code. WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_periodic_location | ( | const WPS_SimpleAuthentication * | authentication, |
WPS_StreetAddressLookup | street_address_lookup, | ||
unsigned long | period, | ||
unsigned | iterations, | ||
WPS_LocationCallback | callback, | ||
void * | arg | ||
) |
Requests periodic geographic location based on observed Wi-Fi access points, cell towers, and GPS signals.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
street_address_lookup | request street address lookup in addition to latitude/longitude lookup Note that street address lookup is only performed when the location is determined by the remote server (network-centric model), not when the location is determined locally. |
period | maximum time in milliseconds between location reports. WPS will invoke the callback at least every period, either with a location update or with an error if no location can be determined. WPS may report location updates more often than the user period if a new or better location becomes available within a given period. This parameter is also used to specify the preferred Wi-Fi scan period, which WPS may override for optimal performance and power savings. |
iterations | number of times a location is to be reported. A value of zero indicates an unlimited number of iterations. |
callback | the callback routine to report locations to. |
arg | an opaque parameter passed to the callback routine. |
WPS_ReturnCode
period
must be strictly greater than 0.callback
returns WPS_STOP
.WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_register_user | ( | const WPS_SimpleAuthentication * | authentication, |
const WPS_SimpleAuthentication * | new_authentication | ||
) |
Register a new user.
WPS_set_key()
and WPS_set_auth()
authentication | an existing user's authentication information. |
new_authentication | the new user's authentication information or NULL to trigger auto-registration. |
WPS_ReturnCode
WPS_register_user()
, maybe during initialization of the application. For example: wpsUser
can be used in any WPS_*
calls. For example: WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_auth | ( | const char * | key, |
const char * | sku | ||
) |
Set the user's authentication information.
key | an existing user's API key. |
sku | product's SKU. |
Make sure to call this method before making any other calls, such as during initialization of the application.
After this call you should pass NULL
as authentication
to other calls like WPS_location
.
WPS_set_auth()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_auth_token | ( | const char * | token | ) |
Set the user's authentication token.
key | an existing user's authentication token. |
This authentication method is only supported in custom API server environments.
Make sure to call this method before making any other calls, such as during initialization of the application.
After this call you should pass NULL
as authentication
to other calls like WPS_location
.
WPS_set_key()
and WPS_set_auth()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_key | ( | const char * | key | ) |
Set the user's API key.
key | an existing user's API key. |
Make sure to call this method before making any other calls, such as during initialization of the application.
After this call you should pass NULL
as authentication
to other calls like WPS_location
.
WPS_set_auth()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_local_files_path | ( | const char ** | paths | ) |
Set the path to local files so location determination can be performed locally.
paths | an array (terminated by NULL ) of complete path to local files. This array replaces all previous values. Use NULL to clear and release local files. |
WPS_ReturnCode
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_proxy | ( | const char * | address, |
int | port, | ||
const char * | user, | ||
const char * | password | ||
) |
Setup a proxy server.
address | the internet address of the proxy server. |
port | the TCP port number of the proxy server. |
user | the username to authenticate with the proxy server. |
password | the password to authentication with the proxy server. |
user
and password
are optional and can be set to NULL
for un-authenticated proxy servers.WPS_ReturnCode
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_registration_user | ( | const WPS_SimpleAuthentication * | authentication | ) |
Set the user's authentication information.
WPS_set_key()
and WPS_set_auth()
authentication | an existing user's authentication information. |
Make sure to call this method before making any other calls, such as during initialization of the application.
After this call you should pass NULL
as authentication
to other calls like WPS_location
.
WPS_set_key()
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_server_url | ( | const char * | url | ) |
Overwrite the WPS server's url from its default value.
url | the url to the server. A value of NULL turns off remote determination of location. |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_tier2_area | ( | const char * | dirpath, |
unsigned | size | ||
) |
Setup the tier2 area.
dirpath | the path to a directory to store the tier2 files. |
size | the approximate max total size of the tier2 files, in kilobytes. |
WPS_ReturnCode
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_tiling | ( | const WPS_SimpleAuthentication * | authentication, |
const char * | dirpath, | ||
unsigned | maxDataSizePerSession, | ||
unsigned | maxDataSizeTotal, | ||
WPS_TilingCallback | callback, | ||
void * | arg | ||
) |
Setup tiling so location determination can be performed locally.
Tiles are managed automatically (download of new tiles when required and remove of old tiles) by WPS_location
and WPS_periodic_location
.
authentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
dirpath | the path to a directory to store tiles. dirpath must end with a directory separator character. (i.e. '\' on Windows platforms and '/' on Unix platforms) |
maxDataSizePerSession | the maximum size of data downloaded per session, in bytes. A value of 0 disables any further tile downloads. |
maxDataSizeTotal | the maximum size of all stored tiles, in bytes. A value of 0 causes all stored tiles to be deleted. |
callback | the callback function to control the tile download. By default, all tiles are downloaded. |
arg | the opaque parameter to pass to the callback function. |
maxDataSizePerSession
to 450KB, i.e. 460,800. maxDataSizePerSession
be a factor of 2 - 10 smaller than maxDataSizeTotal
, so that tiles from several areas can be cached. WPS_ReturnCode
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_tunable | ( | const char * | key, |
const char * | value | ||
) |
Set a tunable value.
WPS_ReturnCode
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_user_agent | ( | const char * | ua | ) |
Overwrite the default user agent of the requests going to the server.
ua | the user agent string. |
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_signed_certified_location | ( | const WPS_SimpleAuthentication * | authentication, |
WPS_StreetAddressLookup | street_address_lookup, | ||
const unsigned char * | salt, | ||
unsigned | saltLen, | ||
WPS_CertifiedLocationCallback | callback, | ||
void * | arg | ||
) |
Requests certified geographic location updates that are signed by Skyhook's servers. The user may verify the signature of the returned location using Skyhook's public certificate.
signature
in WPS_Location
for details on the format of the signature.example/CertifiedSignatureTestJava
and example/CertifiedSignatureTestPhp
directoriesauthentication | must be NULL for new applications that use WPS_set_key() or WPS_set_auth() , otherwise set to the user's authentication information. |
street_address_lookup | request street address lookup in addition to latitude/longitude lookup Note that street address lookup is only performed when the location is determined by the remote server (network-centric model), not when the location is determined locally. |
salt | random data that is used as an additional input to the hash of the returned location. |
saltLen | length of the salt. |
callback | the callback routine to report locations to. |
arg | an opaque parameter passed to the callback routine. |
WPS_ReturnCode
callback
returns WPS_STOP
. salt
is a mandatory parameter and will return WPS_ERROR
if salt
is NULL
or saltLen
is not greater than 0. WPS_ERROR_NOT_SIGNED
is returned to WPS_CertifiedLocationCallback
if the local time is outside of the acceptable range.WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_tiling | ( | const char * | dirpath, |
unsigned | maxDataSizePerSession, | ||
unsigned | maxDataSizeTotal, | ||
WPS_TilingCallback | callback, | ||
void * | arg | ||
) |
WPS_set_tiling()
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_tune_location | ( | const WPS_SimpleAuthentication * | authentication, |
const WPS_Location * | location | ||
) |
Tune the last location returned.
authentication | an existing user's authentication information. |
location | the tuned location. |
WPS_ReturnCode
location
during the entire duration of this call. Note that pure GPS locations will not reflect any tuning. WPSAPI_EXPORT void WPSAPI_CALL WPS_unload | ( | ) |
Releases all resources consumed by WPS API and stops any background activity. Must be called before the calling application or module is unloaded.
WPSAPI_EXPORT const char* WPSAPI_CALL WPS_version | ( | ) |
Return a string containing the version information as <major>.<minor>.<revision>.<build>