PSPSDK 2024-10-31
Loading...
Searching...
No Matches
psputility_netparam.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
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 */
12#ifndef __PSPUTILITY_NETPARAM_H__
13#define __PSPUTILITY_NETPARAM_H__
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include <psptypes.h>
20
26typedef union {
28 char asString[128];
29} netData;
30
31#define PSP_NETPARAM_NAME 0 // string
32#define PSP_NETPARAM_SSID 1 // string
33#define PSP_NETPARAM_SECURE 2 // int
34#define PSP_NETPARAM_WEPKEY 3 // string
35#define PSP_NETPARAM_IS_STATIC_IP 4 // int
36#define PSP_NETPARAM_IP 5 // string
37#define PSP_NETPARAM_NETMASK 6 // string
38#define PSP_NETPARAM_ROUTE 7 // string
39#define PSP_NETPARAM_MANUAL_DNS 8 // int
40#define PSP_NETPARAM_PRIMARYDNS 9 // string
41#define PSP_NETPARAM_SECONDARYDNS 10 // string
42#define PSP_NETPARAM_PROXY_USER 11 // string
43#define PSP_NETPARAM_PROXY_PASS 12 // string
44#define PSP_NETPARAM_USE_PROXY 13 // int
45#define PSP_NETPARAM_PROXY_SERVER 14 // string
46#define PSP_NETPARAM_PROXY_PORT 15 // int
47#define PSP_NETPARAM_UNKNOWN1 16 // int
48#define PSP_NETPARAM_UNKNOWN2 17 // int
49
50#define PSP_NETPARAM_ERROR_BAD_NETCONF 0x80110601
51#define PSP_NETPARAM_ERROR_BAD_PARAM 0x80110604
52
60
71
81
91int sceUtilitySetNetParam(int param, const void *val);
92
102
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif
float x
Definition psptypes.h:0
uint32_t u32
Definition psptypes.h:41
int sceUtilityDeleteNetParam(int conf)
Deletes a Network Configuration.
int sceUtilityCopyNetParam(int src, int dest)
Copies a Network Configuration to another.
int sceUtilitySetNetParam(int param, const void *val)
Sets a network parameter.
int sceUtilityCheckNetParam(int id)
Check existance of a Net Configuration.
int sceUtilityCreateNetParam(int conf)
Create a new Network Configuration.
int sceUtilityGetNetParam(int conf, int param, netData *data)
Get Net Configuration Parameter.
Datatype for sceUtilityGetNetParam since it can return a u32 or a string we use a union to avoid ugly...
Definition psputility_netparam.h:26
u32 asUint
Definition psputility_netparam.h:27