pspsdk-1.0+beta2
psputility_netparam.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * psputility_netparam.h - Definitions and Functions to manage Network
7  * parameters.
8  *
9  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
10  *
11  * $Id: psputility_netparam.h 2433 2008-10-15 10:00:27Z iwn $
12  */
13 #ifndef __PSPUTILITY_NETPARAM_H__
14 #define __PSPUTILITY_NETPARAM_H__
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <psptypes.h>
21 
27 typedef union {
29  char asString[128];
30 } netData;
31 
32 #define PSP_NETPARAM_NAME 0 // string
33 #define PSP_NETPARAM_SSID 1 // string
34 #define PSP_NETPARAM_SECURE 2 // int
35 #define PSP_NETPARAM_WEPKEY 3 // string
36 #define PSP_NETPARAM_IS_STATIC_IP 4 // int
37 #define PSP_NETPARAM_IP 5 // string
38 #define PSP_NETPARAM_NETMASK 6 // string
39 #define PSP_NETPARAM_ROUTE 7 // string
40 #define PSP_NETPARAM_MANUAL_DNS 8 // int
41 #define PSP_NETPARAM_PRIMARYDNS 9 // string
42 #define PSP_NETPARAM_SECONDARYDNS 10 // string
43 #define PSP_NETPARAM_PROXY_USER 11 // string
44 #define PSP_NETPARAM_PROXY_PASS 12 // string
45 #define PSP_NETPARAM_USE_PROXY 13 // int
46 #define PSP_NETPARAM_PROXY_SERVER 14 // string
47 #define PSP_NETPARAM_PROXY_PORT 15 // int
48 #define PSP_NETPARAM_UNKNOWN1 16 // int
49 #define PSP_NETPARAM_UNKNOWN2 17 // int
50 
51 #define PSP_NETPARAM_ERROR_BAD_NETCONF 0x80110601
52 #define PSP_NETPARAM_ERROR_BAD_PARAM 0x80110604
53 
60 int sceUtilityCheckNetParam(int id);
61 
71 int sceUtilityGetNetParam(int conf, int param, netData *data);
72 
81 int sceUtilityCreateNetParam(int conf);
82 
92 int sceUtilitySetNetParam(int param, const void *val);
93 
102 int sceUtilityCopyNetParam(int src, int dest);
103 
111 int sceUtilityDeleteNetParam(int conf);
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif