home *** CD-ROM | disk | FTP | other *** search
- #include <inline/stub.h>
- #ifndef BASE_EXT_DECL
- #define BASE_EXT_DECL extern struct WorkbenchBase * WorkbenchBase;
- #endif
- #ifndef BASE_PAR_DECL
- #define BASE_PAR_DECL
- #define BASE_PAR_DECL0 void
- #endif
- #ifndef BASE_NAME
- #define BASE_NAME WorkbenchBase
- #endif
- #ifdef PRIVATE
- #endif
- __inline static struct AppWindow* AddAppWindowA(BASE_PAR_DECL long unsigned int id, long unsigned int userdata, struct Window* window, struct MsgPort* msgport, struct TagItem* taglist)
- {
- BASE_EXT_DECL
- register struct AppWindow* res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register long unsigned int d1 __asm("d1");
- register struct Window* a0 __asm("a0");
- register struct MsgPort* a1 __asm("a1");
- register struct TagItem* a2 __asm("a2");
-
- a6 = BASE_NAME;
- d0 = id;
- d1 = userdata;
- a0 = window;
- a1 = msgport;
- a2 = taglist;
- __asm volatile ("
- jsr a6@(-0x30)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (d1), "g" (a0), "g" (a1), "g" (a2)
- : "d0", "d1", "a0", "a1", "a2");
- return res;
- }
- __inline static BOOL RemoveAppWindow(BASE_PAR_DECL struct AppWindow* appWindow)
- {
- BASE_EXT_DECL
- register BOOL res __asm("d0");
- register void *a6 __asm ("a6");
- register struct AppWindow* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = appWindow;
- __asm volatile ("
- jsr a6@(-0x36)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static struct AppIcon* AddAppIconA(BASE_PAR_DECL long unsigned int id, long unsigned int userdata, UBYTE* text, struct MsgPort* msgport, struct FileLock* lock, struct DiskObject* diskobj, struct TagItem* taglist)
- {
- BASE_EXT_DECL
- register struct AppIcon* res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register long unsigned int d1 __asm("d1");
- register UBYTE* a0 __asm("a0");
- register struct MsgPort* a1 __asm("a1");
- register struct FileLock* a2 __asm("a2");
- register struct DiskObject* a3 __asm("a3");
- register struct TagItem* a4 __asm("a4");
-
- a6 = BASE_NAME;
- d0 = id;
- d1 = userdata;
- a0 = text;
- a1 = msgport;
- a2 = lock;
- a3 = diskobj;
- a4 = taglist;
- __asm volatile ("" : /* no input */
- : "g" (d0));
- __asm volatile ("
- jsr a6@(-0x3c)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (d1), "g" (a0), "g" (a1), "g" (a2), "g" (a3)
- : "d0", "d1", "a0", "a1", "a2", "a3", "a4");
- return res;
- }
- __inline static BOOL RemoveAppIcon(BASE_PAR_DECL struct AppIcon* appIcon)
- {
- BASE_EXT_DECL
- register BOOL res __asm("d0");
- register void *a6 __asm ("a6");
- register struct AppIcon* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = appIcon;
- __asm volatile ("
- jsr a6@(-0x42)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- __inline static struct AppMenuItem* AddAppMenuItemA(BASE_PAR_DECL long unsigned int id, long unsigned int userdata, UBYTE* text, struct MsgPort* msgport, struct TagItem* taglist)
- {
- BASE_EXT_DECL
- register struct AppMenuItem* res __asm("d0");
- register void *a6 __asm ("a6");
- register long unsigned int d0 __asm("d0");
- register long unsigned int d1 __asm("d1");
- register UBYTE* a0 __asm("a0");
- register struct MsgPort* a1 __asm("a1");
- register struct TagItem* a2 __asm("a2");
-
- a6 = BASE_NAME;
- d0 = id;
- d1 = userdata;
- a0 = text;
- a1 = msgport;
- a2 = taglist;
- __asm volatile ("
- jsr a6@(-0x48)"
- : "=g" (res)
- : "g" (a6), "g" (d0), "g" (d1), "g" (a0), "g" (a1), "g" (a2)
- : "d0", "d1", "a0", "a1", "a2");
- return res;
- }
- __inline static BOOL RemoveAppMenuItem(BASE_PAR_DECL struct AppMenuItem* appMenuItem)
- {
- BASE_EXT_DECL
- register BOOL res __asm("d0");
- register void *a6 __asm ("a6");
- register struct AppMenuItem* a0 __asm("a0");
-
- a6 = BASE_NAME;
- a0 = appMenuItem;
- __asm volatile ("
- jsr a6@(-0x4e)"
- : "=g" (res)
- : "g" (a6), "g" (a0)
- : "d0", "d1", "a0", "a1");
- return res;
- }
- #undef BASE_EXT_DECL
- #undef BASE_PAR_DECL
- #undef BASE_PAR_DECL0
- #undef BASE_NAME
-