Attempt to build Scalos core. Compiles but stops
[AROS-Contrib.git] / scalos / main / ScaLibrary.h
blob9ac6f071c09884f39cceb3b849ca71c2b289369f
1 // ScaLibrary.h
2 // $Date$
3 // $Revision$
6 #ifndef SCALIBRARY_H
7 #define SCALIBRARY_H
9 extern UWORD ScaLibPluginOpenCount;
10 extern UBYTE fInitializingPlugins;
12 extern const char libIdString[];
13 extern const char scalosLibName[];
15 LIBFUNC_P6_PROTO(struct AppObject *, sca_NewAddAppIcon,
16 D0, ULONG, ID,
17 D1, ULONG, UserData,
18 A0, Object *, iconObj,
19 A1, struct MsgPort *, msgPort,
20 A2, struct TagItem *, TagList,
21 A6, struct ScalosBase *, ScalosBase, 0);
22 LIBFUNC_P3_PROTO(ULONG, sca_ScalosControl,
23 A0, CONST_STRPTR, name,
24 A1, struct TagItem *, taglist,
25 A6, struct ScalosBase *, ScalosBase, 0);
26 LIBFUNC_P6_PROTO(struct AppObject *, sca_NewAddAppMenuItem,
27 D0, ULONG, ID,
28 D1, ULONG, UserData,
29 A0, CONST_STRPTR, MenuText,
30 A1, struct MsgPort *, msgPort,
31 A2, struct TagItem *, TagList,
32 A6, struct ScalosBase *, ScalosBase, 0);
33 LIBFUNC_P4_PROTO(BOOL, sca_WBStart,
34 A0, struct WBArg *, ArgArray,
35 A1, struct TagItem *, TagList,
36 D0, ULONG, NumArgs,
37 A6, struct ScalosBase *, ScalosBase, 0);
38 LIBFUNC_P5_PROTO(struct ScalosClass *, sca_MakeScalosClass,
39 A0, CONST_STRPTR, ClassName,
40 A1, CONST_STRPTR, SuperClassName,
41 D0, UWORD, InstSize,
42 A2, APTR, DispFunc,
43 A6, struct ScalosBase *, ScalosBase, 0);
44 LIBFUNC_P2_PROTO(BOOL, sca_FreeScalosClass,
45 A0, struct ScalosClass *, sccl,
46 A6, struct ScalosBase *, ScalosBase, 0);
47 LIBFUNC_P3_PROTO(Object *, sca_NewScalosObject,
48 A0, CONST_STRPTR, ClassName,
49 A1, struct TagItem *, TagList,
50 A6, struct ScalosBase *, ScalosBase, 0);
51 LIBFUNC_P2_PROTO(void, sca_DisposeScalosObject,
52 A0, Object *, o,
53 A6, struct ScalosBase *, ScalosBase, 0);
54 LIBFUNC_P2_PROTO(BOOL, sca_RemoveAppObject,
55 A0, struct AppObject *, appObj,
56 A6, struct ScalosBase *, ScalosBase, 0);
57 LIBFUNC_P3_PROTO(void, sca_ScreenTitleMsg,
58 A0, CONST_STRPTR, Format,
59 A1, APTR, Args,
60 A6, struct ScalosBase *, ScalosBase, 0);
61 LIBFUNC_P6_PROTO(struct AppObject *, sca_NewAddAppWindow,
62 D0, ULONG, ID,
63 D1, ULONG, UserData,
64 A0, struct Window *, win,
65 A1, struct MsgPort *, msgPort,
66 A2, struct TagItem *, TagList,
67 A6, struct ScalosBase *, ScalosBase, 0);
68 LIBFUNC_P3_PROTO(struct MinNode *, sca_AllocNode,
69 A0, struct ScalosNodeList *, nodeList,
70 D0, ULONG, ExtraSize,
71 A6, struct ScalosBase *, ScalosBase, 0);
72 LIBFUNC_P3_PROTO(void, sca_FreeNode,
73 A0, struct ScalosNodeList *, nodeList,
74 A1, struct MinNode *, oldNode,
75 A6, struct ScalosBase *, ScalosBase, 0);
76 LIBFUNC_P2_PROTO(void, sca_FreeAllNodes,
77 A0, struct ScalosNodeList *, nodeList,
78 A6, struct ScalosBase *, ScalosBase, 0);
79 LIBFUNC_P3_PROTO(struct MinNode *, sca_AllocStdNode,
80 A0, struct ScalosNodeList *, nodeList,
81 D0, ULONG, NodeType,
82 A6, struct ScalosBase *, ScalosBase, 0);
83 LIBFUNC_P3_PROTO(struct ScalosMessage *, sca_AllocMessage,
84 D0, ULONG, MessageType,
85 D1, UWORD, AdditionalSize,
86 A6, struct ScalosBase *, ScalosBase, 0);
87 LIBFUNC_P2_PROTO(void, sca_FreeMessage,
88 A1, struct ScalosMessage *, msg,
89 A6, struct ScalosBase *, ScalosBase, 0);
90 LIBFUNC_P4_PROTO(void, sca_UpdateIcon,
91 D0, UBYTE, WindowType,
92 A0, struct ScaUpdateIcon_IW *, uiiw,
93 D1, ULONG, ui_SIZE,
94 A6, struct ScalosBase *, ScalosBase, 0);
95 LIBFUNC_P4_PROTO(void, sca_FreeWBArgs,
96 A0, struct WBArg *, wbArg,
97 D0, ULONG, NumArgs,
98 D1, ULONG, Flags,
99 A6, struct ScalosBase *, ScalosBase, 0);
100 LIBFUNC_P4_PROTO(ULONG, sca_MakeWBArgs,
101 A0, struct WBArg *, wbArg,
102 A1, struct ScaIconNode *, in,
103 D0, ULONG, MaxArg,
104 A6, struct ScalosBase *, ScalosBase, 0);
105 LIBFUNC_P2_PROTO(struct ScaWindowList *, sca_LockWindowList,
106 D0, LONG, accessmode,
107 A6, struct ScalosBase *, ScalosBase, 0);
108 LIBFUNC_P1_PROTO (void, sca_UnLockWindowList,
109 A6, struct ScalosBase *, ScalosBase, 0);
110 LIBFUNC_P4_PROTO(void, sca_MoveNode,
111 A0, struct ScalosNodeList *, src,
112 A1, struct ScalosNodeList *, dest,
113 D0, struct MinNode *, node,
114 A6, struct ScalosBase *, ScalosBase, 0);
115 LIBFUNC_P4_PROTO(void, sca_SwapNodes,
116 A0, struct MinNode *, srcNode,
117 A1, struct MinNode *, destNode,
118 A2, struct ScalosNodeList *, nodeList,
119 A6, struct ScalosBase *, ScalosBase, 0);
120 LIBFUNC_P4_PROTO(void, sca_SortNodes,
121 A0, struct ScalosNodeList *, nodeList,
122 A1, struct Hook *, compareHook,
123 D0, ULONG, SortType,
124 A6, struct ScalosBase *, ScalosBase, 0);
125 LIBFUNC_P4_PROTO(void, sca_RemapBitmap,
126 A0, struct BitMap *, bmSrc,
127 A1, struct BitMap *, bmDest,
128 A2, const BYTE *, penArray,
129 A6, struct ScalosBase *, ScalosBase, 0);
130 LIBFUNC_P3_PROTO(Object *, sca_GetDefIconObject,
131 A0, BPTR, dirLock,
132 A1, CONST_STRPTR, name,
133 A6, struct ScalosBase *, ScalosBase, 0);
134 LIBFUNC_P3_PROTO(struct ScaWindowStruct *, sca_OpenDrawerByName,
135 A0, CONST_STRPTR, path,
136 A1, struct TagItem *, TagList,
137 A6, struct ScalosBase *, ScalosBase, 0);
138 LIBFUNC_P1_PROTO(ULONG, sca_CountWBArgs,
139 A0, struct ScaIconNode *, in, 0);
140 LIBFUNC_P4_PROTO(Object *, sca_GetDefIconObjectA,
141 A0, BPTR, dirLock,
142 A1, CONST_STRPTR, name,
143 A2, struct TagItem *, tagList,
144 A6, struct ScalosBase *, ScalosBase, 0);
146 #endif // SCALIBRARY_H