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: psputility_netconf.h 1888 2006-05-01 08:47:04Z tyranid $ 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 PSP_NETCONF_ACTION_CONNECT_ADHOC 00026 }; 00027 00028 enum pspUtilityNetconfStatus { 00029 PSP_NETCONF_STATUS_INIT = 1, 00030 PSP_NETCONF_STATUS_RUNNING, 00031 PSP_NETCONF_STATUS_FINISHED 00032 }; 00033 00034 typedef struct _pspUtilityNetconfData { 00035 u32 size; 00036 int language; 00037 int buttonSwap; 00038 int unknown[4]; 00039 int result; 00040 int unknown2[4]; 00041 int action; //one of pspUtilityNetconfActions 00042 u32 unknown3; 00043 } pspUtilityNetconfData; 00044 00051 int sceUtilityNetconfInitStart (pspUtilityNetconfData *data); 00052 00058 int sceUtilityNetconfShutdownStart (void); 00059 00066 int sceUtilityNetconfUpdate (int unknown); 00067 00073 int sceUtilityNetconfGetStatus (void); 00074 00075 #ifdef __cplusplus 00076 } 00077 #endif 00078 00079 #endif