1 /* Automatically generated header! Do not edit! */ 2 3 #ifndef _PPCINLINE_WB_H 4 #define _PPCINLINE_WB_H 5 6 #ifndef __PPCINLINE_MACROS_H 7 #include <ppcinline/macros.h> 8 #endif /* !__PPCINLINE_MACROS_H */ 9 10 #ifndef WB_BASE_NAME 11 #define WB_BASE_NAME WorkbenchBase 12 #endif /* !WB_BASE_NAME */ 13 14 #define RemoveAppMenuItem(__p0) \ 15 LP1(78, BOOL , RemoveAppMenuItem, \ 16 struct AppMenuItem *, __p0, a0, \ 17 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 18 19 #define CreateDrawerA(__p0, __p1) \ 20 (((BOOL (*)(CONST_STRPTR , const struct TagItem *, void *))*(void**)((long)(WB_BASE_NAME) - 154))(__p0, __p1, (void*)(WB_BASE_NAME))) 21 22 #define OpenWorkbenchObjectA(__p0, __p1) \ 23 LP2(96, BOOL , OpenWorkbenchObjectA, \ 24 STRPTR , __p0, a0, \ 25 struct TagItem *, __p1, a1, \ 26 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 27 28 #define AppWindowRelease() \ 29 (((VOID (*)(void *))*(void**)((long)(WB_BASE_NAME) - 142))((void*)(WB_BASE_NAME))) 30 31 #define AppWindowObtain(__p0) \ 32 (((struct AppWindow *(*)(struct Window *, void *))*(void**)((long)(WB_BASE_NAME) - 136))(__p0, (void*)(WB_BASE_NAME))) 33 34 #define AddAppMenuItemA(__p0, __p1, __p2, __p3, __p4) \ 35 LP5(72, struct AppMenuItem *, AddAppMenuItemA, \ 36 ULONG , __p0, d0, \ 37 ULONG , __p1, d1, \ 38 UBYTE *, __p2, a0, \ 39 struct MsgPort *, __p3, a1, \ 40 struct TagItem *, __p4, a2, \ 41 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 42 43 #define ChangeWorkbenchSelectionA(__p0, __p1, __p2) \ 44 LP3(126, BOOL , ChangeWorkbenchSelectionA, \ 45 STRPTR , __p0, a0, \ 46 struct Hook *, __p1, a1, \ 47 struct TagItem *, __p2, a2, \ 48 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 49 50 #define AddAppWindowDropZoneA(__p0, __p1, __p2, __p3) \ 51 LP4(114, struct AppWindowDropZone *, AddAppWindowDropZoneA, \ 52 struct AppWindow *, __p0, a0, \ 53 ULONG , __p1, d0, \ 54 ULONG , __p2, d1, \ 55 struct TagItem *, __p3, a1, \ 56 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 57 58 #define RemoveAppWindow(__p0) \ 59 LP1(54, BOOL , RemoveAppWindow, \ 60 struct AppWindow *, __p0, a0, \ 61 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 62 63 #define WBInfo(__p0, __p1, __p2) \ 64 LP3NR(90, WBInfo, \ 65 BPTR , __p0, a0, \ 66 STRPTR , __p1, a1, \ 67 struct Screen *, __p2, a2, \ 68 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 69 70 #define ManageDesktopObjectA(__p0, __p1, __p2) \ 71 (((BOOL (*)(CONST_STRPTR , LONG , const struct TagItem *, void *))*(void**)((long)(WB_BASE_NAME) - 148))(__p0, __p1, __p2, (void*)(WB_BASE_NAME))) 72 73 #define MakeWorkbenchObjectVisibleA(__p0, __p1) \ 74 LP2(132, BOOL , MakeWorkbenchObjectVisibleA, \ 75 STRPTR , __p0, a0, \ 76 struct TagItem *, __p1, a1, \ 77 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 78 79 #define AddAppIconA(__p0, __p1, __p2, __p3, __p4, __p5, __p6) \ 80 LP7(60, struct AppIcon *, AddAppIconA, \ 81 ULONG , __p0, d0, \ 82 ULONG , __p1, d1, \ 83 UBYTE *, __p2, a0, \ 84 struct MsgPort *, __p3, a1, \ 85 BPTR , __p4, a2, \ 86 struct DiskObject *, __p5, a3, \ 87 struct TagItem *, __p6, a4, \ 88 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 89 90 #define RemoveAppIcon(__p0) \ 91 LP1(66, BOOL , RemoveAppIcon, \ 92 struct AppIcon *, __p0, a0, \ 93 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 94 95 #define WorkbenchControlA(__p0, __p1) \ 96 LP2(108, BOOL , WorkbenchControlA, \ 97 STRPTR , __p0, a0, \ 98 struct TagItem *, __p1, a1, \ 99 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 100 101 #define AddAppWindowA(__p0, __p1, __p2, __p3, __p4) \ 102 LP5(48, struct AppWindow *, AddAppWindowA, \ 103 ULONG , __p0, d0, \ 104 ULONG , __p1, d1, \ 105 struct Window *, __p2, a0, \ 106 struct MsgPort *, __p3, a1, \ 107 struct TagItem *, __p4, a2, \ 108 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 109 110 #define CloseWorkbenchObjectA(__p0, __p1) \ 111 LP2(102, BOOL , CloseWorkbenchObjectA, \ 112 STRPTR , __p0, a0, \ 113 struct TagItem *, __p1, a1, \ 114 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 115 116 #define CreateIconA(__p0, __p1) \ 117 (((BOOL (*)(CONST_STRPTR , const struct TagItem *, void *))*(void**)((long)(WB_BASE_NAME) - 160))(__p0, __p1, (void*)(WB_BASE_NAME))) 118 119 #define RemoveAppWindowDropZone(__p0, __p1) \ 120 LP2(120, BOOL , RemoveAppWindowDropZone, \ 121 struct AppWindow *, __p0, a0, \ 122 struct AppWindowDropZone *, __p1, a1, \ 123 , WB_BASE_NAME, 0, 0, 0, 0, 0, 0) 124 125 #if defined(USE_INLINE_STDARG) && !defined(__STRICT_ANSI__) 126 127 #include <stdarg.h> 128 129 #define CloseWorkbenchObject(__p0, ...) \ 130 ({ULONG _tags[] = { __VA_ARGS__ }; \ 131 CloseWorkbenchObjectA(__p0, (struct TagItem *)_tags);}) 132 133 #define MakeWorkbenchObjectVisible(__p0, ...) \ 134 ({ULONG _tags[] = { __VA_ARGS__ }; \ 135 MakeWorkbenchObjectVisibleA(__p0, (struct TagItem *)_tags);}) 136 137 #define CreateDrawerTags(__p0, ...) \ 138 ({ULONG _tags[] = { __VA_ARGS__ }; \ 139 CreateDrawerA(__p0, (const struct TagItem *)_tags);}) 140 141 #define WorkbenchControl(__p0, ...) \ 142 ({ULONG _tags[] = { __VA_ARGS__ }; \ 143 WorkbenchControlA(__p0, (struct TagItem *)_tags);}) 144 145 #define CreateIconTags(__p0, ...) \ 146 ({ULONG _tags[] = { __VA_ARGS__ }; \ 147 CreateIconA(__p0, (const struct TagItem *)_tags);}) 148 149 #define AddAppWindow(__p0, __p1, __p2, __p3, ...) \ 150 ({ULONG _tags[] = { __VA_ARGS__ }; \ 151 AddAppWindowA(__p0, __p1, __p2, __p3, (struct TagItem *)_tags);}) 152 153 #define OpenWorkbenchObject(__p0, ...) \ 154 ({ULONG _tags[] = { __VA_ARGS__ }; \ 155 OpenWorkbenchObjectA(__p0, (struct TagItem *)_tags);}) 156 157 #define AddAppWindowDropZone(__p0, __p1, __p2, ...) \ 158 ({ULONG _tags[] = { __VA_ARGS__ }; \ 159 AddAppWindowDropZoneA(__p0, __p1, __p2, (struct TagItem *)_tags);}) 160 161 #define AddAppMenuItem(__p0, __p1, __p2, __p3, ...) \ 162 ({ULONG _tags[] = { __VA_ARGS__ }; \ 163 AddAppMenuItemA(__p0, __p1, __p2, __p3, (struct TagItem *)_tags);}) 164 165 #define ChangeWorkbenchSelection(__p0, __p1, ...) \ 166 ({ULONG _tags[] = { __VA_ARGS__ }; \ 167 ChangeWorkbenchSelectionA(__p0, __p1, (struct TagItem *)_tags);}) 168 169 #define ManageDesktopObjectTags(__p0, __p1, ...) \ 170 ({ULONG _tags[] = { __VA_ARGS__ }; \ 171 ManageDesktopObjectA(__p0, __p1, (const struct TagItem *)_tags);}) 172 173 #define AddAppIcon(__p0, __p1, __p2, __p3, __p4, __p5, ...) \ 174 ({ULONG _tags[] = { __VA_ARGS__ }; \ 175 AddAppIconA(__p0, __p1, __p2, __p3, __p4, __p5, (struct TagItem *)_tags);}) 176 177 #endif 178 179 #endif /* !_PPCINLINE_WB_H */