home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / clib / alib_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  6.2 KB  |  187 lines

  1. #ifndef  CLIB_ALIB_PROTOS_H
  2. #define  CLIB_ALIB_PROTOS_H
  3.  
  4.  
  5. #ifndef  EXEC_TYPES_H
  6. #include <exec/types.h>
  7. #endif
  8. #ifndef  DEVICES_TIMER_H
  9. #include <devices/timer.h>
  10. #endif
  11. #ifndef  DEVICES_KEYMAP_H
  12. #include <devices/keymap.h>
  13. #endif
  14. #ifndef  LIBRARIES_COMMODITIES_H
  15. //#include <libraries/commodities.h>
  16. #endif
  17. #ifndef  UTILITY_HOOKS_H
  18. #include <utility/hooks.h>
  19. #endif
  20. #ifndef  INTUITION_CLASSES_H
  21. #include <intuition/classes.h>
  22. #endif
  23. #ifndef  INTUITION_CLASSUSR_H
  24. #include <intuition/classusr.h>
  25. #endif
  26. #ifndef  GRAPHICS_GRAPHINT_H
  27. //#include <graphics/graphint.h>
  28. #endif
  29.  
  30. /*  Exec support functions */
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. void BeginIO( struct IORequest *ioReq );
  37. struct IORequest *CreateExtIO( struct MsgPort *port, long ioSize );
  38. struct MsgPort *CreatePort( STRPTR name, long pri );
  39. struct IOStdReq *CreateStdIO( struct MsgPort *port );
  40. struct Task *CreateTask( STRPTR name, long pri, APTR initPC,
  41.     unsigned long stackSize );
  42. void DeleteExtIO( struct IORequest *ioReq );
  43. void DeletePort( struct MsgPort *ioReq );
  44. void DeleteStdIO( struct IOStdReq *ioReq );
  45. void DeleteTask( struct Task *task );
  46. void NewList( struct List *list );
  47.  
  48. LONG TimeDelay( long unit, unsigned long secs, unsigned long microsecs );
  49.  
  50. ULONG DoMethodA( Object *obj, Msg message );
  51. ULONG DoMethod( Object *obj, unsigned long MethodID, ... );
  52. ULONG DoSuperMethodA( struct IClass *cl, Object *obj, Msg message );
  53. ULONG DoSuperMethod( struct IClass *cl, Object *obj,ULONG MethodID,... );
  54. ULONG CoerceMethodA( struct IClass *cl, Object *obj, Msg message );
  55. ULONG CoerceMethod( struct IClass *cl, Object *obj,ULONG MethodID,... );
  56.  
  57. #ifdef __IGNORE_NOT_SUPPORTED__
  58.  
  59.   APTR LibAllocPooled( APTR poolHeader, ULONG memSize );
  60.   APTR LibCreatePool(ULONG memFlags,ULONG puddleSize,ULONG threshSize );
  61.   void LibDeletePool( APTR poolHeader );
  62.   void LibFreePooled( APTR poolHeader, APTR memory, ULONG memSize );
  63.   ULONG FastRand( ULONG seed );
  64.   UWORD RangeRand( ULONG maxValue );
  65.   void AddTOF( struct Isrvstr *i, long (*p)(), long a );
  66.   void RemTOF( struct Isrvstr *i );
  67.   void waitbeam( long b );
  68.   FLOAT afp( BYTE *string );
  69.   void arnd( long place, long exp, BYTE *string );
  70.   FLOAT dbf( unsigned long exp, unsigned long mant );
  71.   LONG fpa( FLOAT fnum, BYTE *string );
  72.   void fpbcd( FLOAT fnum, BYTE *string );
  73.   LONG DoTimer( struct timeval *, long unit, long command );
  74.   void ArgArrayDone( void );
  75.   UBYTE **ArgArrayInit( long argc, UBYTE **argv );
  76.   LONG ArgInt( UBYTE **tt, STRPTR entry, long defaultval );
  77.   STRPTR ArgString( UBYTE **tt, STRPTR entry, STRPTR defaulstring );
  78. //CxObj *HotKey( STRPTR description, struct MsgPort *port, long id );
  79.   struct InputEvent *InvertString( STRPTR str, struct KeyMap *km );
  80.   void FreeIEvents( struct InputEvent *events );
  81.   BOOL CheckRexxMsg( struct Message *rexxmsg );
  82.   LONG GetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE **result );
  83.   LONG SetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE *value,long length );
  84.   ULONG CallHookA( struct Hook *hookPtr, Object *obj, APTR message );
  85.   ULONG CallHook( struct Hook *hookPtr, Object *obj, ... );
  86.   ULONG SetSuperAttrs( struct IClass *cl, Object *obj, ULONG Tag1,... );
  87.   STRPTR ACrypt( STRPTR buffer, STRPTR password, STRPTR username );
  88. #else  /** __IGNORE_NOT_SUPPORTED__ **/
  89.  
  90. #define LibAllocPooled LibAllocPooled_NOT_SUPPORTED
  91.   APTR LibAllocPooled(struct NOT_SUPPORTED*,APTR,ULONG);
  92.  
  93. #define LibCreatePool LibCreatePool_NOT_SUPPORTED
  94.   APTR LibCreatePool(struct NOT_SUPPORTED*,ULONG,ULONG,ULONG);
  95.  
  96. #define LibDeletePool LibDeletePool_NOT_SUPPORTED
  97.   void LibDeletePool(struct NOT_SUPPORTED*,APTR);
  98.  
  99. #define LibFreePooled LibFreePooled_NOT_SUPPORTED
  100.   void LibFreePooled(struct NOT_SUPPORTED*,APTR,APTR,ULONG);
  101.  
  102. #define FastRand FastRand_NOT_SUPPORTED
  103.   ULONG FastRand(struct NOT_SUPPORTED*,ULONG);
  104.  
  105. #define RangeRand RangeRand_NOT_SUPPORTED
  106.   UWORD RangeRand(struct NOT_SUPPORTED*,ULONG);
  107.  
  108. #define AddTOF AddTOF_NOT_COMPATIBLE
  109.   void AddTOF(struct NOT_SUPPORTED*,struct Isrvstr*,long*,long);
  110.  
  111. #define RemTOF RemTOF_NOT_COMPATIBLE
  112.   void RemTOF(struct NOT_SUPPORTED*,struct Isrvstr*);
  113.  
  114. #define waitbeam waitbeam_NOT_COMPATIBLE
  115.   void waitbeam(struct NOT_SUPPORTED*,long);
  116.  
  117. #define afp afp_NOT_SUPPORTED
  118.   FLOAT afp(struct NOT_SUPPORTED*,BYTE*);
  119.  
  120. #define arnd arnd_NOT_SUPPORTED
  121.   void arnd(struct NOT_SUPPORTED*,long,long,BYTE*);
  122.  
  123. #define dbf dbf_NOT_SUPPORTED
  124.   FLOAT dbf(struct NOT_SUPPORTED*,unsigned long,unsigned long);
  125.  
  126. #define fpa fpa_NOT_SUPPORTED
  127.   LONG fpa(struct NOT_SUPPORTED*,FLOAT,BYTE*);
  128.  
  129. #define fpbcd fpbcd_NOT_SUPPORTED
  130.   void fpbcd(struct NOT_SUPPORTED*,FLOAT,BYTE*);
  131.  
  132. #define DoTimer DoTimer_NOT_SUPPORTED
  133.   LONG DoTimer(struct NOT_SUPPORTED*,struct timeval*,long,long);
  134.  
  135. #define ArgArrayDone ArgArrayDone_NOT_COMPATIBLE
  136.   void ArgArrayDone(struct NOT_SUPPORTED*);
  137.  
  138. #define ArgArrayInit ArgArrayInit_NOT_COMPATIBLE
  139.   UBYTE **ArgArrayInit(struct NOT_SUPPORTED*,long,UBYTE**);
  140.  
  141. #define ArgInt ArgInt_NOT_COMPATIBLE
  142.   LONG ArgInt(struct NOT_SUPPORTED*,UBYTE**,STRPTR,long);
  143.  
  144. #define HotKey HotKey_NOT_SUPPORTED
  145.   APTR HotKey(struct NOT_SUPPORTED*,STRPTR,struct MsgPort*,long);
  146.  
  147. #define ArgString ArgString_NOT_SUPPORTED
  148.   STRPTR ArgString(struct NOT_SUPPORTED*,UBYTE**,STRPTR,STRPTR);
  149.  
  150. #define InputEvent InputEvent_NOT_SUPPORTED
  151.   struct InputEvent *InvertString(struct NOT_SUPPORTED*,STRPTR,struct KeyMap*);
  152.  
  153. #define FreeIEvents FreeIEvents_NOT_SUPPORTED
  154.   void FreeIEvents(struct NOT_SUPPORTED*,struct InputEvent*);
  155.  
  156. #define CheckRexxMsg CheckRexxMsg_NOT_SUPPORTED
  157.   BOOL CheckRexxMsg(struct NOT_SUPPORTED*,struct Message*);
  158.  
  159. #define GetRexxVar GetRexxVar_NOT_SUPPORTED
  160.   LONG GetRexxVar(struct NOT_SUPPORTED*,struct Message*,UBYTE*,UBYTE**);
  161.  
  162. #define SetRexxVar SetRexxVar_NOT_SUPPORTED
  163.   LONG SetRexxVar(struct NOT_SUPPORTED*,struct Message*,UBYTE*,UBYTE*,long);
  164.  
  165. #define CallHookA CallHookA_NOT_SUPPORTED
  166.   ULONG CallHookA(struct NOT_SUPPORTED*,struct Hook*,APTR,APTR);
  167.  
  168. #define CallHook CallHook_NOT_SUPPORTED
  169.   ULONG CallHook(struct NOT_SUPPORTED*,struct Hook*,APTR obj, ... );
  170.  
  171. #define SetSuperAttrs SetSuperAttrs_NOT_SUPPORTED
  172.   ULONG SetSuperAttrs(struct NOT_SUPPORTED*,struct IClass*,APTR,ULONG,... );
  173.  
  174. #define ACrypt ACrypt_NOT_SUPPORTED
  175.   STRPTR ACrypt(struct NOT_SUPPORTED*,STRPTR,STRPTR,STRPTR);
  176.  
  177. #endif /** __IGNORE_NOT_SUPPORTED__**/
  178.  
  179.  
  180.  
  181. #ifdef __cplusplus
  182. }
  183. #endif
  184.  
  185.  
  186. #endif     /* CLIB_ALIB_PROTOS_H */
  187.