home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / stefanb_src / dospath / src / dospath.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-25  |  2.4 KB  |  71 lines

  1. /*
  2.  * dospath.h  V1.0
  3.  *
  4.  * Main include file
  5.  *
  6.  * (c) 1996 Stefan Becker
  7.  */
  8.  
  9. /* OS include files */
  10. #include <exec/libraries.h>
  11. #include <exec/memory.h>
  12. #include <exec/resident.h>
  13. #include <exec/semaphores.h>
  14. #include <libraries/dospath.h>
  15. #include <workbench/startup.h>
  16.  
  17. /* OS function prototypes */
  18. #include <clib/dos_protos.h>
  19. #include <clib/exec_protos.h>
  20. #include <clib/utility_protos.h>
  21.  
  22. /* OS function inline calls */
  23. #include <pragmas/dos_pragmas.h>
  24. #include <pragmas/exec_pragmas.h>
  25. #include <pragmas/utility_pragmas.h>
  26.  
  27. /* Revision number */
  28. #define DOSPATH_REVISION 0
  29.  
  30. /* Library base */
  31. struct DOSPathBase {
  32.  struct Library  dpb_Library;
  33.  UWORD           dpb_Pad;
  34.  struct Library *dpb_DOSBase;
  35.  struct Library *dpb_UtilityBase;
  36. };
  37.  
  38. /* Global data */
  39. extern struct Library *SysBase;
  40.  
  41. /* Function prototypes */
  42. __geta4 struct PathListEntry *BuildPathListTagList(
  43.                                                  __A0 struct PathListEntry **,
  44.                                                  __A1 struct TagItem *,
  45.                                                  __A6 struct DOSPathBase *);
  46. __geta4 struct PathListEntry *CopyPathList      (__A0 struct PathListEntry *,
  47.                                                  __A1 struct PathListEntry **,
  48.                                                  __A6 struct DOSPathBase *);
  49. __geta4 struct PathListEntry *CopyWorkbenchPathList(__A0 struct WBStartup *,
  50.                                                  __A1 struct PathListEntry **,
  51.                                                  __A6 struct DOSPathBase *);
  52. __geta4 void                  FreePathList      (__A0 struct PathListEntry *,
  53.                                                  __A6 struct DOSPathBase *);
  54. __geta4 BPTR                  FindFileInPathList(__A0 struct PathListEntry **,
  55.                                                  __A1 const char *,
  56.                                                  __A6 struct DOSPathBase *);
  57. __geta4 struct PathListEntry *GetProcessPathList(__A0 struct Process *);
  58. __geta4 struct PathListEntry *RemoveFromPathList(__A0 struct PathListEntry *,
  59.                                                  __A1 BTPR,
  60.                                                  __A6 struct DOSPathBase *);
  61. __geta4 struct PathListEntry *SetProcessPathList(__A0 struct Process *,
  62.                                                  __A1 struct PathListEntry *);
  63.  
  64. /* Debugging */
  65. #ifdef DEBUG
  66. void kprintf(char *, ...);
  67. #define DEBUGLOG(x) x
  68. #else
  69. #define DEBUGLOG(X)
  70. #endif
  71.