Files
pspsdk/src/utility/psputility_netmodules.h

56 lines
1.4 KiB
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* psputility_netmodules.h - Load network modules from user mode on 2.xx+
*
* Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
*
*/
#ifndef __PSPUTILITY_NETMODULES_H__
#define __PSPUTILITY_NETMODULES_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <psptypes.h>
#define PSP_NET_MODULE_COMMON 1
#define PSP_NET_MODULE_ADHOC 2
#define PSP_NET_MODULE_INET 3
#define PSP_NET_MODULE_PARSEURI 4
#define PSP_NET_MODULE_PARSEHTTP 5
#define PSP_NET_MODULE_HTTP 6
#define PSP_NET_MODULE_SSL 7
/** An error code used as a return value */
#define SCE_ERROR_NET_MODULE_NOT_LOADED (0x80110803)
/**
* Load a network module (PRX) from user mode.
* Load PSP_NET_MODULE_COMMON and PSP_NET_MODULE_INET
* to use infrastructure WifI (via an access point).
* Available on firmware 2.00 and higher only.
*
* @param module - module number to load (PSP_NET_MODULE_xxx)
* @return 0 on success, < 0 on error
*/
int sceUtilityLoadNetModule(int module);
/**
* Unload a network module (PRX) from user mode.
* Available on firmware 2.00 and higher only.
*
* @param module - module number be unloaded
* @return 0 on success, < 0 on error
*/
int sceUtilityUnloadNetModule(int module);
#ifdef __cplusplus
}
#endif
#endif