Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/lindaapi.h @ 603:42c94f85c779
long -> memaddr (64 or 32)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 07 Nov 2009 14:13:29 +0900 |
parents | 1733f3cbfa28 |
children | 32a7260fad2f |
line wrap: on
line diff
--- a/Renderer/Engine/lindaapi.h Fri Nov 06 21:20:26 2009 +0900 +++ b/Renderer/Engine/lindaapi.h Sat Nov 07 14:13:29 2009 +0900 @@ -26,14 +26,14 @@ パケットフォーマット char short 8byte int Mode + ID + Seq + Data_len + Padding + Data - 0 1 3 7+4 11+4 12+4 + 0 1 3 7 11 12 ----------------------------------------------------------------------*/ #define LINDA_MODE_OFFSET 0 #define LINDA_ID_OFFSET 1 #define LINDA_SEQ_OFFSET 3 -#define LINDA_DATA_LENGTH_OFFSET (7+4) -#define LINDA_HEADER_SIZE (12+4) +#define LINDA_DATA_LENGTH_OFFSET 7 +#define LINDA_HEADER_SIZE 12 /*---------------------------------------------------------------------- 構造体定義 @@ -45,7 +45,7 @@ char mode; void(*callback)(unsigned char * tuple, void * obj); void * obj; -} REPLY; +} REPLY, Reply, *ReplyPtr; typedef struct command_queue{ struct command_queue *next; @@ -75,9 +75,9 @@ extern unsigned char psx_get_mode(unsigned char *); extern unsigned char * psx_get_data(unsigned char *); -extern long psx_out(unsigned int tspace_id, unsigned int id, +extern int psx_out(unsigned int tspace_id, unsigned int id, unsigned char *data, unsigned int size); -extern long psx_ld(unsigned int tspace_id, unsigned int id, +extern int 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)