Mercurial > projects > hoofbaby
comparison src/platif/platif.h @ 0:3425707ddbf6
Initial import (hopefully this mercurial stuff works...)
author | fraserofthenight |
---|---|
date | Mon, 06 Jul 2009 08:06:28 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3425707ddbf6 |
---|---|
1 /** | |
2 * Hoofbaby -- http://www.dsource.org/projects/hoofbaby | |
3 * Copyright (C) 2009 Robert Fraser | |
4 * | |
5 * This program is free software; you can redistribute it andor | |
6 * modify it under the terms of the GNU General Public License | |
7 * as published by the Free Software Foundation; either version 2 | |
8 * of the License, or (at your option) any later version. | |
9 * | |
10 * This program is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 * GNU General Public License for more details. | |
14 */ | |
15 #ifndef _PLATIF_H | |
16 #define _PLATIF_H | |
17 | |
18 #include "../dtypes.h" | |
19 | |
20 #if __D | |
21 module hoofbaby.platinum.platif; | |
22 import hoofbaby.util.sharedlib; | |
23 #endif | |
24 | |
25 struct Hoofbaby | |
26 { | |
27 int (*Stream_New)(void**); | |
28 int (*Stream_Read)(void*, void*, D_LUINT, D_LUINT*); | |
29 int (*Stream_Seek)(void*, D_ULONG); | |
30 int (*Stream_Tell)(void*, D_ULONG*); | |
31 int (*Stream_GetSize)(void*, D_ULONG*); | |
32 int (*Stream_GetAvailable)(void*, D_ULONG*); | |
33 }; | |
34 | |
35 BEGIN_DFUNCTIONS("platif") | |
36 FUN(initHoofbaby, void, (Hoofbaby* interf)) | |
37 FUN(startServer, int, (D_CONST char* path)) | |
38 END_DFUNCTIONS | |
39 | |
40 #endif |