From 2be003bc1e7752c730e9995cb07ee52e373e798b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 22 Oct 2010 21:06:25 +0000 Subject: [PATCH] Add missing packed attributes. Add needed TextFont struct. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39052 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../boot/platform/amiga_m68k/rom_calls.h | 35 +++++++++++++++---- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/src/system/boot/platform/amiga_m68k/rom_calls.h b/src/system/boot/platform/amiga_m68k/rom_calls.h index 053bc07bcf..5e7938074e 100644 --- a/src/system/boot/platform/amiga_m68k/rom_calls.h +++ b/src/system/boot/platform/amiga_m68k/rom_calls.h @@ -960,6 +960,14 @@ typedef void *APTR; // +// our VFS also has a struct Node... +struct ListNode { + struct ANode *ln_Succ; + struct ANode *ln_Pred; + uint8 ln_Type; + uint8 ln_Pri; + const char *ln_Name; +}; // @@ -1002,6 +1010,12 @@ struct ExecBase { uint8 dummy5[632-334]; } _PACKED; +struct Message { + struct ListNode mn_Node; + struct MsgPort *mn_ReplyPort; + uint16 mn_Length; +} _PACKED; + #endif /* __ASSEMBLER__ */ @@ -1030,7 +1044,7 @@ struct IORequest { uint16 io_Command; uint8 io_Flags; int8 io_Error; -}; +} _PACKED; struct IOStdReq { struct Message io_Message; @@ -1043,7 +1057,7 @@ struct IOStdReq { uint32 io_Length; void *io_Data; uint32 io_Offset; -}; +} _PACKED; */ #endif /* __ASSEMBLER__ */ @@ -1150,7 +1164,7 @@ struct GfxBase { struct bltnode *bsblttl; //... -}; +} _PACKED; struct ViewPort { struct ViewPort *Next; @@ -1165,12 +1179,12 @@ struct ViewPort { uint8 SpritePriorities; uint8 ExtendedModes; struct RastInfo *RasInfo; -}; +} _PACKED; struct RastPort { struct Layer *Layer; //... -}; +} _PACKED; // @@ -1178,9 +1192,16 @@ struct TextAttr { const char *taName; uint16 ta_YSize; uint8 ta_Style, ta_Flags; -}; +} _PACKED; -struct TextFont; +struct TextFont { + struct Message tf_Message; + uint16 tf_YSize; + uint8 tf_Style; + uint8 tf_Flags; + uint16 tf_XSize; + //... +} _PACKED; extern struct GfxBase *GRAPHICS_BASE_NAME;