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

  1. #ifndef __INC_POSA_CLIB_ALIB_PROTOS_C
  2. #define __INC_POSA_CLIB_ALIB_PROTOS_C
  3. /*******************************************************************
  4.  $CRT 10 Nov 1996 : hb
  5.  
  6.  $AUT Holger Burkarth
  7.  $DAT >>alib_protos.c<<   31 Jan 1997    15:58:05 - (C) ProDAD
  8. *******************************************************************/
  9. #pragma -
  10.  
  11. // mcpp:cppc -c ci:_Projekte/pOSxA/clib/alib_protos.c -pc
  12.  
  13.  
  14. #define NOMYDEBUG
  15.  
  16. #ifndef  EXEC_TYPES_H
  17. #include <exec/types.h>
  18. #endif
  19. #ifndef  DEVICES_TIMER_H
  20. #include <devices/timer.h>
  21. #endif
  22. #ifndef  DEVICES_KEYMAP_H
  23. //#include <devices/keymap.h>
  24. #endif
  25. #ifndef  LIBRARIES_COMMODITIES_H
  26. //#include <libraries/commodities.h>
  27. #endif
  28. #ifndef  UTILITY_HOOKS_H
  29. #include <utility/hooks.h>
  30. #endif
  31. #ifndef  INTUITION_CLASSES_H
  32. #include <intuition/classes.h>
  33. #endif
  34. #ifndef  INTUITION_CLASSUSR_H
  35. #include <intuition/classusr.h>
  36. #endif
  37. #ifndef  GRAPHICS_GRAPHINT_H
  38. //#include <graphics/graphint.h>
  39. #endif
  40.  
  41.  
  42. #include <p:proto/pExec2.h>
  43. #include <p:proto/pLibExt.h>
  44. #include <p:proto/pList.h>
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49.  
  50. void BeginIO( struct IORequest *ioReq )
  51.   { pOS_BeginIO((APTR)ioReq); }
  52.  
  53. struct IORequest *CreateExtIO( struct MsgPort *port, long ioSize )
  54.   { return((APTR)pOS_CreateIORequest((APTR)port,ioSize));}
  55.  
  56. struct MsgPort *CreatePort( STRPTR name, long pri )
  57.   { return((APTR)pOS_CreatePort((CHAR*)name,pri));}
  58.  
  59. struct IOStdReq *CreateStdIO( struct MsgPort *port )
  60.   { return((APTR)pOS_CreateIORequest((APTR)port,sizeof(struct pOS_IORequest)));}
  61.  
  62. struct Task *CreateTask(STRPTR name,SLONG pri,APTR initPC,ULONG stackSize)
  63.   { return((APTR)pOS_CreateTask((CHAR*)name,pri,initPC,stackSize,sizeof(struct pOS_Task),0,NULL));}
  64.  
  65. void DeleteExtIO( struct IORequest *ioReq )
  66.   { pOS_DeleteIORequest((APTR)ioReq);}
  67.  
  68. void DeletePort( struct MsgPort *port)
  69.   { pOS_DeletePort((APTR)port);}
  70.  
  71. void DeleteStdIO( struct IOStdReq *ioReq )
  72.   { pOS_DeleteIORequest((APTR)ioReq);}
  73.  
  74. void DeleteTask( struct Task *task )
  75.   { pOS_DeleteTask((APTR)task,NULL,0); }
  76.  
  77. void NewList( struct List *list )
  78.   { pOS_ListInit((APTR)list);}
  79.  
  80.  
  81. LONG TimeDelay(long unit,unsigned long secs,unsigned long microsecs )
  82.   {
  83.     pOS_TimeDelay(secs,microsecs);
  84.     return(0);
  85.   }
  86.  
  87.  
  88. ULONG DoMethodA( Object *obj, Msg message )
  89.   {
  90.     return( pOS_DoIMethodA((APTR)obj,(struct pOS_Method*)message) );
  91.   }
  92.  
  93. ULONG DoMethod( Object *obj, unsigned long MethodID, ... )
  94.   {
  95.     return( pOS_DoIMethodA((APTR)obj,(struct pOS_Method*)&MethodID) );
  96.   }
  97.  
  98. ULONG DoSuperMethodA( struct IClass *cl, Object *obj, Msg message )
  99.   {
  100.     return( pOS_DoAbsMethodA((struct pOS_Class*)cl,(APTR)obj,
  101.                              (struct pOS_Method*)message) );
  102.   }
  103.  
  104. ULONG DoSuperMethod( struct IClass *cl, Object *obj,ULONG MethodID,... )
  105.   {
  106.     return( pOS_DoAbsMethodA((struct pOS_Class*)cl,(APTR)obj,
  107.                              (struct pOS_Method*)&MethodID) );
  108.   }
  109.  
  110.  
  111. ULONG CoerceMethodA( struct IClass *cl, Object *obj, Msg message )
  112.   {
  113.     return( pOS_DoVirMethodA((struct pOS_Class*)cl,(APTR)obj,
  114.                              (struct pOS_Method*)message) );
  115.   }
  116.  
  117. ULONG CoerceMethod( struct IClass *cl, Object *obj,ULONG MethodID,... )
  118.   {
  119.     return( pOS_DoVirMethodA((struct pOS_Class*)cl,(APTR)obj,
  120.                              (struct pOS_Method*)&MethodID) );
  121.   }
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. #ifdef __IGNORE_NOT_SUPPORTED__
  136.  
  137. ULONG SetSuperAttrs( struct IClass *cl, Object *obj, ULONG Tag1,... );
  138.  
  139. APTR LibAllocPooled( APTR poolHeader, ULONG memSize )
  140. {return(0);}
  141. APTR LibCreatePool(ULONG memFlags,ULONG puddleSize,ULONG threshSize )
  142. {return(0);}
  143. void LibDeletePool( APTR poolHeader )
  144. {}
  145. void LibFreePooled( APTR poolHeader, APTR memory, ULONG memSize )
  146. {}
  147. ULONG FastRand( ULONG seed )
  148. {return(0);}
  149. UWORD RangeRand( ULONG maxValue )
  150. {return(0);}
  151. void AddTOF( struct Isrvstr *i, long (*p)(), long a )
  152. {}
  153. void RemTOF( struct Isrvstr *i )
  154. {}
  155. void waitbeam( long b )
  156. {}
  157. FLOAT afp( BYTE *string )
  158. {return(0);}
  159. void arnd( long place, long exp, BYTE *string )
  160. {}
  161. FLOAT dbf( unsigned long exp, unsigned long mant )
  162. {return(0);}
  163. LONG fpa( FLOAT fnum, BYTE *string )
  164. {return(0);}
  165. void fpbcd( FLOAT fnum, BYTE *string )
  166. {}
  167. LONG DoTimer( struct timeval *, long unit, long command )
  168. {return(0);}
  169. void ArgArrayDone( void )
  170. {}
  171. UBYTE **ArgArrayInit( long argc, UBYTE **argv )
  172. {return(0);}
  173. LONG ArgInt( UBYTE **tt, STRPTR entry, long defaultval )
  174. {return(0);}
  175. STRPTR ArgString( UBYTE **tt, STRPTR entry, STRPTR defaulstring )
  176. {return(0);}
  177. struct InputEvent *InvertString( STRPTR str, struct KeyMap *km )
  178. {return(0);}
  179. void FreeIEvents( struct InputEvent *events )
  180. {}
  181. BOOL CheckRexxMsg( struct Message *rexxmsg )
  182. {return(0);}
  183. LONG GetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE **result )
  184. {return(0);}
  185. LONG SetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE *value,long length )
  186. {return(0);}
  187. ULONG CallHookA( struct Hook *hookPtr, Object *obj, APTR message )
  188. {return(0);}
  189. ULONG CallHook( struct Hook *hookPtr, Object *obj, ... )
  190. {return(0);}
  191. STRPTR ACrypt( STRPTR buffer, STRPTR password, STRPTR username )
  192. {return(0);}
  193.  
  194. #endif  /** __IGNORE_NOT_SUPPORTED__ **/
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208. #ifdef __cplusplus
  209. }
  210. #endif
  211.  
  212.  
  213. #endif     /* CLIB_ALIB_PROTOS_H */
  214.