home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / Computer / Hdr / NetPrint < prev    next >
Encoding:
Text File  |  1995-08-22  |  4.7 KB  |  173 lines

  1. ;Assembler header file for NetPrint
  2. ;written by DefMod (Jun 30 1995) on Tue Aug 22 14:44:01 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: NetPrint_Hdr
  26.         GBLS    NetPrint_Hdr
  27.  
  28. ;Symbols for constants
  29. NetPrint_PSNameLimit            *       256
  30. NetPrint_StatusReady            *       &0
  31. NetPrint_StatusBusy             *       &1
  32. NetPrint_StatusJammed           *       &2
  33. NetPrint_StatusOffline          *       &6
  34. NetPrint_StatusOpen             *       &7
  35. Error_NetPrintNameTooLong       *       &10C00
  36. Error_NetPrintSingleStream      *       &10C01
  37. Error_NetPrintAllPrintersBusy   *       &10C02
  38. Error_NetPrintOffLine           *       &10C09
  39. Error_NetPrintNotFound          *       &10C0A
  40. Error_NetPrintInternalError     *       &10C0B
  41.  
  42. ;Symbols for structure offsets and sizes
  43. NetPrint_Status                 *       Byte
  44.  
  45.                                 ^       0
  46. NetPrint_BriefEntry_station_no  #       Byte
  47. NetPrint_BriefEntry_net_no      #       Byte
  48. NetPrint_BriefEntry_ps_name     #       256*Char
  49. NetPrint_BriefEntry             *       @
  50.  
  51.                                 ^       0
  52. NetPrint_NameEntry_ps_name      #       256*Char
  53. NetPrint_NameEntry              *       @
  54.  
  55.                                 ^       0
  56. NetPrint_FullEntry_station_no   #       Byte
  57. NetPrint_FullEntry_net_no       #       Byte
  58. NetPrint_FullEntry_status       #       NetPrint_Status
  59. NetPrint_FullEntry_status_station_no #       Byte
  60. NetPrint_FullEntry_status_net_no #       Byte
  61. NetPrint_FullEntry_ps_name      #       256*Char
  62. NetPrint_FullEntry              *       @
  63.  
  64.  
  65. ;Symbols for SWI's and SWI reason codes
  66. XNetPrint_ReadPSNumber          *       &60200
  67. NetPrint_ReadPSNumber           *       &40200
  68.    ;Exit
  69.    ;  R0 = station_no (Byte)
  70.    ;  R1 = net_no (Byte)
  71.  
  72. XNetPrint_SetPSNumber           *       &60201
  73. NetPrint_SetPSNumber            *       &40201
  74.    ;Entry
  75.    ;  R0 = station_no (Byte)
  76.    ;  R1 = net_no (Byte)
  77.  
  78. XNetPrint_ReadPSName            *       &60202
  79. NetPrint_ReadPSName             *       &40202
  80.    ;Entry
  81.    ;  R1 = buffer (pointer to String)
  82.    ;  R2 = size (Int)
  83.    ;Exit
  84.    ;  R0 corrupted
  85.    ;  R1 -> end (Char)
  86.    ;  R2 corrupted
  87.  
  88. XNetPrint_SetPSName             *       &60203
  89. NetPrint_SetPSName              *       &40203
  90.    ;Entry
  91.    ;  R0 -> ps_name (String)
  92.  
  93. XNetPrint_ReadPSTimeouts        *       &60204
  94. NetPrint_ReadPSTimeouts         *       &40204
  95.    ;Exit
  96.    ;  R0 = transmit_count (Int)
  97.    ;  R1 = transmit_delay (Int)
  98.    ;  R2 = peek_count (Int)
  99.    ;  R3 = peek_delay (Int)
  100.    ;  R4 = receive_delay (Int)
  101.    ;  R5 = broadcast_delay (Int)
  102.  
  103. XNetPrint_SetPSTimeouts         *       &60205
  104. NetPrint_SetPSTimeouts          *       &40205
  105.    ;Entry
  106.    ;  R0 = transmit_count (Int)
  107.    ;  R1 = transmit_delay (Int)
  108.    ;  R2 = peek_count (Int)
  109.    ;  R3 = peek_delay (Int)
  110.    ;  R4 = receive_delay (Int)
  111.    ;  R5 = broadcast_delay (Int)
  112.  
  113. XNetPrint_BindPSName            *       &60206
  114. NetPrint_BindPSName             *       &40206
  115.    ;Entry
  116.    ;  R0 -> ps_name (String)
  117.    ;Exit
  118.    ;  R0 = station_no (Byte)
  119.    ;  R1 = net_no (Byte)
  120.  
  121. XNetPrint_ListServers           *       &60207
  122. NetPrint_ListServers            *       &40207
  123.  
  124. NetPrintListServers_Brief       *       &0
  125.    ;Entry
  126.    ;  R0 = &0
  127.    ;  R1 = entries (pointer to NetPrint_BriefEntry)
  128.    ;  R2 = size (Int)
  129.    ;  R3 = timeout (Int)
  130.    ;Exit
  131.    ;  R0 = entry_count (Int)
  132.    ;  R3 = no_more (Bool)
  133.  
  134. NetPrintListServers_Name        *       &1
  135.    ;Entry
  136.    ;  R0 = &1
  137.    ;  R1 = entries (pointer to NetPrint_NameEntry)
  138.    ;  R2 = size (Int)
  139.    ;  R3 = timeout (Int)
  140.    ;Exit
  141.    ;  R0 = entry_count (Int)
  142.    ;  R3 = no_more (Bool)
  143.  
  144. NetPrintListServers_Full        *       &2
  145.    ;Entry
  146.    ;  R0 = &2
  147.    ;  R1 = entries (pointer to NetPrint_FullEntry)
  148.    ;  R2 = size (Int)
  149.    ;  R3 = timeout (Int)
  150.    ;Exit
  151.    ;  R0 = entry_count (Int)
  152.    ;  R3 = no_more (Bool)
  153.  
  154. XNetPrint_ConvertStatusToString *       &60208
  155. NetPrint_ConvertStatusToString  *       &40208
  156.    ;Entry
  157.    ;  R0 -> status_station_net (Bits)
  158.    ;  R1 = buffer (pointer to String)
  159.    ;  R2 = size (Int)
  160.    ;Exit
  161.    ;  R0 corrupted
  162.    ;  R1 -> end (Char)
  163.    ;  R2 corrupted
  164.  
  165. Service_NetPrintCheckD1         *       &40200
  166.    ;Entry
  167.    ;  R1 = &40200
  168.    ;Exit
  169.    ;  R1 = unclaimed (Bool)
  170.  
  171.         ]
  172.         END
  173.