PL SDK - Software Development Kit
5.4.0
API Reference
|
Go to the documentation of this file.
66 #if defined WPSAPI_EXTENSION && !defined WPSAPI_STATIC
67 # error WPSAPI_EXTENSION can be used only with WPSAPI_STATIC
74 #if defined WPSAPI_STATIC && !defined WPSAPI_EXTENSION
75 # define WPSAPI_EXPORT
78 # define WPSAPI_EXPORT __attribute__((visibility("default")))
80 # ifdef WPSAPI_INTERNAL
81 # define WPSAPI_EXPORT __declspec(dllexport)
83 # define WPSAPI_EXPORT __declspec(dllimport)
86 # define WPSAPI_EXPORT
91 # define WPSAPI_CALL __cdecl
711 WPSAPI_EXPORT
const char* WPSAPI_CALL
732 WPSAPI_EXPORT
void WPSAPI_CALL
814 const void* reserved);
837 const void* reserved);
899 unsigned long period,
975 const unsigned char* salt,
1093 const unsigned char* key,
1094 unsigned key_length,
1095 unsigned char** token,
1096 unsigned* token_size);
1163 const unsigned char* key,
1164 unsigned key_length,
1165 const unsigned char* token,
1166 unsigned token_size,
1174 WPSAPI_EXPORT
void WPSAPI_CALL
1180 WPSAPI_EXPORT
void WPSAPI_CALL
1186 WPSAPI_EXPORT
void WPSAPI_CALL
1202 WPSAPI_EXPORT
void WPSAPI_CALL
1206 const char* password);
1215 WPSAPI_EXPORT
void WPSAPI_CALL
1225 WPSAPI_EXPORT
void WPSAPI_CALL
1305 unsigned tileNumber,
1306 unsigned tileTotal);
1368 const char* dirpath,
1369 unsigned maxDataSizePerSession,
1370 unsigned maxDataSizeTotal,
1381 unsigned maxDataSizePerSession,
1382 unsigned maxDataSizeTotal,
1733 const void* reserved);
1841 #endif // _WPSAPI_H_
const char * realm
Definition: wpsapi.h:268
Definition: wpsapi.h:1630
WPS_Continuation
Definition: wpsapi.h:249
double latitude
Definition: wpsapi.h:690
double longitude
Definition: wpsapi.h:1650
@ WPS_ERROR_FILE_IO
Definition: wpsapi.h:156
unsigned short nlac
Definition: wpsapi.h:481
@ WPS_GEOFENCE_ERROR
Definition: wpsapi.h:186
double latitude
Definition: wpsapi.h:414
@ WPS_ERROR_LOCATION_CANNOT_BE_DETERMINED
Definition: wpsapi.h:144
@ WPS_NOMEM
Definition: wpsapi.h:235
unsigned char * signature
Definition: wpsapi.h:624
@ WPS_ERROR_INVALID_FILE_FORMAT
Definition: wpsapi.h:163
WPS_ReturnCode
Definition: wpsapi.h:108
char * province
Definition: wpsapi.h:364
@ WPS_ERROR
Definition: wpsapi.h:240
@ WPS_ERROR_LOCATION_SETTING_DISABLED
Definition: wpsapi.h:207
WPS_NameCode state
Definition: wpsapi.h:369
char * street_number
Definition: wpsapi.h:327
@ WPS_ERROR_SERVICE_EXPIRED
Definition: wpsapi.h:228
double latitude
Definition: wpsapi.h:1649
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_geofence_cancel(WPS_GeoFenceHandle handle)
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)
WPS_StreetAddress * street_address
Definition: wpsapi.h:700
@ WPS_LOCATION_TYPE_3D
Definition: wpsapi.h:402
unsigned radius
Definition: wpsapi.h:1656
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_tiling(const char *dirpath, unsigned maxDataSizePerSession, unsigned maxDataSizeTotal, WPS_TilingCallback callback, void *arg)
WPS_Continuation(WPSAPI_CALL * WPS_CertifiedLocationCallback)(void *arg, WPS_ReturnCode code, const WPS_Location **locations, unsigned nlocations, const void *reserved)
Definition: wpsapi.h:833
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)
WPS_StreetAddressLookup
Definition: wpsapi.h:280
@ WPS_GEOFENCE_ENTER
Definition: wpsapi.h:1600
@ WPS_ERROR_TIMEOUT
Definition: wpsapi.h:170
char * ip
Definition: wpsapi.h:684
WPS_NameCode country
Definition: wpsapi.h:379
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_certified_location(const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_CertifiedLocationCallback callback, void *arg)
@ WPS_ERROR_SERVER_UNAVAILABLE
Definition: wpsapi.h:139
@ WPS_NOT_APPLICABLE
Definition: wpsapi.h:177
char * county
Definition: wpsapi.h:359
void * WPS_GeoFenceHandle
Definition: wpsapi.h:1679
WPSAPI_EXPORT void WPSAPI_CALL WPS_free_location(WPS_Location *)
unsigned short ncell
Definition: wpsapi.h:474
unsigned long timestamp
Definition: wpsapi.h:645
WPS_GeoFenceType
Definition: wpsapi.h:1596
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_proxy(const char *address, int port, const char *user, const char *password)
unsigned size
Definition: wpsapi.h:1643
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_load()
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)
char * postal_code
Definition: wpsapi.h:354
@ WPS_LOCATION_TYPE_2D
Definition: wpsapi.h:401
@ WPS_STOP
Definition: wpsapi.h:250
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_register_user(const WPS_SimpleAuthentication *authentication, const WPS_SimpleAuthentication *new_authentication)
@ WPS_NOT_SUPPORTED
Definition: wpsapi.h:221
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_ip_location(const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_IPLocation **location)
@ WPS_ERROR_SCANNER_NOT_FOUND
Definition: wpsapi.h:119
@ WPS_ERROR_UNAUTHORIZED
Definition: wpsapi.h:134
char * region
Definition: wpsapi.h:374
@ WPS_OK
Definition: wpsapi.h:112
unsigned char * hash
Definition: wpsapi.h:540
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_tune_location(const WPS_SimpleAuthentication *authentication, const WPS_Location *location)
@ WPS_ERROR_NO_WIFI_IN_RANGE
Definition: wpsapi.h:129
WPS_GeoFenceType type
Definition: wpsapi.h:1661
unsigned char withIP
Definition: wpsapi.h:503
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_location(const WPS_SimpleAuthentication *authentication, WPS_StreetAddressLookup street_address_lookup, WPS_Location **location)
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_server_url(const char *url)
unsigned hashLength
Definition: wpsapi.h:549
@ WPS_ERROR_LOCATION_NOT_PERMITTED
Definition: wpsapi.h:214
WPS_Continuation(WPSAPI_CALL * WPS_LocationCallback)(void *arg, WPS_ReturnCode code, const WPS_Location *location, const void *reserved)
Definition: wpsapi.h:811
@ WPS_GEOFENCE_INSIDE
Definition: wpsapi.h:1613
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)
@ WPS_FULL_STREET_ADDRESS_LOOKUP
Definition: wpsapi.h:296
WPSAPI_EXPORT void WPSAPI_CALL WPS_unload()
@ WPS_ERROR_NOT_TUNED
Definition: wpsapi.h:193
double hpe
Definition: wpsapi.h:422
char * name
Definition: wpsapi.h:307
double longitude
Definition: wpsapi.h:691
unsigned id
Definition: wpsapi.h:520
@ WPS_GEOFENCE_LEAVE
Definition: wpsapi.h:1605
const char * username
Definition: wpsapi.h:263
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 void WPSAPI_CALL WPS_free_offline_token(unsigned char *token)
unsigned long period
Definition: wpsapi.h:1671
unsigned signatureLength
Definition: wpsapi.h:633
char ** address_line
Definition: wpsapi.h:332
WPS_LocationType type
Definition: wpsapi.h:659
unsigned char hasScore
Definition: wpsapi.h:510
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_tunable(const char *key, const char *value)
WPSAPI_EXPORT const char *WPSAPI_CALL WPS_version()
double altitude
Definition: wpsapi.h:652
unsigned short historicalLocationCount
Definition: wpsapi.h:495
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_key(const char *key)
WPS_StreetAddress * street_address
Definition: wpsapi.h:467
double speed
Definition: wpsapi.h:448
unsigned long age
Definition: wpsapi.h:667
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_all()
unsigned short nsat
Definition: wpsapi.h:488
@ WPS_GEOFENCE_OUTSIDE
Definition: wpsapi.h:1621
WPSAPI_EXPORT void WPSAPI_CALL WPS_free_ip_location(WPS_IPLocation *)
WPSAPI_EXPORT void WPSAPI_CALL WPS_set_user_agent(const char *ua)
@ WPS_CONTINUE
Definition: wpsapi.h:251
@ WPS_ERROR_PROXY_UNAUTHORIZED
Definition: wpsapi.h:149
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_auth(const char *key, const char *sku)
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_local_files_path(const char **paths)
WPS_Continuation(WPSAPI_CALL * WPS_GeoFenceCallback)(void *arg, const WPS_GeoFence *geofence, const WPS_Location *location, const void *reserved)
Definition: wpsapi.h:1730
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_registration_user(const WPS_SimpleAuthentication *authentication)
double longitude
Definition: wpsapi.h:415
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_tier2_area(const char *dirpath, unsigned size)
@ WPS_ERROR_NOT_SIGNED
Definition: wpsapi.h:200
char * city_sub
Definition: wpsapi.h:391
WPS_Continuation(WPSAPI_CALL * WPS_TilingCallback)(void *arg, unsigned tileNumber, unsigned tileTotal)
Definition: wpsapi.h:1304
@ WPS_ERROR_WIFI_NOT_AVAILABLE
Definition: wpsapi.h:124
char * ip
Definition: wpsapi.h:530
double bearing
Definition: wpsapi.h:458
@ WPS_NO_STREET_ADDRESS_LOOKUP
Definition: wpsapi.h:284
WPS_LocationType
Definition: wpsapi.h:400
char * city
Definition: wpsapi.h:349
@ WPS_LIMITED_STREET_ADDRESS_LOOKUP
Definition: wpsapi.h:290
unsigned short nap
Definition: wpsapi.h:439
WPSAPI_EXPORT WPS_ReturnCode WPSAPI_CALL WPS_set_auth_token(const char *token)
double score
Definition: wpsapi.h:432