github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/printing/bindings/import_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  //go:build wasm
     5  
     6  package bindings
     7  
     8  import (
     9  	"unsafe"
    10  
    11  	"github.com/primecitizens/pcz/std/ffi/js"
    12  )
    13  
    14  type (
    15  	_ unsafe.Pointer
    16  	_ js.Ref
    17  )
    18  
    19  //go:wasmimport plat/js/webext/printing constof_PrinterStatus
    20  //go:noescape
    21  func ConstOfPrinterStatus(str js.Ref) uint32
    22  
    23  //go:wasmimport plat/js/webext/printing store_GetPrinterInfoResponse
    24  //go:noescape
    25  func GetPrinterInfoResponseJSStore(
    26  	ptr unsafe.Pointer, ref js.Ref)
    27  
    28  //go:wasmimport plat/js/webext/printing load_GetPrinterInfoResponse
    29  //go:noescape
    30  func GetPrinterInfoResponseJSLoad(
    31  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    32  
    33  //go:wasmimport plat/js/webext/printing constof_PrinterSource
    34  //go:noescape
    35  func ConstOfPrinterSource(str js.Ref) uint32
    36  
    37  //go:wasmimport plat/js/webext/printing store_Printer
    38  //go:noescape
    39  func PrinterJSStore(
    40  	ptr unsafe.Pointer, ref js.Ref)
    41  
    42  //go:wasmimport plat/js/webext/printing load_Printer
    43  //go:noescape
    44  func PrinterJSLoad(
    45  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
    46  
    47  //go:wasmimport plat/js/webext/printing constof_JobStatus
    48  //go:noescape
    49  func ConstOfJobStatus(str js.Ref) uint32
    50  
    51  //go:wasmimport plat/js/webext/printing has_Properties_MAX_SUBMIT_JOB_CALLS_PER_MINUTE
    52  //go:noescape
    53  func HasFuncPropertiesMAX_SUBMIT_JOB_CALLS_PER_MINUTE(this js.Ref) js.Ref
    54  
    55  //go:wasmimport plat/js/webext/printing func_Properties_MAX_SUBMIT_JOB_CALLS_PER_MINUTE
    56  //go:noescape
    57  func FuncPropertiesMAX_SUBMIT_JOB_CALLS_PER_MINUTE(this js.Ref, fn unsafe.Pointer)
    58  
    59  //go:wasmimport plat/js/webext/printing call_Properties_MAX_SUBMIT_JOB_CALLS_PER_MINUTE
    60  //go:noescape
    61  func CallPropertiesMAX_SUBMIT_JOB_CALLS_PER_MINUTE(
    62  	this js.Ref, retPtr unsafe.Pointer)
    63  
    64  //go:wasmimport plat/js/webext/printing try_Properties_MAX_SUBMIT_JOB_CALLS_PER_MINUTE
    65  //go:noescape
    66  func TryPropertiesMAX_SUBMIT_JOB_CALLS_PER_MINUTE(
    67  	this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    68  
    69  //go:wasmimport plat/js/webext/printing has_Properties_MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE
    70  //go:noescape
    71  func HasFuncPropertiesMAX_GET_PRINTER_INFO_CALLS_PER_MINUTE(this js.Ref) js.Ref
    72  
    73  //go:wasmimport plat/js/webext/printing func_Properties_MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE
    74  //go:noescape
    75  func FuncPropertiesMAX_GET_PRINTER_INFO_CALLS_PER_MINUTE(this js.Ref, fn unsafe.Pointer)
    76  
    77  //go:wasmimport plat/js/webext/printing call_Properties_MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE
    78  //go:noescape
    79  func CallPropertiesMAX_GET_PRINTER_INFO_CALLS_PER_MINUTE(
    80  	this js.Ref, retPtr unsafe.Pointer)
    81  
    82  //go:wasmimport plat/js/webext/printing try_Properties_MAX_GET_PRINTER_INFO_CALLS_PER_MINUTE
    83  //go:noescape
    84  func TryPropertiesMAX_GET_PRINTER_INFO_CALLS_PER_MINUTE(
    85  	this js.Ref, retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
    86  
    87  //go:wasmimport plat/js/webext/printing constof_SubmitJobStatus
    88  //go:noescape
    89  func ConstOfSubmitJobStatus(str js.Ref) uint32
    90  
    91  //go:wasmimport plat/js/webext/printing store_SubmitJobResponse
    92  //go:noescape
    93  func SubmitJobResponseJSStore(
    94  	ptr unsafe.Pointer, ref js.Ref)
    95  
    96  //go:wasmimport plat/js/webext/printing load_SubmitJobResponse
    97  //go:noescape
    98  func SubmitJobResponseJSLoad(
    99  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   100  
   101  //go:wasmimport plat/js/webext/printing store_SubmitJobRequest
   102  //go:noescape
   103  func SubmitJobRequestJSStore(
   104  	ptr unsafe.Pointer, ref js.Ref)
   105  
   106  //go:wasmimport plat/js/webext/printing load_SubmitJobRequest
   107  //go:noescape
   108  func SubmitJobRequestJSLoad(
   109  	ptr unsafe.Pointer, create, ref js.Ref) js.Ref
   110  
   111  //go:wasmimport plat/js/webext/printing has_CancelJob
   112  //go:noescape
   113  func HasFuncCancelJob() js.Ref
   114  
   115  //go:wasmimport plat/js/webext/printing func_CancelJob
   116  //go:noescape
   117  func FuncCancelJob(fn unsafe.Pointer)
   118  
   119  //go:wasmimport plat/js/webext/printing call_CancelJob
   120  //go:noescape
   121  func CallCancelJob(
   122  	retPtr unsafe.Pointer,
   123  	jobId js.Ref)
   124  
   125  //go:wasmimport plat/js/webext/printing try_CancelJob
   126  //go:noescape
   127  func TryCancelJob(
   128  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   129  	jobId js.Ref) (ok js.Ref)
   130  
   131  //go:wasmimport plat/js/webext/printing has_GetPrinterInfo
   132  //go:noescape
   133  func HasFuncGetPrinterInfo() js.Ref
   134  
   135  //go:wasmimport plat/js/webext/printing func_GetPrinterInfo
   136  //go:noescape
   137  func FuncGetPrinterInfo(fn unsafe.Pointer)
   138  
   139  //go:wasmimport plat/js/webext/printing call_GetPrinterInfo
   140  //go:noescape
   141  func CallGetPrinterInfo(
   142  	retPtr unsafe.Pointer,
   143  	printerId js.Ref)
   144  
   145  //go:wasmimport plat/js/webext/printing try_GetPrinterInfo
   146  //go:noescape
   147  func TryGetPrinterInfo(
   148  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   149  	printerId js.Ref) (ok js.Ref)
   150  
   151  //go:wasmimport plat/js/webext/printing has_GetPrinters
   152  //go:noescape
   153  func HasFuncGetPrinters() js.Ref
   154  
   155  //go:wasmimport plat/js/webext/printing func_GetPrinters
   156  //go:noescape
   157  func FuncGetPrinters(fn unsafe.Pointer)
   158  
   159  //go:wasmimport plat/js/webext/printing call_GetPrinters
   160  //go:noescape
   161  func CallGetPrinters(
   162  	retPtr unsafe.Pointer)
   163  
   164  //go:wasmimport plat/js/webext/printing try_GetPrinters
   165  //go:noescape
   166  func TryGetPrinters(
   167  	retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)
   168  
   169  //go:wasmimport plat/js/webext/printing has_OnJobStatusChanged
   170  //go:noescape
   171  func HasFuncOnJobStatusChanged() js.Ref
   172  
   173  //go:wasmimport plat/js/webext/printing func_OnJobStatusChanged
   174  //go:noescape
   175  func FuncOnJobStatusChanged(fn unsafe.Pointer)
   176  
   177  //go:wasmimport plat/js/webext/printing call_OnJobStatusChanged
   178  //go:noescape
   179  func CallOnJobStatusChanged(
   180  	retPtr unsafe.Pointer,
   181  	callback js.Ref)
   182  
   183  //go:wasmimport plat/js/webext/printing try_OnJobStatusChanged
   184  //go:noescape
   185  func TryOnJobStatusChanged(
   186  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   187  	callback js.Ref) (ok js.Ref)
   188  
   189  //go:wasmimport plat/js/webext/printing has_OffJobStatusChanged
   190  //go:noescape
   191  func HasFuncOffJobStatusChanged() js.Ref
   192  
   193  //go:wasmimport plat/js/webext/printing func_OffJobStatusChanged
   194  //go:noescape
   195  func FuncOffJobStatusChanged(fn unsafe.Pointer)
   196  
   197  //go:wasmimport plat/js/webext/printing call_OffJobStatusChanged
   198  //go:noescape
   199  func CallOffJobStatusChanged(
   200  	retPtr unsafe.Pointer,
   201  	callback js.Ref)
   202  
   203  //go:wasmimport plat/js/webext/printing try_OffJobStatusChanged
   204  //go:noescape
   205  func TryOffJobStatusChanged(
   206  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   207  	callback js.Ref) (ok js.Ref)
   208  
   209  //go:wasmimport plat/js/webext/printing has_HasOnJobStatusChanged
   210  //go:noescape
   211  func HasFuncHasOnJobStatusChanged() js.Ref
   212  
   213  //go:wasmimport plat/js/webext/printing func_HasOnJobStatusChanged
   214  //go:noescape
   215  func FuncHasOnJobStatusChanged(fn unsafe.Pointer)
   216  
   217  //go:wasmimport plat/js/webext/printing call_HasOnJobStatusChanged
   218  //go:noescape
   219  func CallHasOnJobStatusChanged(
   220  	retPtr unsafe.Pointer,
   221  	callback js.Ref)
   222  
   223  //go:wasmimport plat/js/webext/printing try_HasOnJobStatusChanged
   224  //go:noescape
   225  func TryHasOnJobStatusChanged(
   226  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   227  	callback js.Ref) (ok js.Ref)
   228  
   229  //go:wasmimport plat/js/webext/printing has_SubmitJob
   230  //go:noescape
   231  func HasFuncSubmitJob() js.Ref
   232  
   233  //go:wasmimport plat/js/webext/printing func_SubmitJob
   234  //go:noescape
   235  func FuncSubmitJob(fn unsafe.Pointer)
   236  
   237  //go:wasmimport plat/js/webext/printing call_SubmitJob
   238  //go:noescape
   239  func CallSubmitJob(
   240  	retPtr unsafe.Pointer,
   241  	request unsafe.Pointer)
   242  
   243  //go:wasmimport plat/js/webext/printing try_SubmitJob
   244  //go:noescape
   245  func TrySubmitJob(
   246  	retPtr unsafe.Pointer, errPtr unsafe.Pointer,
   247  	request unsafe.Pointer) (ok js.Ref)