cupsffi 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc42d5733faba1d922a1bb2049ffb676891d825
4
- data.tar.gz: adf32d3a751973533fb46eda8fd9f004d50aba9e
3
+ metadata.gz: a00b751119118675b1800d921545223fd6ef3b27
4
+ data.tar.gz: 6dc4313c292e275fecfc2c88f29354f1efc8c4df
5
5
  SHA512:
6
- metadata.gz: ffced75bf023e694075a312097dba31f28a42078a56c685bcf0d71cbd2dd62d34a6257e6cb42c7b318af3d723bebe286dc39e5de6f68d98ae4d7b35fb1490944
7
- data.tar.gz: 3f48bdcdea3b8427b1362cba31932fbc3c60c1e5abc953698d860f5c3b74911bed7d6387b5b3e8c2f112b6b50e51ba035b1292f26fa56ebfdcddd88720141b67
6
+ metadata.gz: b8d58f814d61acab147f6c9f83c2c158a26df88b38a19ceffaf9fc0d99a53292e271c1895d639c654ba47d895efefa8f2ce0557fb2091dc3ec79364a13948123
7
+ data.tar.gz: 60fc8f6a34d161e35dfa99bfd466324fce0f1ef38921c8fdf59bdaf9a90a28bf8e9d16210f9eccb4a8ff6f5d268a52d50ba69bd41ae0e4e6e1593055dd3e2555
data/lib/cupsffi/lib.rb CHANGED
@@ -170,18 +170,18 @@ module CupsFFI
170
170
 
171
171
 
172
172
 
173
- attach_function 'cupsEncryption', [], :int
174
- attach_function 'httpConnectEncrypt', [ :string, :int, :int], :pointer
175
- attach_function 'httpClose', [ :pointer ], :void
173
+ attach_function 'cupsEncryption', [], :int, blocking: true
174
+ attach_function 'httpConnectEncrypt', [ :string, :int, :int], :pointer, blocking: true
175
+ attach_function 'httpClose', [ :pointer ], :void, blocking: true
176
176
 
177
177
 
178
- attach_function 'cupsGetDests', [ :pointer ], :int
178
+ attach_function 'cupsGetDests', [ :pointer ], :int, blocking: true
179
179
 
180
- attach_function 'cupsGetDests2', [ :pointer, :pointer ], :int
180
+ attach_function 'cupsGetDests2', [ :pointer, :pointer ], :int, blocking: true
181
181
 
182
182
  # :int is the number of CupsDestS structs to free
183
183
  # :pointer is the first one
184
- attach_function 'cupsFreeDests', [ :int, :pointer ], :void
184
+ attach_function 'cupsFreeDests', [ :int, :pointer ], :void, blocking: true
185
185
 
186
186
  # Parameters:
187
187
  # - printer name
@@ -191,18 +191,18 @@ module CupsFFI
191
191
  # - a pointer to a CupsOptionS struct
192
192
  # Returns
193
193
  # - job number or 0 on error
194
- attach_function 'cupsPrintFile', [ :string, :string, :string, :int, :pointer ], :int
194
+ attach_function 'cupsPrintFile', [ :string, :string, :string, :int, :pointer ], :int, blocking: true
195
195
 
196
- attach_function 'cupsPrintFile2', [ :pointer, :string, :string, :string, :int, :pointer ], :int
196
+ attach_function 'cupsPrintFile2', [ :pointer, :string, :string, :string, :int, :pointer ], :int, blocking: true
197
197
 
198
- attach_function 'cupsLastErrorString', [], :string
198
+ attach_function 'cupsLastErrorString', [], :string, blocking: true
199
199
 
200
200
  # Parameters
201
201
  # - printer name
202
202
  # - job id
203
- attach_function 'cupsCancelJob', [:string, :int], :void
203
+ attach_function 'cupsCancelJob', [:string, :int], :void, blocking: true
204
204
 
205
- attach_function 'cupsCancelJob2', [:pointer, :string, :int], :void
205
+ attach_function 'cupsCancelJob2', [:pointer, :string, :int], :void, blocking: true
206
206
 
207
207
  # Parameters
208
208
  # - pointer to struct CupsJobS to populate
@@ -211,12 +211,12 @@ module CupsFFI
211
211
  # - whichjobs (CUPS_WHICHJOBS_ALL, CUPS_WHICHJOBS_ACTIVE, or CUPS_WHICHJOBS_COMPLETED)
212
212
  # Returns:
213
213
  # - number of jobs
214
- attach_function 'cupsGetJobs', [:pointer, :string, :int, :int], :int
214
+ attach_function 'cupsGetJobs', [:pointer, :string, :int, :int], :int, blocking: true
215
215
 
216
216
  # Parameters
217
217
  # - number of jobs
218
218
  # - pointer to the first CupsJobS to free
219
- attach_function 'cupsFreeJobs', [:int, :pointer ], :void
219
+ attach_function 'cupsFreeJobs', [:int, :pointer ], :void, blocking: true
220
220
 
221
221
  # Parameters
222
222
  # - pointer to http connection to server or CUPS_HTTP_DEFAULT
@@ -226,7 +226,7 @@ module CupsFFI
226
226
  # - pointer to a CupsOptionS struct
227
227
  # Returns
228
228
  # - job number or 0 on error
229
- attach_function 'cupsCreateJob', [:pointer, :string, :string, :int, :pointer], :int
229
+ attach_function 'cupsCreateJob', [:pointer, :string, :string, :int, :pointer], :int, blocking: true
230
230
 
231
231
  # Parameters
232
232
  # - pointer to http connection to server or CUPS_HTTP_DEFAULT
@@ -237,7 +237,7 @@ module CupsFFI
237
237
  # - last document (1 for last document in job, 0 otherwise)
238
238
  # Returns
239
239
  # - HttpStatus
240
- attach_function 'cupsStartDocument', [:pointer, :string, :int, :string, :string, :int], HttpStatus
240
+ attach_function 'cupsStartDocument', [:pointer, :string, :int, :string, :string, :int], HttpStatus, blocking: true
241
241
 
242
242
  # Parameters
243
243
  # - pointer to http connection to server or CUPS_HTTP_DEFAULT
@@ -245,21 +245,21 @@ module CupsFFI
245
245
  # - length of data
246
246
  # Returns
247
247
  # - HttpStatus
248
- attach_function 'cupsWriteRequestData', [:pointer, :pointer, :size_t], HttpStatus
248
+ attach_function 'cupsWriteRequestData', [:pointer, :pointer, :size_t], HttpStatus, blocking: true
249
249
 
250
250
  # Parameters
251
251
  # - pointer to http connection to server or CUPS_HTTP_DEFAULT
252
252
  # - printer name
253
253
  # Returns
254
254
  # - IppStatus
255
- attach_function 'cupsFinishDocument', [:pointer, :string], IppStatus
255
+ attach_function 'cupsFinishDocument', [:pointer, :string], IppStatus, blocking: true
256
256
 
257
257
  # Parameters
258
258
  # - printer name
259
259
  # Returns
260
260
  # - filename for PPD file
261
- attach_function 'cupsGetPPD', [:string], :string
262
- attach_function 'cupsGetPPD2', [:pointer, :string], :string
261
+ attach_function 'cupsGetPPD', [:string], :string, blocking: true
262
+ attach_function 'cupsGetPPD2', [:pointer, :string], :string, blocking: true
263
263
 
264
264
  # Parameters
265
265
  # - option name
@@ -268,12 +268,12 @@ module CupsFFI
268
268
  # - pointer to options
269
269
  # Returns
270
270
  # - number of options
271
- attach_function 'cupsAddOption', [:string, :string, :int, :pointer], :int
271
+ attach_function 'cupsAddOption', [:string, :string, :int, :pointer], :int, blocking: true
272
272
 
273
273
  # Parameters
274
274
  # - number of options
275
275
  # - pointer to options
276
- attach_function 'cupsFreeOptions', [:int, :pointer], :void
276
+ attach_function 'cupsFreeOptions', [:int, :pointer], :void, blocking: true
277
277
 
278
278
 
279
279
 
@@ -389,23 +389,23 @@ module CupsFFI
389
389
  # - filename for PPD file
390
390
  # Returns
391
391
  # - pointer to PPDFileS struct
392
- attach_function 'ppdOpenFile', [:string], :pointer
392
+ attach_function 'ppdOpenFile', [:string], :pointer, blocking: true
393
393
 
394
394
  # Parameters
395
395
  # - pointer to PPDFileS struct
396
- attach_function 'ppdClose', [:pointer], :void
396
+ attach_function 'ppdClose', [:pointer], :void, blocking: true
397
397
 
398
398
  # Parameters
399
399
  # - pointer to PPDFileS struct
400
400
  # Returns
401
401
  # - pointer to PPDOptionS struct
402
- attach_function 'ppdFirstOption', [:pointer], :pointer
402
+ attach_function 'ppdFirstOption', [:pointer], :pointer, blocking: true
403
403
 
404
404
  # Parameters
405
405
  # - pointer to PPDFileS struct
406
406
  # Returns
407
407
  # - pointer to PPDOptionS struct
408
- attach_function 'ppdNextOption', [:pointer], :pointer
408
+ attach_function 'ppdNextOption', [:pointer], :pointer, blocking: true
409
409
 
410
410
  # Parameters
411
411
  # - pointer to PPDFileS struct
@@ -413,7 +413,7 @@ module CupsFFI
413
413
  # - spec name
414
414
  # Returns
415
415
  # - pointer to PPDAttrS struct
416
- attach_function 'ppdFindAttr', [:pointer, :string, :string], :pointer
416
+ attach_function 'ppdFindAttr', [:pointer, :string, :string], :pointer, blocking: true
417
417
 
418
418
  # Parameters
419
419
  # - pointer to PPDFileS struct
@@ -421,14 +421,14 @@ module CupsFFI
421
421
  # - spec name
422
422
  # Returns
423
423
  # - pointer to PPDAttrS struct
424
- attach_function 'ppdFindNextAttr', [:pointer, :string, :string], :pointer
424
+ attach_function 'ppdFindNextAttr', [:pointer, :string, :string], :pointer, blocking: true
425
425
 
426
426
  # Parameters
427
427
  # - pointer to PPDFileS struct
428
428
  # - page name
429
429
  # Returns
430
430
  # - pointer to PPDSizeS struct
431
- attach_function 'ppdPageSize', [:pointer, :string], :pointer
431
+ attach_function 'ppdPageSize', [:pointer, :string], :pointer, blocking: true
432
432
 
433
433
 
434
434
 
@@ -439,11 +439,11 @@ module CupsFFI
439
439
  # - pointer to _cups_array_s struct
440
440
  # Returns
441
441
  # - void pointer to first element
442
- attach_function 'cupsArrayFirst', [:pointer], :pointer
442
+ attach_function 'cupsArrayFirst', [:pointer], :pointer, blocking: true
443
443
 
444
444
  # Parameters
445
445
  # - pointer to _cups_array_s struct
446
446
  # Returns
447
447
  # - void pointer to first element
448
- attach_function 'cupsArrayNext', [:pointer], :pointer
448
+ attach_function 'cupsArrayNext', [:pointer], :pointer, blocking: true
449
449
  end
@@ -1,3 +1,3 @@
1
1
  module Cupsffi
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,30 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cupsffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ehresman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-07 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: ffi
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - ">="
17
18
  - !ruby/object:Gem::Version
18
19
  version: '0'
19
- name: ffi
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: Simple wrapper around libcups to give CUPS printing capabilities to Ruby apps.
27
+ description: Simple wrapper around libcups to give CUPS printing capabilities to Ruby
28
+ apps.
28
29
  email:
29
30
  - nehresma@gmail.com
30
31
  executables: []
@@ -46,7 +47,7 @@ files:
46
47
  homepage: https://github.com/nehresma/cupsffi
47
48
  licenses: []
48
49
  metadata: {}
49
- post_install_message:
50
+ post_install_message:
50
51
  rdoc_options: []
51
52
  require_paths:
52
53
  - lib
@@ -62,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  version: '0'
63
64
  requirements: []
64
65
  rubyforge_project: cupsffi
65
- rubygems_version: 2.6.8
66
- signing_key:
66
+ rubygems_version: 2.5.1
67
+ signing_key:
67
68
  specification_version: 4
68
69
  summary: FFI wrapper around libcups
69
70
  test_files: []