# psputility_sysparam.h

Go to the documentation of this file.

    00001 /*
    00002  * PSP Software Development Kit - http://www.pspdev.org
    00003  * -----------------------------------------------------------------------
    00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
    00005  *
    00006  *  psputility_sysparam.h - Definitions and Functions for System Paramters
    00007  *                          section of the pspUtility library
    00008  *
    00009  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
    00010  *
    00011  * $Id$
    00012  */
    00013 #ifndef __PSPUTILITY_SYSPARAM_H__
    00014 #define __PSPUTILITY_SYSPARAM_H__
    00015
    00016 #ifdef __cplusplus
    00017 extern "C" {
    00018 #endif
    00019
    00020 #include <psptypes.h>
    00021
    00027 #define PSP_SYSTEMPARAM_ID_STRING_NICKNAME      1
    00028 #define PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL    2
    00029 #define PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE   3
    00030 #define PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT      4
    00031 #define PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT      5
    00032 //Timezone offset from UTC in minutes, (EST = -300 = -5 * 60)
    00033 #define PSP_SYSTEMPARAM_ID_INT_TIMEZONE         6
    00034 #define PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS  7
    00035 #define PSP_SYSTEMPARAM_ID_INT_LANGUAGE         8
    00036
    00043 #define PSP_SYSTEMPARAM_ID_INT_UNKNOWN          9
    00044
    00048 #define PSP_SYSTEMPARAM_RETVAL_OK       0
    00049 #define PSP_SYSTEMPARAM_RETVAL_FAIL     0x80110103
    00050
    00054 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC 0
    00055 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_1         1
    00056 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_6         6
    00057 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_11        11
    00058
    00062 #define PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF      0
    00063 #define PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON       1
    00064
    00068 #define PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD    0
    00069 #define PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY    1
    00070 #define PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY    2
    00071
    00075 #define PSP_SYSTEMPARAM_TIME_FORMAT_24HR        0
    00076 #define PSP_SYSTEMPARAM_TIME_FORMAT_12HR        1
    00077
    00081 #define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD     0
    00082 #define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING  1
    00083
    00087 #define PSP_SYSTEMPARAM_LANGUAGE_JAPANESE       0
    00088 #define PSP_SYSTEMPARAM_LANGUAGE_ENGLISH        1
    00089 #define PSP_SYSTEMPARAM_LANGUAGE_FRENCH         2
    00090 #define PSP_SYSTEMPARAM_LANGUAGE_SPANISH        3
    00091 #define PSP_SYSTEMPARAM_LANGUAGE_GERMAN         4
    00092 #define PSP_SYSTEMPARAM_LANGUAGE_ITALIAN        5
    00093 #define PSP_SYSTEMPARAM_LANGUAGE_DUTCH          6
    00094 #define PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE     7
    00095 #define PSP_SYSTEMPARAM_LANGUAGE_KOREAN         8
    00096
    00104 int sceUtilitySetSystemParamInt(int id, int value);
    00105
    00113 int sceUtilitySetSystemParamString(int id, const char *str);
    00114
    00122 int sceUtilityGetSystemParamInt( int id, int *value );
    00123
    00132 int sceUtilityGetSystemParamString(int id, char *str, int len);
    00133
    00134 #ifdef __cplusplus
    00135 }
    00136 #endif
    00137
    00138 #endif