home *** CD-ROM | disk | FTP | other *** search
- #ifndef dosfs_H
- #define dosfs_H
-
- /* C header file for DOSFS
- * written by DefMod (Sep 16 1994) on Thu Sep 22 16:40:43 1994
- * Copyright © Acorn Computers Ltd, 1994
- */
-
- /*************************************************************************
- * This source file was written by Acorn Computers Limited. It is part *
- * of the OSLib library for writing applications for RISC OS. It may be *
- * used freely in the creation of programs for RISC OS. *
- *************************************************************************/
-
- #ifndef types_H
- #include "types.h"
- #endif
-
- #ifndef os_H
- #include "os.h"
- #endif
-
- #ifndef filecore_H
- #include "filecore.h"
- #endif
-
- /**********************************
- * SWI names and SWI reason codes *
- **********************************/
- #undef DOSFS_DiscFormat
- #define DOSFS_DiscFormat 0x44B00
- #undef XDOSFS_DiscFormat
- #define XDOSFS_DiscFormat 0x64B00
- #undef DOSFS_LayoutStructure
- #define DOSFS_LayoutStructure 0x44B01
- #undef XDOSFS_LayoutStructure
- #define XDOSFS_LayoutStructure 0x64B01
-
- /************************
- * Constant definitions *
- ************************/
- #define dosfs_FORMAT_DOSQ 0
- #define dosfs_FORMAT_DOSM 1
- #define dosfs_FORMAT_DOSH 2
- #define dosfs_FORMAT_DOSN 3
- #define dosfs_FORMAT_DOSP 4
- #define dosfs_FORMAT_DOST 5
- #define dosfs_FORMAT_DOSU 6
- #define dosfs_FORMAT_ATARIM 7
- #define dosfs_FORMAT_ATARIN 8
-
- /*************************
- * Function declarations *
- *************************/
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /*************************************************************
- * NOTE: The following functions provide direct access to *
- * the SWI's noted in the function description. *
- * Please read the relevant PRM section for more *
- * information on their input/output parameters. *
- *************************************************************/
-
- /* ------------------------------------------------------------------------
- * Function: dosfs_disc_format()
- *
- * Description: Fills in a disc format structure with parameters for the
- * specified format
- *
- * Input: buffer - value of R0 on entry
- * vet_format_swi - value of R1 on entry
- * vet_format_handle - value of R2 on entry
- * format - value of R3 on entry
- *
- * Other notes: Calls SWI 0x44B00.
- */
-
- extern os_error *xdosfs_disc_format (filecore_format *buffer,
- int vet_format_swi,
- int vet_format_handle,
- int format);
- extern void dosfs_disc_format (filecore_format *buffer,
- int vet_format_swi,
- int vet_format_handle,
- int format);
-
- /* ------------------------------------------------------------------------
- * Function: dosfs_layout_structure()
- *
- * Description: Lays out into the specified image a set of structures for
- * its format
- *
- * Input: disc - value of R0 on entry
- * defect_list - value of R1 on entry
- * disc_name - value of R2 on entry
- * image_file - value of R3 on entry
- *
- * Other notes: Calls SWI 0x44B01.
- */
-
- extern os_error *xdosfs_layout_structure (filecore_disc *disc,
- filecore_defect_list *defect_list,
- char *disc_name,
- os_f image_file);
- extern void dosfs_layout_structure (filecore_disc *disc,
- filecore_defect_list *defect_list,
- char *disc_name,
- os_f image_file);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-