summaryrefslogtreecommitdiff
path: root/lib/ultralib/include/ultrahost.h
blob: 2c50b95df17a7c91c9b4357f571faeef7ecb2bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**************************************************************************
 *
 *  $Revision: 1.1 $
 *  $Date: 1999/07/05 02:16:07 $
 *
 **************************************************************************/

#ifndef _ULTRAHOST_H_
#define _ULTRAHOST_H_

#ifdef WIN32 /* { */

int __stdcall uhOpenGame(char *);
int __stdcall uhCloseGame(int);
int __stdcall uhReadGame(int hfd,void *buf,int count);
int __stdcall uhWriteGame(int hfd,void *buf,int count);
int __stdcall uhReadRamrom(int hfd,void *ramrom_adr,void *buf,int count);
int __stdcall uhWriteRamrom(int hfd,void *ramrom_adr,void *buf,int count);
int __stdcall uhPartnerInit(int hfd);
int __stdcall uhPartnerCmd(int hfd,char *ptcmd);
int __stdcall uhGload(int hfd,char *loadfile);

#else /* }{ */
#ifdef PTN64 /* { */

#define	execl		execl_pt

#define uhOpenGame	uhOpenGame_pt
#define uhCloseGame	uhCloseGame_pt

#define uhReadGame	uhReadGame_pt
#define uhWriteGame	uhWriteGame_pt
#define uhReadRamrom	uhReadRamrom_pt
#define uhWriteRamrom	uhWriteRamrom_pt
#define uhPartnerCmd	uhPartnerCmd_pt
#define uhGload		uhGload_pt

int uhPartnerCmd(int,char *);
int uhGload(int,char *);

#endif /* } */

#ifdef __cplusplus
extern "C" {
#endif
int	uhOpenGame(const char *);
int	uhCloseGame(int);

int	uhReadGame(int, void *, int);
int	uhWriteGame(int, void *, int);
int	uhWriteRamrom(int, void *, void*, int);
int	uhReadRamrom(int, void *, void*, int);

#ifdef __cplusplus
}
#endif
#endif /* } */

#endif /* ULTRAHOST */