home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Computer / h / free < prev    next >
Encoding:
Text File  |  1995-06-22  |  2.1 KB  |  86 lines

  1. #ifndef free_H
  2. #define free_H
  3.  
  4. /* C header file for Free
  5.  * written by DefMod (Jun 20 1995) on Thu Jun 22 12:12:42 1995
  6.  * Jonathan Coxhead, Acorn Computers Ltd
  7.  */
  8.  
  9. #ifndef types_H
  10. #include "types.h"
  11. #endif
  12.  
  13. #ifndef os_H
  14. #include "os.h"
  15. #endif
  16.  
  17. #ifndef fileswitch_H
  18. #include "fileswitch.h"
  19. #endif
  20.  
  21. /**********************************
  22.  * SWI names and SWI reason codes *
  23.  **********************************/
  24. #undef  Free_Register
  25. #define Free_Register                           0x444C0
  26. #undef  XFree_Register
  27. #define XFree_Register                          0x644C0
  28. #undef  Free_DeRegister
  29. #define Free_DeRegister                         0x444C1
  30. #undef  XFree_DeRegister
  31. #define XFree_DeRegister                        0x644C1
  32.  
  33. /*************************
  34.  * Function declarations *
  35.  *************************/
  36.  
  37. #ifdef __cplusplus
  38.    extern "C" {
  39. #endif
  40.  
  41. /* ------------------------------------------------------------------------
  42.  * Function:      free_register()
  43.  *
  44.  * Description:   Provides an interactive free space display for a filing
  45.  *                system
  46.  *
  47.  * Input:         fs_no - value of R0 on entry
  48.  *                fn - value of R1 on entry
  49.  *                workspace - value of R2 on entry
  50.  *
  51.  * Other notes:   Calls SWI 0x444C0.
  52.  */
  53.  
  54. extern os_error *xfree_register (fileswitch_fs_no fs_no,
  55.       void const *fn,
  56.       void *workspace);
  57. __swi (0x444C0) void free_register (fileswitch_fs_no fs_no,
  58.       void const *fn,
  59.       void *workspace);
  60.  
  61. /* ------------------------------------------------------------------------
  62.  * Function:      free_de_register()
  63.  *
  64.  * Description:   Removes the filing system from the list of filing systems
  65.  *                known by the Free module
  66.  *
  67.  * Input:         fs_no - value of R0 on entry
  68.  *                fn - value of R1 on entry
  69.  *                workspace - value of R2 on entry
  70.  *
  71.  * Other notes:   Calls SWI 0x444C1.
  72.  */
  73.  
  74. extern os_error *xfree_de_register (fileswitch_fs_no fs_no,
  75.       void const *fn,
  76.       void *workspace);
  77. __swi (0x444C1) void free_de_register (fileswitch_fs_no fs_no,
  78.       void const *fn,
  79.       void *workspace);
  80.  
  81. #ifdef __cplusplus
  82.    }
  83. #endif
  84.  
  85. #endif
  86.