Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/lindaapi.h @ 602:1733f3cbfa28
64bit mode try... not worked.
author | e075740@nw0740.st.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 06 Nov 2009 21:20:26 +0900 |
parents | e3f3cfa8794f |
children | 42c94f85c779 |
line wrap: on
line diff
--- a/Renderer/Engine/lindaapi.h Fri Nov 06 18:34:12 2009 +0900 +++ b/Renderer/Engine/lindaapi.h Fri Nov 06 21:20:26 2009 +0900 @@ -24,16 +24,16 @@ /*---------------------------------------------------------------------- パケットフォーマット - char short int int + char short 8byte int Mode + ID + Seq + Data_len + Padding + Data - 0 1 3 7 11 12 + 0 1 3 7+4 11+4 12+4 ----------------------------------------------------------------------*/ #define LINDA_MODE_OFFSET 0 #define LINDA_ID_OFFSET 1 #define LINDA_SEQ_OFFSET 3 -#define LINDA_DATA_LENGTH_OFFSET 7 -#define LINDA_HEADER_SIZE 12 +#define LINDA_DATA_LENGTH_OFFSET (7+4) +#define LINDA_HEADER_SIZE (12+4) /*---------------------------------------------------------------------- 構造体定義 @@ -75,9 +75,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)