# psputility_netparam.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_netparam.h - Definitions and Functions to manage Network
    00007  *                          parameters.
    00008  *
    00009  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
    00010  *
    00011  * $Id: psputility_netparam.h 1095 2005-09-27 21:02:16Z jim $
    00012  */
    00013 #ifndef __PSPUTILITY_NETPARAM_H__
    00014 #define __PSPUTILITY_NETPARAM_H__
    00015
    00016 #ifdef __cplusplus
    00017 extern "C" {
    00018 #endif
    00019
    00020 #include <psptypes.h>
    00021
    00027 typedef union {
    00028         u32 asUint;
    00029         char asString[128];
    00030 } netData;
    00031
    00032 #define PSP_NETPARAM_NAME          0 // string
    00033 #define PSP_NETPARAM_SSID          1 // string
    00034 #define PSP_NETPARAM_SECURE        2 // int
    00035 #define PSP_NETPARAM_WEPKEY        3 // string
    00036 #define PSP_NETPARAM_IS_STATIC_IP  4 // int
    00037 #define PSP_NETPARAM_IP            5 // string
    00038 #define PSP_NETPARAM_NETMASK       6 // string
    00039 #define PSP_NETPARAM_ROUTE         7 // string
    00040 #define PSP_NETPARAM_MANUAL_DNS    8 // int
    00041 #define PSP_NETPARAM_PRIMARYDNS    9 // string
    00042 #define PSP_NETPARAM_SECONDARYDNS 10 // string
    00043 #define PSP_NETPARAM_PROXY_USER   11 // string
    00044 #define PSP_NETPARAM_PROXY_PASS   12 // string
    00045 #define PSP_NETPARAM_USE_PROXY    13 // int
    00046 #define PSP_NETPARAM_PROXY_SERVER 14 // string
    00047 #define PSP_NETPARAM_PROXY_PORT   15 // int
    00048 #define PSP_NETPARAM_UNKNOWN1     16 // int
    00049 #define PSP_NETPARAM_UNKNOWN2     17 // int
    00050
    00051 #define PSP_NETPARAM_ERROR_BAD_NETCONF  0x80110601
    00052 #define PSP_NETPARAM_ERROR_BAD_PARAM    0x80110604
    00053
    00060 int sceUtilityCheckNetParam(int id);
    00061
    00071 int sceUtilityGetNetParam(int conf, int param, netData *data);
    00072
    00073 #ifdef __cplusplus
    00074 }
    00075 #endif
    00076
    00077 #endif