Module: FFI::Cups
- Extended by:
- Library
- Defined in:
- lib/ffi-cups/ffi/cups.rb,
lib/ffi-cups/ffi/array.rb,
lib/ffi-cups/ffi/http.rb
Overview
cups.h Programming Manual cups.h source
Defined Under Namespace
Instance Method Summary collapse
-
#cupsAddOption(string, string, int, pointer) ⇒ Integer
Add an option to an option array.
-
#cupsCancelDestJob(string, int) ⇒ Integer
Cancel a job on a destination.
-
#cupsCancelJob(string, int) ⇒ Object
Cancel a job on a destination name.
-
#cupsCancelJob2(pointer, string, int) ⇒ Object
Cancel a job on a destination.
-
#cupsCheckDestSupported(pointer, pointer, pointer, string, string) ⇒ Integer
Check that the option and value are supported by the destination.
-
#cupsCopyDestInfo(pointer, pointer) ⇒ Pointer
Get the supported values/capabilities for the destination.
-
#cupsCreateJob(pointer, string, string, int, pointer) ⇒ Integer
Create a job on a destination.
-
#cupsEncryption ⇒ Integer
Get the current encryption settings.
- #cupsFinishDocument(pointer, string) ⇒ Cups::Enum::IPP::Status
-
#cupsFreeDests(int, pointer) ⇒ Object
Free the memory used by the list of destinations.
-
#cupsFreeJobs(int, pointer) ⇒ Object
Free memory used by job data.
-
#cupsFreeOptions(int, pointer) ⇒ Object
Free all memory used by options.
-
#cupsGetDest(string, string, int, pointer) ⇒ Pointer, NULL
Get the named destination from the list.
-
#cupsGetDests2(pointer, pointer) ⇒ Integer
Get the list of destinations from the specified server.
-
#cupsGetJobs(pointer, string, int, int) ⇒ Integer
Get the jobs.
-
#cupsGetJobs2(pointer, pointer, string, int, int) ⇒ Integer
Get the jobs from a connection https://www.cups.org/doc/cupspm.html#cupsGetJobs2.
-
#cupsLastErrorString ⇒ String
Returns the last error in string format.
-
#cupsPrintFile(string, string, string, int, pointer) ⇒ Integer
Prints a File.
-
#cupsPrintFile2(pointer, string, string, string, int, pointer) ⇒ Integer
Prints a file from a specific connection.
-
#cupsStartDocument(pointer, string, int, string, string, int) ⇒ Cups::Enum::HTTP::Status
Start a document https://www.cups.org/doc/cupspm.html#submitting-a-print-job.
- #cupsWriteRequestData(pointer, pointer, bytesize) ⇒ Cups::Enum::HTTP::Status
Instance Method Details
#cupsAddOption(string, string, int, pointer) ⇒ Integer
Add an option to an option array. https://www.cups.org/doc/cupspm.html#cupsAddOption
176 |
# File 'lib/ffi-cups/ffi/cups.rb', line 176 attach_function 'cupsAddOption', [:string, :string, :int, :pointer], :int, blocking: true |
#cupsCancelDestJob(string, int) ⇒ Integer
Cancel a job on a destination. https://www.cups.org/doc/cupspm.html#cupsCancelDestJob
91 |
# File 'lib/ffi-cups/ffi/cups.rb', line 91 attach_function 'cupsCancelDestJob', [:string, :int], :void, blocking: true |
#cupsCancelJob(string, int) ⇒ Object
Cancel a job on a destination name
97 |
# File 'lib/ffi-cups/ffi/cups.rb', line 97 attach_function 'cupsCancelJob', [:string, :int], :void, blocking: true |
#cupsCancelJob2(pointer, string, int) ⇒ Object
Cancel a job on a destination
104 |
# File 'lib/ffi-cups/ffi/cups.rb', line 104 attach_function 'cupsCancelJob2', [:pointer, :string, :int], :void, blocking: true |
#cupsCheckDestSupported(pointer, pointer, pointer, string, string) ⇒ Integer
Check that the option and value are supported by the destination. https://www.cups.org/doc/cupspm.html#cupsCheckDestSupported
24 |
# File 'lib/ffi-cups/ffi/cups.rb', line 24 attach_function 'cupsCheckDestSupported', [:pointer, :pointer, :pointer, :string, :string], :int, blocking: true |
#cupsCopyDestInfo(pointer, pointer) ⇒ Pointer
Get the supported values/capabilities for the destination. https://www.cups.org/doc/cupspm.html#cupsCopyDestInfo
32 |
# File 'lib/ffi-cups/ffi/cups.rb', line 32 attach_function 'cupsCopyDestInfo', [:pointer, :pointer], :pointer, blocking: true |
#cupsCreateJob(pointer, string, string, int, pointer) ⇒ Integer
Create a job on a destination.
141 |
# File 'lib/ffi-cups/ffi/cups.rb', line 141 attach_function 'cupsCreateJob', [:pointer, :string, :string, :int, :pointer], :int, blocking: true |
#cupsEncryption ⇒ Integer
Get the current encryption settings. https://www.cups.org/doc/cupspm.html#cupsEncryption
13 |
# File 'lib/ffi-cups/ffi/cups.rb', line 13 attach_function 'cupsEncryption', [], :int, blocking: true |
#cupsFinishDocument(pointer, string) ⇒ Cups::Enum::IPP::Status
166 |
# File 'lib/ffi-cups/ffi/cups.rb', line 166 attach_function 'cupsFinishDocument', [:pointer, :string], Cups::Enum::IPP::Status, blocking: true |
#cupsFreeDests(int, pointer) ⇒ Object
Free the memory used by the list of destinations. https://www.cups.org/doc/cupspm.html#cupsFreeDests
57 |
# File 'lib/ffi-cups/ffi/cups.rb', line 57 attach_function 'cupsFreeDests', [:int, :pointer], :void, blocking: true |
#cupsFreeJobs(int, pointer) ⇒ Object
Free memory used by job data. https://www.cups.org/doc/cupspm.html#cupsFreeJobs
131 |
# File 'lib/ffi-cups/ffi/cups.rb', line 131 attach_function 'cupsFreeJobs', [:int, :pointer ], :void, blocking: true |
#cupsFreeOptions(int, pointer) ⇒ Object
Free all memory used by options. https://www.cups.org/doc/cupspm.html#cupsFreeOptions
183 |
# File 'lib/ffi-cups/ffi/cups.rb', line 183 attach_function 'cupsFreeOptions', [:int, :pointer], :void, blocking: true |
#cupsGetDest(string, string, int, pointer) ⇒ Pointer, NULL
Get the named destination from the list. https://www.cups.org/doc/cupspm.html#cupsGetDest
42 |
# File 'lib/ffi-cups/ffi/cups.rb', line 42 attach_function 'cupsGetDest', [:string, :string, :int, :pointer], :pointer, blocking: true |
#cupsGetDests2(pointer, pointer) ⇒ Integer
Get the list of destinations from the specified server. https://www.cups.org/doc/cupspm.html#cupsGetDests2
50 |
# File 'lib/ffi-cups/ffi/cups.rb', line 50 attach_function 'cupsGetDests2', [:pointer, :pointer], :int, blocking: true |
#cupsGetJobs(pointer, string, int, int) ⇒ Integer
Get the jobs
124 |
# File 'lib/ffi-cups/ffi/cups.rb', line 124 attach_function 'cupsGetJobs', [:pointer, :string, :int, :int], :int, blocking: true |
#cupsGetJobs2(pointer, pointer, string, int, int) ⇒ Integer
Get the jobs from a connection https://www.cups.org/doc/cupspm.html#cupsGetJobs2
115 |
# File 'lib/ffi-cups/ffi/cups.rb', line 115 attach_function 'cupsGetJobs2', [:pointer, :pointer, :string, :int, :int], :int, blocking: true |
#cupsLastErrorString ⇒ String
Returns the last error in string format
82 |
# File 'lib/ffi-cups/ffi/cups.rb', line 82 attach_function 'cupsLastErrorString', [], :string, blocking: true |
#cupsPrintFile(string, string, string, int, pointer) ⇒ Integer
Prints a File
67 |
# File 'lib/ffi-cups/ffi/cups.rb', line 67 attach_function 'cupsPrintFile', [ :string, :string, :string, :int, :pointer ], :int, blocking: true |
#cupsPrintFile2(pointer, string, string, string, int, pointer) ⇒ Integer
Prints a file from a specific connection
78 |
# File 'lib/ffi-cups/ffi/cups.rb', line 78 attach_function 'cupsPrintFile2', [ :pointer, :string, :string, :string, :int, :pointer ], :int, blocking: true |
#cupsStartDocument(pointer, string, int, string, string, int) ⇒ Cups::Enum::HTTP::Status
Start a document https://www.cups.org/doc/cupspm.html#submitting-a-print-job
153 |
# File 'lib/ffi-cups/ffi/cups.rb', line 153 attach_function 'cupsStartDocument', [:pointer, :string, :int, :string, :string, :int], Cups::Enum::HTTP::Status, blocking: true |
#cupsWriteRequestData(pointer, pointer, bytesize) ⇒ Cups::Enum::HTTP::Status
160 |
# File 'lib/ffi-cups/ffi/cups.rb', line 160 attach_function 'cupsWriteRequestData', [:pointer, :pointer, :size_t], Cups::Enum::HTTP::Status, blocking: true |