psputility_netconf.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_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 2493 2010-02-19 02:04:00Z jim $
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 {
00024         PSP_NETCONF_ACTION_CONNECTAP,
00025         PSP_NETCONF_ACTION_DISPLAYSTATUS,
00026         PSP_NETCONF_ACTION_CONNECT_ADHOC
00027 #if _PSP_FW_VERSION >= 200
00028     ,PSP_NETCONF_ACTION_CONNECTAP_LASTUSED
00029 #endif
00030 };
00031 
00032 struct pspUtilityNetconfAdhoc
00033 {
00034         unsigned char name[8];
00035         unsigned int timeout;
00036 };
00037 
00038 typedef struct _pspUtilityNetconfData
00039 {
00040         pspUtilityDialogCommon base;
00041         int action; 
00042         struct pspUtilityNetconfAdhoc *adhocparam; //* Adhoc connection params */
00043         int hotspot; 
00044         int hotspot_connected; 
00045         int wifisp; 
00047 } pspUtilityNetconfData;
00048 
00055 int sceUtilityNetconfInitStart (pspUtilityNetconfData *data);
00056 
00062 int sceUtilityNetconfShutdownStart (void);
00063 
00070 int sceUtilityNetconfUpdate (int unknown);
00071 
00077 int sceUtilityNetconfGetStatus (void);
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 #endif