home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Computer / Hdr / Filer < prev    next >
Encoding:
Text File  |  1995-06-23  |  5.8 KB  |  179 lines

  1. ;Assembler header file for Filer
  2. ;written by DefMod (Jun 12 1995) on Fri Jun 23 16:09:44 1995
  3. ;Jonathan Coxhead, Acorn Computers Ltd
  4.  
  5.         [       :LNOT: :DEF: Get_Types
  6.         GBLS    Get_Types
  7.         ]
  8.         [       :LNOT: :DEF: Types_Hdr
  9. Get_Types                       SETS    "GET OS:Hdr.Types"
  10.         |
  11. Get_Types                       SETS    ""
  12.         ]
  13.         $Get_Types
  14.  
  15.         [       :LNOT: :DEF: Get_OS
  16.         GBLS    Get_OS
  17.         ]
  18.         [       :LNOT: :DEF: OS_Hdr
  19. Get_OS                          SETS    "GET OS:Hdr.OS"
  20.         |
  21. Get_OS                          SETS    ""
  22.         ]
  23.         $Get_OS
  24.  
  25.         [       :LNOT: :DEF: Get_WIMP
  26.         GBLS    Get_WIMP
  27.         ]
  28.         [       :LNOT: :DEF: WIMP_Hdr
  29. Get_WIMP                        SETS    "GET OS:Hdr.WIMP"
  30.         |
  31. Get_WIMP                        SETS    ""
  32.         ]
  33.         $Get_WIMP
  34.  
  35.         [       :LNOT: :DEF: Get_FileSwitch
  36.         GBLS    Get_FileSwitch
  37.         ]
  38.         [       :LNOT: :DEF: FileSwitch_Hdr
  39. Get_FileSwitch                  SETS    "GET OS:Hdr.FileSwitch"
  40.         |
  41. Get_FileSwitch                  SETS    ""
  42.         ]
  43.         $Get_FileSwitch
  44.  
  45.         [       :LNOT: :DEF: Filer_Hdr
  46.         GBLS    Filer_Hdr
  47.  
  48. ;Symbols for constants
  49. Error_FilerNoRecursion          *       &B80
  50. Error_FilerNoTemplate           *       &B81
  51. Error_FilerFailedSave           *       &B82
  52. Error_FilerBadPath              *       &B83
  53. Message_FilerOpenDir            *       &400
  54. Message_FilerCloseDir           *       &401
  55. Message_FilerOpenDirAt          *       &402
  56. Message_FilerSelectionDir       *       &403
  57. Message_FilerAddSelection       *       &404
  58. Message_FilerAction             *       &405
  59. Message_FilerControlAction      *       &406
  60. Message_FilerSelection          *       &407
  61. Filer_FormatNative              *       &1
  62. Filer_DirNoncanonical           *       &1
  63. Filer_DisplayLargeIcons         *       &0
  64. Filer_DisplaySmallIcons         *       &1
  65. Filer_DisplayFullInfo           *       &2
  66. Filer_Display                   *       &3
  67. Filer_DisplayShift              *       0
  68. Filer_SortByName                *       &0
  69. Filer_SortBySize                *       &1
  70. Filer_SortByType                *       &2
  71. Filer_SortByDate                *       &3
  72. Filer_Sort                      *       &C
  73. Filer_SortShift                 *       2
  74. Filer_GivenDisplay              *       &10
  75. Filer_GivenSort                 *       &20
  76. Filer_ControlAcknowledge        *       0
  77. Filer_ControlVerboseOn          *       1
  78. Filer_ControlVerboseOff         *       2
  79.  
  80. ;Symbols for structure offsets and sizes
  81.                                 ^       0
  82. Filer_MessageOpenDir_fs_no      #       FileSwitch_FSNo
  83. Filer_MessageOpenDir_reserved   #       3*Byte
  84. Filer_MessageOpenDir_flags      #       Bits
  85. Filer_MessageOpenDir_dir_name   #       228*Char
  86. Filer_MessageOpenDir            *       @
  87.  
  88.                                 ^       0
  89. Filer_MessageOpenDirAt_fs_no    #       FileSwitch_FSNo
  90. Filer_MessageOpenDirAt_reserved #       3*Byte
  91. Filer_MessageOpenDirAt_flags    #       Bits
  92. Filer_MessageOpenDirAt_at       #       OS_Coord
  93. Filer_MessageOpenDirAt_width    #       Int
  94. Filer_MessageOpenDirAt_height   #       Int
  95. Filer_MessageOpenDirAt_display  #       Byte
  96. Filer_MessageOpenDirAt_dir_name #       211*Char
  97. Filer_MessageOpenDirAt          *       @
  98.  
  99.                                 ^       0
  100. Filer_MessageSelectionDir_dir_name #       236*Char
  101. Filer_MessageSelectionDir       *       @
  102.  
  103.                                 ^       0
  104. Filer_MessageAddSelection_leaf_list #       236*Char
  105. Filer_MessageAddSelection       *       @
  106.  
  107.                                 ^       0
  108. Filer_MessageAction_operation   #       Int
  109. Filer_MessageAction_options     #       Bits
  110. Filer_MessageAction_data        *       @
  111. Filer_MessageAction_data_destination_dir_name #       228*Char
  112.                                 ^       Filer_MessageAction_data
  113. Filer_MessageAction_data_access_access #       Short
  114. Filer_MessageAction_data_access_mask #       Short
  115.                                 ^       Filer_MessageAction_data
  116. Filer_MessageAction_data_file_type #       Bits
  117.                                 ^       Filer_MessageAction_data
  118. Filer_MessageAction_data_find_leaf #       228*Char
  119. Filer_MessageAction             *       @
  120.  
  121.                                 ^       0
  122. Filer_MessageControlAction_control #       Int
  123. Filer_MessageControlAction      *       @
  124.  
  125.                                 ^       0
  126. Filer_MessageSelection_bbox     #       OS_Box
  127. Filer_MessageSelection_width    #       Int
  128. Filer_MessageSelection_height   #       Int
  129. Filer_MessageSelection_display  #       Bits
  130. Filer_MessageSelection_col0     #       Int
  131. Filer_MessageSelection_row0     #       Int
  132. Filer_MessageSelection_col1     #       Int
  133. Filer_MessageSelection_row1     #       Int
  134. Filer_MessageSelection          *       @
  135.  
  136.                                 ^       0
  137. Filer_Format_next               #       Ptr
  138. Filer_Format_menu_text          #       Ptr
  139. Filer_Format_help_text          #       Ptr
  140. Filer_Format_disc_format_swi    #       Int
  141. Filer_Format_disc_format_handle #       Int
  142. Filer_Format_layout_structure_swi #       Int
  143. Filer_Format_layout_structure_handle #       Int
  144. Filer_Format_flags              #       Bits
  145. Filer_Format                    *       @
  146.  
  147.  
  148. ;Symbols for SWI's and SWI reason codes
  149. Service_StartFiler              *       &4B
  150.    ;Entry
  151.    ;  R0 = task (Wimp_T)
  152.    ;  R1 = &4B
  153.    ;Exit
  154.    ;  R0 -> command (String)
  155.    ;  R1 = unclaimed (Bool)
  156.  
  157. Service_StartedFiler            *       &4C
  158.    ;Entry
  159.    ;  R1 = &4C
  160.  
  161. Service_FilerDying              *       &4F
  162.    ;Entry
  163.    ;  R1 = &4F
  164.  
  165. Service_EnumerateFormats        *       &6A
  166.    ;Entry
  167.    ;  R1 = &6A
  168.    ;  R2 = format_list (pointer to Filer_Format)
  169.    ;Exit
  170.    ;  R2 = format_list_out (pointer to Filer_Format)
  171.  
  172. Service_DiscDismounted          *       &7D
  173.    ;Entry
  174.    ;  R1 = &7D
  175.    ;  R2 -> disc_name (String)
  176.  
  177.         ]
  178.         END
  179.