home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / programming / c / asap / devicenode_.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  1KB  |  38 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ADeviceNode wrapper class                                                 *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_DeviceNode_H
  12. #define ASAP_DeviceNode_H
  13.  
  14. extern "C"
  15. {
  16.  #include <DOS/FileHandler.h>
  17.  #include <Proto/Expansion.h>
  18. }
  19.  
  20. class ADeviceNode : public DeviceNode
  21. {
  22.  public:
  23.  inline BOOL AddDosNode(long bootPri, unsigned long flags);
  24.  inline static ADeviceNode * MakeDosNode(APTR parmPacket);
  25. };
  26. //----------------------------------------------------------------------------
  27. BOOL ADeviceNode::AddDosNode (long bootPri, unsigned long flags)
  28. {
  29.  return ::AddDosNode(bootPri, flags, this);
  30. }
  31. //----------------------------------------------------------------------------
  32. ADeviceNode * ADeviceNode::MakeDosNode (APTR parmPacket)
  33. {
  34.  return (ADeviceNode *) ::MakeDosNode(parmPacket);
  35. }
  36.  
  37. #endif
  38.