vitasdk
Documentation of the vitasdk
location.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>
#include <psp2/rtc.h>

Go to the source code of this file.

Data Structures

struct  SceLocationLocationInfo
 Structure of location information. More...
 
struct  SceLocationHeadingInfo
 Structure of heading information. More...
 
struct  SceLocationPermissionInfo
 Location information acquisition permission information. More...
 

Macros

#define SCE_LOCATION_DATA_INVALID   (-9999.0)
 

Typedefs

typedef SceUInt32 SceLocationHandle
 Location handle datatype. More...
 
typedef void(* SceLocationLocationInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationLocationInfo *location, void *userdata)
 Location information callback notification function. More...
 
typedef void(* SceLocationHeadingInfoCallback) (SceInt32 result, SceLocationHandle handle, const SceLocationHeadingInfo *heading, void *userdata)
 Callback notification function for direction information. More...
 

Enumerations

enum  SceLocationErrorCode {
  SCE_LOCATION_SUCCESS = 0 , SCE_LOCATION_INFO_UNDETERMINED_LOCATION = 0x80101200 , SCE_LOCATION_INFO_INSUFFICIENT_INFORMATION = 0x80101201 , SCE_LOCATION_INFO_GET_LOCATION_CANCELED = 0x80101202 ,
  SCE_LOCATION_INFO_DENIED_BY_USER = 0x80101203 , SCE_LOCATION_ERROR_INVALID_ADDRESS = 0x80101204 , SCE_LOCATION_ERROR_INVALID_HANDLE = 0x80101205 , SCE_LOCATION_ERROR_NO_MEMORY = 0x80101206 ,
  SCE_LOCATION_ERROR_TOO_MANY_HANDLES = 0x80101207 , SCE_LOCATION_ERROR_INVALID_LOCATION_METHOD = 0x80101208 , SCE_LOCATION_ERROR_INVALID_HEADING_METHOD = 0x80101209 , SCE_LOCATION_ERROR_MULTIPLE_CALLBACK = 0x8010120A ,
  SCE_LOCATION_ERROR_NOT_RUNNING_CALLBACK = 0x8010120B , SCE_LOCATION_ERROR_DIALOG_RESULT_NONE = 0x8010120C , SCE_LOCATION_ERROR_DISABLE_APPLICATION = 0x8010120D , SCE_LOCATION_ERROR_MULTIPLE_CONFIRM = 0x8010120E ,
  SCE_LOCATION_ERROR_UNAUTHORIZED = 0x80101280 , SCE_LOCATION_ERROR_PROVIDER_UNAVAILABLE = 0x80101281 , SCE_LOCATION_ERROR_FILE_IO = 0x80101282 , SCE_LOCATION_ERROR_INVALID_FILE_FORMAT = 0x80101283 ,
  SCE_LOCATION_ERROR_TIME_OUT = 0x80101284 , SCE_LOCATION_ERROR_NO_SERVER_MEMORY = 0x80101285 , SCE_LOCATION_ERROR_INVALID_TITLE_ID = 0x80101286 , SCE_LOCATION_ERROR_FATAL_ERROR = 0x801012FF
}
 Location error codes. More...
 
enum  SceLocationDialogStatus { SCE_LOCATION_DIALOG_STATUS_IDLE = 0 , SCE_LOCATION_DIALOG_STATUS_RUNNING = 1 , SCE_LOCATION_DIALOG_STATUS_FINISHED = 2 , __SCE_LOCATION_DIALOG_STATUS = 0xFFFFFFFF }
 Usage permission dialog display status. More...
 
enum  SceLocationDialogResult { SCE_LOCATION_DIALOG_RESULT_NONE = 0 , SCE_LOCATION_DIALOG_RESULT_DISABLE = 1 , SCE_LOCATION_DIALOG_RESULT_ENABLE = 2 , __SCE_LOCATION_DIALOG_RESULT = 0xFFFFFFFF }
 Usage permission dialog result. More...
 
enum  SceLocationPermissionApplicationStatus {
  SCE_LOCATION_PERMISSION_APPLICATION_NONE = 0 , SCE_LOCATION_PERMISSION_APPLICATION_INIT = 1 , SCE_LOCATION_PERMISSION_APPLICATION_DENY = 2 , SCE_LOCATION_PERMISSION_APPLICATION_ALLOW = 3 ,
  __SCE_LOCATION_PERMISSION_APPLICATION = 0xFFFFFFFF
}
 location usage permission status for individual application More...
 
enum  SceLocationPermissionStatus { SCE_LOCATION_PERMISSION_DENY = 0 , SCE_LOCATION_PERMISSION_ALLOW = 1 , __SCE_LOCATION_PERMISSION = 0xFFFFFFFF }
 location usage permission status More...
 
enum  SceLocationLocationMethod {
  SCE_LOCATION_LMETHOD_NONE = 0 , SCE_LOCATION_LMETHOD_AGPS_AND_3G_AND_WIFI = 1 , SCE_LOCATION_LMETHOD_GPS_AND_WIFI = 2 , SCE_LOCATION_LMETHOD_WIFI = 3 ,
  SCE_LOCATION_LMETHOD_3G = 4 , SCE_LOCATION_LMETHOD_GPS = 5 , __SCE_LOCATION_LMETHOD = 0xFFFFFFFF
}
 Location measurement method. More...
 
enum  SceLocationHeadingMethod {
  SCE_LOCATION_HMETHOD_NONE = 0 , SCE_LOCATION_HMETHOD_AUTO = 1 , SCE_LOCATION_HMETHOD_VERTICAL = 2 , SCE_LOCATION_HMETHOD_HORIZONTAL = 3 ,
  SCE_LOCATION_HMETHOD_CAMERA = 4 , __SCE_LOCATION_HMETHOD = 0xFFFFFFFF
}
 Direction measurement method. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (4, SceLocationHandle)
 
 VITASDK_BUILD_ASSERT_EQ (0x30, SceLocationLocationInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceLocationHeadingInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x14, SceLocationPermissionInfo)
 
SceInt32 sceLocationOpen (SceLocationHandle *handle, SceLocationLocationMethod locateMethod, SceLocationHeadingMethod headingMethod)
 Functions. More...
 
SceInt32 sceLocationClose (SceLocationHandle handle)
 Close library. More...
 
SceInt32 sceLocationReopen (SceLocationHandle handle, SceLocationLocationMethod locateMethod, SceLocationHeadingMethod headingMethod)
 Reopen library. More...
 
SceInt32 sceLocationGetMethod (SceLocationHandle handle, SceLocationLocationMethod *locateMethod, SceLocationHeadingMethod *headingMethod)
 Get location measurement method. More...
 
SceInt32 sceLocationGetLocation (SceLocationHandle handle, SceLocationLocationInfo *locationInfo)
 Get location information. More...
 
SceInt32 sceLocationCancelGetLocation (SceLocationHandle handle)
 Cancel location information acquisition operation. More...
 
SceInt32 sceLocationStartLocationCallback (SceLocationHandle handle, SceUInt32 distance, SceLocationLocationInfoCallback callback, void *userdata)
 Start continuous acquisition of location information. More...
 
SceInt32 sceLocationStopLocationCallback (SceLocationHandle handle)
 Stop continuous acquisition of location information. More...
 
SceInt32 sceLocationGetHeading (SceLocationHandle handle, SceLocationHeadingInfo *headingInfo)
 Get direction information. More...
 
SceInt32 sceLocationStartHeadingCallback (SceLocationHandle handle, SceUInt32 difference, SceLocationHeadingInfoCallback callback, void *userdata)
 Start continuous acquisition of direction information. More...
 
SceInt32 sceLocationStopHeadingCallback (SceLocationHandle handle)
 Stop continuous acquisition of direction information. More...
 
SceInt32 sceLocationConfirm (SceLocationHandle handle)
 Allow acquisition of location information. More...
 
SceInt32 sceLocationConfirmGetStatus (SceLocationHandle handle, SceLocationDialogStatus *status)
 Get status of location information acquisition permission dialog. More...
 
SceInt32 sceLocationConfirmGetResult (SceLocationHandle handle, SceLocationDialogResult *result)
 Get result of location information acquisition permission dialog. More...
 
SceInt32 sceLocationConfirmAbort (SceLocationHandle handle)
 Abort location information acquisition permission dialog. More...
 
SceInt32 sceLocationGetPermission (SceLocationHandle handle, SceLocationPermissionInfo *info)
 Get location information acquisition permission/refusal information. More...
 
SceInt32 sceLocationSetGpsEmulationFile (unsigned char *filename)
 Get location information acquisition permission information. More...