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_netconf.h - Definitions and Functions for Network Configuration 00007 * section of the pspUtility library 00008 * 00009 * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca> 00010 * 00011 * $Id$ 00012 */ 00013 #ifndef __PSPUTILITY_NETCONF_H__ 00014 #define __PSPUTILITY_NETCONF_H__ 00015 00016 #ifdef __cplusplus 00017 extern "C" { 00018 #endif 00019 00020 #include <psptypes.h> 00021 00022 enum pspUtilityNetconfActions { 00023 PSP_NETCONF_ACTION_CONNECTAP, 00024 PSP_NETCONF_ACTION_DISPLAYSTATUS 00025 }; 00026 00027 enum pspUtilityNetconfStatus { 00028 PSP_NETCONF_STATUS_INIT = 1, 00029 PSP_NETCONF_STATUS_RUNNING, 00030 PSP_NETCONF_STATUS_FINISHED 00031 }; 00032 00033 typedef struct _pspUtilityNetconfData { 00034 u32 size; 00035 int language; 00036 int buttonSwap; 00037 int unknown[4]; 00038 int result; 00039 int unknown2[4]; 00040 int action; //one of pspUtilityNetconfActions 00041 u32 unknown3; 00042 } pspUtilityNetconfData; 00043 00050 int sceUtilityNetconfInitStart (pspUtilityNetconfData *data); 00051 00057 int sceUtilityNetconfShutdownStart (void); 00058 00065 int sceUtilityNetconfUpdate (int unknown); 00066 00072 int sceUtilityNetconfGetStatus (void); 00073 00074 #ifdef __cplusplus 00075 } 00076 #endif 00077 00078 #endif