Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/lindaapi.h @ 606:32a7260fad2f
32bit/64bit ABI (64 bit is not tested yet).
64bit ABI requires 64bit SDL library etc.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Nov 2009 18:05:52 +0900 |
parents | 42c94f85c779 |
children | 0decff4e867b |
line wrap: on
line diff
--- a/Renderer/Engine/lindaapi.h Sat Nov 07 17:42:21 2009 +0900 +++ b/Renderer/Engine/lindaapi.h Sat Nov 07 18:05:52 2009 +0900 @@ -2,6 +2,8 @@ #define _LINDAAPI_H 1 +#include "types.h" + #ifdef __cplusplus extern "C" { #endif @@ -24,9 +26,9 @@ /*---------------------------------------------------------------------- パケットフォーマット - char short 8byte int + char short int int Mode + ID + Seq + Data_len + Padding + Data - 0 1 3 7 11 12 + 0 1 3 7 11 12 ----------------------------------------------------------------------*/ #define LINDA_MODE_OFFSET 0 @@ -45,7 +47,7 @@ char mode; void(*callback)(unsigned char * tuple, void * obj); void * obj; -} REPLY, Reply, *ReplyPtr; +} REPLY; typedef struct command_queue{ struct command_queue *next; @@ -75,9 +77,9 @@ extern unsigned char psx_get_mode(unsigned char *); extern unsigned char * psx_get_data(unsigned char *); -extern int psx_out(unsigned int tspace_id, unsigned int id, +extern long psx_out(unsigned int tspace_id, unsigned int id, unsigned char *data, unsigned int size); -extern int psx_ld(unsigned int tspace_id, unsigned int id, +extern long psx_ld(unsigned int tspace_id, unsigned int id, char mode, void(*callback)(unsigned char *,void *),void * obj); #define psx_in(tid, id) psx_ld(tid, id, 'i', NULL, NULL)