ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <string.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdarg.h>
#include "libmtap.h"
Go to the source code of this file.
Macros | |
#define | MTAPSERV_PORT_OPEN 0x80000901 |
#define | MTAPSERV_PORT_CLOSE 0x80000902 |
#define | MTAPSERV_GET_CONNECTION 0x80000903 |
Functions | |
int | mtapInit (void) |
int | mtapPortOpen (int port) |
int | mtapPortClose (int port) |
int | mtapGetConnection (int port) |
Variables | |
static unsigned int | mtapRpcBuffer [32] |
static struct t_SifRpcClientData | clientPortOpen |
static struct t_SifRpcClientData | clientPortClose |
static struct t_SifRpcClientData | clientGetConnection |
static int | mtapInited = 0 |
Functions to provide access to multi-taps.
Definition in file libmtap.c.
int mtapGetConnection | ( | int | port | ) |
Checks if a multitap is connected to an opened port.
port | is the port to be checked. |
Definition at line 87 of file libmtap.c.
References clientGetConnection, mtapInited, mtapRpcBuffer, NULL, port, and SifCallRpc().
Referenced by find_controllers(), and pad_open().
int mtapInit | ( | void | ) |
Initialise the multitap library.
Definition at line 34 of file libmtap.c.
References clientGetConnection, clientPortClose, clientPortOpen, mtapInited, MTAPSERV_GET_CONNECTION, MTAPSERV_PORT_CLOSE, MTAPSERV_PORT_OPEN, nopdelay(), and SifBindRpc().
Referenced by main().
int mtapPortClose | ( | int | port | ) |
Closes a port for the multitap.
port | is a port that is to be closed (must have been previously opened by mtapPortOpen). |
Definition at line 77 of file libmtap.c.
References clientPortClose, mtapInited, mtapRpcBuffer, NULL, port, and SifCallRpc().
int mtapPortOpen | ( | int | port | ) |
Open a port for the multitap.
port | specifies the port that is to be monitored as a multitap connection destination. |
Definition at line 67 of file libmtap.c.
References clientPortOpen, mtapInited, mtapRpcBuffer, NULL, port, and SifCallRpc().
Referenced by main().
|
static |
Definition at line 28 of file libmtap.c.
Referenced by mtapGetConnection(), and mtapInit().
|
static |
Definition at line 28 of file libmtap.c.
Referenced by mtapInit(), and mtapPortClose().
|
static |
Definition at line 28 of file libmtap.c.
Referenced by mtapInit(), and mtapPortOpen().
|
static |
Definition at line 32 of file libmtap.c.
Referenced by mtapGetConnection(), mtapInit(), mtapPortClose(), and mtapPortOpen().
|
static |
Definition at line 28 of file libmtap.c.
Referenced by mtapGetConnection(), mtapPortClose(), and mtapPortOpen().