czmq-ffi-gen 0.13.0-x86-mingw32 → 0.14.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +13 -0
  3. data/lib/czmq-ffi-gen/czmq/ffi.rb +224 -698
  4. data/lib/czmq-ffi-gen/czmq/ffi/zactor.rb +40 -7
  5. data/lib/czmq-ffi-gen/czmq/ffi/zargs.rb +259 -0
  6. data/lib/czmq-ffi-gen/czmq/ffi/zarmour.rb +3 -3
  7. data/lib/czmq-ffi-gen/czmq/ffi/zcert.rb +15 -6
  8. data/lib/czmq-ffi-gen/czmq/ffi/zcertstore.rb +25 -11
  9. data/lib/czmq-ffi-gen/czmq/ffi/zchunk.rb +18 -18
  10. data/lib/czmq-ffi-gen/czmq/ffi/zclock.rb +6 -6
  11. data/lib/czmq-ffi-gen/czmq/ffi/zconfig.rb +27 -17
  12. data/lib/czmq-ffi-gen/czmq/ffi/zdigest.rb +4 -4
  13. data/lib/czmq-ffi-gen/czmq/ffi/zdir.rb +36 -36
  14. data/lib/czmq-ffi-gen/czmq/ffi/zdir_patch.rb +1 -1
  15. data/lib/czmq-ffi-gen/czmq/ffi/zfile.rb +27 -19
  16. data/lib/czmq-ffi-gen/czmq/ffi/zframe.rb +22 -21
  17. data/lib/czmq-ffi-gen/czmq/ffi/zhash.rb +54 -54
  18. data/lib/czmq-ffi-gen/czmq/ffi/zhashx.rb +82 -80
  19. data/lib/czmq-ffi-gen/czmq/ffi/ziflist.rb +30 -0
  20. data/lib/czmq-ffi-gen/czmq/ffi/zlist.rb +30 -30
  21. data/lib/czmq-ffi-gen/czmq/ffi/zlistx.rb +44 -44
  22. data/lib/czmq-ffi-gen/czmq/ffi/zloop.rb +39 -39
  23. data/lib/czmq-ffi-gen/czmq/ffi/zmsg.rb +46 -46
  24. data/lib/czmq-ffi-gen/czmq/ffi/zpoller.rb +16 -16
  25. data/lib/czmq-ffi-gen/czmq/ffi/zproc.rb +237 -34
  26. data/lib/czmq-ffi-gen/czmq/ffi/zsock.rb +1201 -973
  27. data/lib/czmq-ffi-gen/czmq/ffi/zstr.rb +58 -19
  28. data/lib/czmq-ffi-gen/czmq/ffi/zsys.rb +836 -0
  29. data/lib/czmq-ffi-gen/czmq/ffi/ztimerset.rb +6 -6
  30. data/lib/czmq-ffi-gen/czmq/ffi/ztrie.rb +10 -10
  31. data/lib/czmq-ffi-gen/czmq/ffi/zuuid.rb +4 -4
  32. data/lib/czmq-ffi-gen/gem_version.rb +1 -1
  33. data/lib/czmq-ffi-gen/vendor.rb +9 -1
  34. data/vendor/local/bin/inproc_lat.exe +0 -0
  35. data/vendor/local/bin/inproc_thr.exe +0 -0
  36. data/vendor/local/bin/libczmq.dll +0 -0
  37. data/vendor/local/bin/libzmq.dll +0 -0
  38. data/vendor/local/bin/local_lat.exe +0 -0
  39. data/vendor/local/bin/local_thr.exe +0 -0
  40. data/vendor/local/bin/remote_lat.exe +0 -0
  41. data/vendor/local/bin/remote_thr.exe +0 -0
  42. data/vendor/local/bin/zmakecert.exe +0 -0
  43. data/vendor/local/include/czmq_library.h +18 -9
  44. data/vendor/local/include/czmq_prelude.h +104 -16
  45. data/vendor/local/include/zactor.h +25 -7
  46. data/vendor/local/include/zarmour.h +3 -3
  47. data/vendor/local/include/zcert.h +11 -6
  48. data/vendor/local/include/zcertstore.h +18 -9
  49. data/vendor/local/include/zchunk.h +18 -18
  50. data/vendor/local/include/zclock.h +6 -6
  51. data/vendor/local/include/zconfig.h +25 -16
  52. data/vendor/local/include/zdigest.h +4 -4
  53. data/vendor/local/include/zdir.h +36 -36
  54. data/vendor/local/include/zdir_patch.h +1 -1
  55. data/vendor/local/include/zfile.h +27 -19
  56. data/vendor/local/include/zframe.h +22 -21
  57. data/vendor/local/include/zgossip.h +5 -5
  58. data/vendor/local/include/zgossip_engine.inc +103 -22
  59. data/vendor/local/include/zgossip_msg.h +28 -30
  60. data/vendor/local/include/zhash.h +53 -53
  61. data/vendor/local/include/zhashx.h +75 -73
  62. data/vendor/local/include/ziflist.h +22 -1
  63. data/vendor/local/include/zlist.h +28 -28
  64. data/vendor/local/include/zlistx.h +41 -41
  65. data/vendor/local/include/zloop.h +36 -36
  66. data/vendor/local/include/zmsg.h +46 -46
  67. data/vendor/local/include/zpoller.h +16 -16
  68. data/vendor/local/include/zsock.h +414 -364
  69. data/vendor/local/include/zsock_option.inc +234 -1062
  70. data/vendor/local/include/zstr.h +44 -19
  71. data/vendor/local/include/zsys.h +63 -19
  72. data/vendor/local/include/zuuid.h +4 -4
  73. data/vendor/local/lib/libczmq.dll.a +0 -0
  74. data/vendor/local/lib/liblibzmq.dll.a +0 -0
  75. data/vendor/local/lib/pkgconfig/libczmq.pc +1 -1
  76. metadata +6 -3
@@ -40,14 +40,14 @@ CZMQ_EXPORT void
40
40
 
41
41
  // Encode a stream of bytes into an armoured string. Returns the armoured
42
42
  // string, or NULL if there was insufficient memory available to allocate
43
- // a new string.
43
+ // a new string.
44
44
  // Caller owns return value and must destroy it when done.
45
45
  CZMQ_EXPORT char *
46
46
  zarmour_encode (zarmour_t *self, const byte *data, size_t size);
47
47
 
48
- // Decode an armoured string into a chunk. The decoded output is
48
+ // Decode an armoured string into a chunk. The decoded output is
49
49
  // null-terminated, so it may be treated as a string, if that's what
50
- // it was prior to encoding.
50
+ // it was prior to encoding.
51
51
  // Caller owns return value and must destroy it when done.
52
52
  CZMQ_EXPORT zchunk_t *
53
53
  zarmour_decode (zarmour_t *self, const char *data);
@@ -62,16 +62,16 @@ CZMQ_EXPORT void
62
62
  zcert_set_meta (zcert_t *self, const char *name, const char *format, ...) CHECK_PRINTF (3);
63
63
 
64
64
  // Get metadata value from certificate; if the metadata value doesn't
65
- // exist, returns NULL.
65
+ // exist, returns NULL.
66
66
  CZMQ_EXPORT const char *
67
67
  zcert_meta (zcert_t *self, const char *name);
68
68
 
69
69
  // Get list of metadata fields from certificate. Caller is responsible for
70
- // destroying list. Caller should not modify the values of list items.
70
+ // destroying list. Caller should not modify the values of list items.
71
71
  CZMQ_EXPORT zlist_t *
72
72
  zcert_meta_keys (zcert_t *self);
73
73
 
74
- // Save full certificate (public + secret) to file for persistent storage
74
+ // Save full certificate (public + secret) to file for persistent storage
75
75
  // This creates one public file and one secret file (filename + "_secret").
76
76
  CZMQ_EXPORT int
77
77
  zcert_save (zcert_t *self, const char *filename);
@@ -85,13 +85,13 @@ CZMQ_EXPORT int
85
85
  zcert_save_secret (zcert_t *self, const char *filename);
86
86
 
87
87
  // Apply certificate to socket, i.e. use for CURVE security on socket.
88
- // If certificate was loaded from public file, the secret key will be
89
- // undefined, and this certificate will not work successfully.
88
+ // If certificate was loaded from public file, the secret key will be
89
+ // undefined, and this certificate will not work successfully.
90
90
  CZMQ_EXPORT void
91
91
  zcert_apply (zcert_t *self, void *socket);
92
92
 
93
93
  // Return copy of certificate; if certificate is NULL or we exhausted
94
- // heap memory, returns NULL.
94
+ // heap memory, returns NULL.
95
95
  // Caller owns return value and must destroy it when done.
96
96
  CZMQ_EXPORT zcert_t *
97
97
  zcert_dup (zcert_t *self);
@@ -109,6 +109,11 @@ CZMQ_EXPORT void
109
109
  zcert_test (bool verbose);
110
110
 
111
111
  #ifdef CZMQ_BUILD_DRAFT_API
112
+ // *** Draft method, for development use, may change without warning ***
113
+ // Accepts public/secret key text pair from caller
114
+ CZMQ_EXPORT zcert_t *
115
+ zcert_new_from_txt (const char *public_txt, const char *secret_txt);
116
+
112
117
  // *** Draft method, for development use, may change without warning ***
113
118
  // Unset certificate metadata.
114
119
  CZMQ_EXPORT void
@@ -25,28 +25,28 @@ extern "C" {
25
25
  // is provided in stable builds.
26
26
  // This class has draft methods, which may change over time. They are not
27
27
  // in stable releases, by default. Use --enable-drafts to enable.
28
- // Create a new certificate store from a disk directory, loading and
29
- // indexing all certificates in that location. The directory itself may be
28
+ // Create a new certificate store from a disk directory, loading and
29
+ // indexing all certificates in that location. The directory itself may be
30
30
  // absent, and created later, or modified at any time. The certificate store
31
- // is automatically refreshed on any zcertstore_lookup() call. If the
32
- // location is specified as NULL, creates a pure-memory store, which you
33
- // can work with by inserting certificates at runtime.
31
+ // is automatically refreshed on any zcertstore_lookup() call. If the
32
+ // location is specified as NULL, creates a pure-memory store, which you
33
+ // can work with by inserting certificates at runtime.
34
34
  CZMQ_EXPORT zcertstore_t *
35
35
  zcertstore_new (const char *location);
36
36
 
37
37
  // Destroy a certificate store object in memory. Does not affect anything
38
- // stored on disk.
38
+ // stored on disk.
39
39
  CZMQ_EXPORT void
40
40
  zcertstore_destroy (zcertstore_t **self_p);
41
41
 
42
42
  // Look up certificate by public key, returns zcert_t object if found,
43
- // else returns NULL. The public key is provided in Z85 text format.
43
+ // else returns NULL. The public key is provided in Z85 text format.
44
44
  CZMQ_EXPORT zcert_t *
45
45
  zcertstore_lookup (zcertstore_t *self, const char *public_key);
46
46
 
47
47
  // Insert certificate into certificate store in memory. Note that this
48
48
  // does not save the certificate to disk. To do that, use zcert_save()
49
- // directly on the certificate. Takes ownership of zcert_t object.
49
+ // directly on the certificate. Takes ownership of zcert_t object.
50
50
  CZMQ_EXPORT void
51
51
  zcertstore_insert (zcertstore_t *self, zcert_t **cert_p);
52
52
 
@@ -74,10 +74,19 @@ CZMQ_EXPORT void
74
74
 
75
75
  // *** Draft method, for development use, may change without warning ***
76
76
  // Empty certificate hashtable. This wrapper exists to be friendly to bindings,
77
- // which don't usually have access to struct internals.
77
+ // which don't usually have access to struct internals.
78
78
  CZMQ_EXPORT void
79
79
  zcertstore_empty (zcertstore_t *self);
80
80
 
81
+ // *** Draft method, for development use, may change without warning ***
82
+ // Return a list of all the certificates in the store.
83
+ // The caller takes ownership of the zlistx_t object and is responsible
84
+ // for destroying it. The caller does not take ownership of the zcert_t
85
+ // objects.
86
+ // Caller owns return value and must destroy it when done.
87
+ CZMQ_EXPORT zlistx_t *
88
+ zcertstore_certs (zcertstore_t *self);
89
+
81
90
  #endif // CZMQ_BUILD_DRAFT_API
82
91
  // @end
83
92
 
@@ -23,8 +23,8 @@ extern "C" {
23
23
  // @interface
24
24
  // This is a stable class, and may not change except for emergencies. It
25
25
  // is provided in stable builds.
26
- // Create a new chunk of the specified size. If you specify the data, it
27
- // is copied into the chunk. If you do not specify the data, the chunk is
26
+ // Create a new chunk of the specified size. If you specify the data, it
27
+ // is copied into the chunk. If you do not specify the data, the chunk is
28
28
  // allocated and left empty, and you can then add data using zchunk_append.
29
29
  CZMQ_EXPORT zchunk_t *
30
30
  zchunk_new (const void *data, size_t size);
@@ -50,7 +50,7 @@ CZMQ_EXPORT byte *
50
50
  zchunk_data (zchunk_t *self);
51
51
 
52
52
  // Set chunk data from user-supplied data; truncate if too large. Data may
53
- // be null. Returns actual size of chunk
53
+ // be null. Returns actual size of chunk
54
54
  CZMQ_EXPORT size_t
55
55
  zchunk_set (zchunk_t *self, const void *data, size_t size);
56
56
 
@@ -58,26 +58,26 @@ CZMQ_EXPORT size_t
58
58
  CZMQ_EXPORT size_t
59
59
  zchunk_fill (zchunk_t *self, byte filler, size_t size);
60
60
 
61
- // Append user-supplied data to chunk, return resulting chunk size. If the
61
+ // Append user-supplied data to chunk, return resulting chunk size. If the
62
62
  // data would exceeded the available space, it is truncated. If you want to
63
- // grow the chunk to accommodate new data, use the zchunk_extend method.
63
+ // grow the chunk to accommodate new data, use the zchunk_extend method.
64
64
  CZMQ_EXPORT size_t
65
65
  zchunk_append (zchunk_t *self, const void *data, size_t size);
66
66
 
67
67
  // Append user-supplied data to chunk, return resulting chunk size. If the
68
- // data would exceeded the available space, the chunk grows in size.
68
+ // data would exceeded the available space, the chunk grows in size.
69
69
  CZMQ_EXPORT size_t
70
70
  zchunk_extend (zchunk_t *self, const void *data, size_t size);
71
71
 
72
- // Copy as much data from 'source' into the chunk as possible; returns the
73
- // new size of chunk. If all data from 'source' is used, returns exhausted
72
+ // Copy as much data from 'source' into the chunk as possible; returns the
73
+ // new size of chunk. If all data from 'source' is used, returns exhausted
74
74
  // on the source chunk. Source can be consumed as many times as needed until
75
- // it is exhausted. If source was already exhausted, does not change chunk.
75
+ // it is exhausted. If source was already exhausted, does not change chunk.
76
76
  CZMQ_EXPORT size_t
77
77
  zchunk_consume (zchunk_t *self, zchunk_t *source);
78
78
 
79
79
  // Returns true if the chunk was exhausted by consume methods, or if the
80
- // chunk has a size of zero.
80
+ // chunk has a size of zero.
81
81
  CZMQ_EXPORT bool
82
82
  zchunk_exhausted (zchunk_t *self);
83
83
 
@@ -90,29 +90,29 @@ CZMQ_EXPORT zchunk_t *
90
90
  CZMQ_EXPORT int
91
91
  zchunk_write (zchunk_t *self, FILE *handle);
92
92
 
93
- // Try to slurp an entire file into a chunk. Will read up to maxsize of
94
- // the file. If maxsize is 0, will attempt to read the entire file and
95
- // fail with an assertion if that cannot fit into memory. Returns a new
93
+ // Try to slurp an entire file into a chunk. Will read up to maxsize of
94
+ // the file. If maxsize is 0, will attempt to read the entire file and
95
+ // fail with an assertion if that cannot fit into memory. Returns a new
96
96
  // chunk containing the file data, or NULL if the file could not be read.
97
97
  // Caller owns return value and must destroy it when done.
98
98
  CZMQ_EXPORT zchunk_t *
99
99
  zchunk_slurp (const char *filename, size_t maxsize);
100
100
 
101
- // Create copy of chunk, as new chunk object. Returns a fresh zchunk_t
101
+ // Create copy of chunk, as new chunk object. Returns a fresh zchunk_t
102
102
  // object, or null if there was not enough heap memory. If chunk is null,
103
- // returns null.
103
+ // returns null.
104
104
  // Caller owns return value and must destroy it when done.
105
105
  CZMQ_EXPORT zchunk_t *
106
106
  zchunk_dup (zchunk_t *self);
107
107
 
108
108
  // Return chunk data encoded as printable hex string. Caller must free
109
- // string when finished with it.
109
+ // string when finished with it.
110
110
  // Caller owns return value and must destroy it when done.
111
111
  CZMQ_EXPORT char *
112
112
  zchunk_strhex (zchunk_t *self);
113
113
 
114
114
  // Return chunk data copied into freshly allocated string
115
- // Caller must free string when finished with it.
115
+ // Caller must free string when finished with it.
116
116
  // Caller owns return value and must destroy it when done.
117
117
  CZMQ_EXPORT char *
118
118
  zchunk_strdup (zchunk_t *self);
@@ -140,7 +140,7 @@ CZMQ_EXPORT void
140
140
  zchunk_fprint (zchunk_t *self, FILE *file);
141
141
 
142
142
  // Dump message to stderr, for debugging and tracing.
143
- // See zchunk_fprint for details
143
+ // See zchunk_fprint for details
144
144
  CZMQ_EXPORT void
145
145
  zchunk_print (zchunk_t *self);
146
146
 
@@ -27,21 +27,21 @@ extern "C" {
27
27
  CZMQ_EXPORT void
28
28
  zclock_sleep (int msecs);
29
29
 
30
- // Return current system clock as milliseconds. Note that this clock can
30
+ // Return current system clock as milliseconds. Note that this clock can
31
31
  // jump backwards (if the system clock is changed) so is unsafe to use for
32
- // timers and time offsets. Use zclock_mono for that instead.
32
+ // timers and time offsets. Use zclock_mono for that instead.
33
33
  CZMQ_EXPORT int64_t
34
34
  zclock_time (void);
35
35
 
36
36
  // Return current monotonic clock in milliseconds. Use this when you compute
37
- // time offsets. The monotonic clock is not affected by system changes and
38
- // so will never be reset backwards, unlike a system clock.
37
+ // time offsets. The monotonic clock is not affected by system changes and
38
+ // so will never be reset backwards, unlike a system clock.
39
39
  CZMQ_EXPORT int64_t
40
40
  zclock_mono (void);
41
41
 
42
42
  // Return current monotonic clock in microseconds. Use this when you compute
43
- // time offsets. The monotonic clock is not affected by system changes and
44
- // so will never be reset backwards, unlike a system clock.
43
+ // time offsets. The monotonic clock is not affected by system changes and
44
+ // so will never be reset backwards, unlike a system clock.
45
45
  CZMQ_EXPORT int64_t
46
46
  zclock_usecs (void);
47
47
 
@@ -23,7 +23,9 @@ extern "C" {
23
23
  // @interface
24
24
  // This is a stable class, and may not change except for emergencies. It
25
25
  // is provided in stable builds.
26
- //
26
+ // This class has draft methods, which may change over time. They are not
27
+ // in stable releases, by default. Use --enable-drafts to enable.
28
+ //
27
29
  typedef int (zconfig_fct) (
28
30
  zconfig_t *self, void *arg, int level);
29
31
 
@@ -31,14 +33,14 @@ typedef int (zconfig_fct) (
31
33
  CZMQ_EXPORT zconfig_t *
32
34
  zconfig_new (const char *name, zconfig_t *parent);
33
35
 
34
- // Load a config tree from a specified ZPL text file; returns a zconfig_t
36
+ // Load a config tree from a specified ZPL text file; returns a zconfig_t
35
37
  // reference for the root, if the file exists and is readable. Returns NULL
36
- // if the file does not exist.
38
+ // if the file does not exist.
37
39
  CZMQ_EXPORT zconfig_t *
38
40
  zconfig_load (const char *filename);
39
41
 
40
42
  // Equivalent to zconfig_load, taking a format string instead of a fixed
41
- // filename.
43
+ // filename.
42
44
  CZMQ_EXPORT zconfig_t *
43
45
  zconfig_loadf (const char *format, ...) CHECK_PRINTF (1);
44
46
 
@@ -59,12 +61,12 @@ CZMQ_EXPORT void
59
61
  zconfig_put (zconfig_t *self, const char *path, const char *value);
60
62
 
61
63
  // Equivalent to zconfig_put, accepting a format specifier and variable
62
- // argument list, instead of a single string value.
64
+ // argument list, instead of a single string value.
63
65
  CZMQ_EXPORT void
64
66
  zconfig_putf (zconfig_t *self, const char *path, const char *format, ...) CHECK_PRINTF (3);
65
67
 
66
68
  // Get value for config item into a string value; leading slash is optional
67
- // and ignored.
69
+ // and ignored.
68
70
  CZMQ_EXPORT char *
69
71
  zconfig_get (zconfig_t *self, const char *path, const char *default_value);
70
72
 
@@ -72,10 +74,10 @@ CZMQ_EXPORT char *
72
74
  CZMQ_EXPORT void
73
75
  zconfig_set_name (zconfig_t *self, const char *name);
74
76
 
75
- // Set new value for config item. The new value may be a string, a printf
76
- // format, or NULL. Note that if string may possibly contain '%', or if it
77
+ // Set new value for config item. The new value may be a string, a printf
78
+ // format, or NULL. Note that if string may possibly contain '%', or if it
77
79
  // comes from an insecure source, you must use '%s' as the format, followed
78
- // by the string.
80
+ // by the string.
79
81
  CZMQ_EXPORT void
80
82
  zconfig_set_value (zconfig_t *self, const char *format, ...) CHECK_PRINTF (2);
81
83
 
@@ -96,13 +98,13 @@ CZMQ_EXPORT zconfig_t *
96
98
  zconfig_at_depth (zconfig_t *self, int level);
97
99
 
98
100
  // Execute a callback for each config item in the tree; returns zero if
99
- // successful, else -1.
101
+ // successful, else -1.
100
102
  CZMQ_EXPORT int
101
103
  zconfig_execute (zconfig_t *self, zconfig_fct handler, void *arg);
102
104
 
103
105
  // Add comment to config item before saving to disk. You can add as many
104
106
  // comment lines as you like. If you use a null format, all comments are
105
- // deleted.
107
+ // deleted.
106
108
  CZMQ_EXPORT void
107
109
  zconfig_set_comment (zconfig_t *self, const char *format, ...) CHECK_PRINTF (2);
108
110
 
@@ -111,12 +113,12 @@ CZMQ_EXPORT zlist_t *
111
113
  zconfig_comments (zconfig_t *self);
112
114
 
113
115
  // Save a config tree to a specified ZPL text file, where a filename
114
- // "-" means dump to standard output.
116
+ // "-" means dump to standard output.
115
117
  CZMQ_EXPORT int
116
118
  zconfig_save (zconfig_t *self, const char *filename);
117
119
 
118
120
  // Equivalent to zconfig_save, taking a format string instead of a fixed
119
- // filename.
121
+ // filename.
120
122
  CZMQ_EXPORT int
121
123
  zconfig_savef (zconfig_t *self, const char *format, ...) CHECK_PRINTF (2);
122
124
 
@@ -125,8 +127,8 @@ CZMQ_EXPORT const char *
125
127
  zconfig_filename (zconfig_t *self);
126
128
 
127
129
  // Reload config tree from same file that it was previously loaded from.
128
- // Returns 0 if OK, -1 if there was an error (and then does not change
129
- // existing data).
130
+ // Returns 0 if OK, -1 if there was an error (and then does not change
131
+ // existing data).
130
132
  CZMQ_EXPORT int
131
133
  zconfig_reload (zconfig_t **self_p);
132
134
 
@@ -149,7 +151,7 @@ CZMQ_EXPORT char *
149
151
  zconfig_str_save (zconfig_t *self);
150
152
 
151
153
  // Return true if a configuration tree was loaded from a file and that
152
- // file has changed in since the tree was loaded.
154
+ // file has changed in since the tree was loaded.
153
155
  CZMQ_EXPORT bool
154
156
  zconfig_has_changed (zconfig_t *self);
155
157
 
@@ -165,6 +167,13 @@ CZMQ_EXPORT void
165
167
  CZMQ_EXPORT void
166
168
  zconfig_test (bool verbose);
167
169
 
170
+ #ifdef CZMQ_BUILD_DRAFT_API
171
+ // *** Draft method, for development use, may change without warning ***
172
+ // Destroy subtree (child)
173
+ CZMQ_EXPORT void
174
+ zconfig_remove (zconfig_t *self);
175
+
176
+ #endif // CZMQ_BUILD_DRAFT_API
168
177
  // @end
169
178
 
170
179
  // Self test of this class
@@ -24,7 +24,7 @@ extern "C" {
24
24
  // This is a stable class, and may not change except for emergencies. It
25
25
  // is provided in stable builds.
26
26
  // Constructor - creates new digest object, which you use to build up a
27
- // digest by repeatedly calling zdigest_update() on chunks of data.
27
+ // digest by repeatedly calling zdigest_update() on chunks of data.
28
28
  CZMQ_EXPORT zdigest_t *
29
29
  zdigest_new (void);
30
30
 
@@ -37,7 +37,7 @@ CZMQ_EXPORT void
37
37
  zdigest_update (zdigest_t *self, const byte *buffer, size_t length);
38
38
 
39
39
  // Return final digest hash data. If built without crypto support,
40
- // returns NULL.
40
+ // returns NULL.
41
41
  CZMQ_EXPORT const byte *
42
42
  zdigest_data (zdigest_t *self);
43
43
 
@@ -45,9 +45,9 @@ CZMQ_EXPORT const byte *
45
45
  CZMQ_EXPORT size_t
46
46
  zdigest_size (zdigest_t *self);
47
47
 
48
- // Return digest as printable hex string; caller should not modify nor
48
+ // Return digest as printable hex string; caller should not modify nor
49
49
  // free this string. After calling this, you may not use zdigest_update()
50
- // on the same digest. If built without crypto support, returns NULL.
50
+ // on the same digest. If built without crypto support, returns NULL.
51
51
  CZMQ_EXPORT char *
52
52
  zdigest_string (zdigest_t *self);
53
53
 
@@ -24,8 +24,8 @@ extern "C" {
24
24
  // This is a stable class, and may not change except for emergencies. It
25
25
  // is provided in stable builds.
26
26
  // Create a new directory item that loads in the full tree of the specified
27
- // path, optionally located under some parent path. If parent is "-", then
28
- // loads only the top-level directory, and does not use parent as a path.
27
+ // path, optionally located under some parent path. If parent is "-", then
28
+ // loads only the top-level directory, and does not use parent as a path.
29
29
  CZMQ_EXPORT zdir_t *
30
30
  zdir_new (const char *path, const char *parent);
31
31
 
@@ -42,7 +42,7 @@ CZMQ_EXPORT time_t
42
42
  zdir_modified (zdir_t *self);
43
43
 
44
44
  // Return total hierarchy size, in bytes of data contained in all files
45
- // in the directory tree.
45
+ // in the directory tree.
46
46
  CZMQ_EXPORT off_t
47
47
  zdir_cursize (zdir_t *self);
48
48
 
@@ -51,22 +51,22 @@ CZMQ_EXPORT size_t
51
51
  zdir_count (zdir_t *self);
52
52
 
53
53
  // Returns a sorted list of zfile objects; Each entry in the list is a pointer
54
- // to a zfile_t item already allocated in the zdir tree. Do not destroy the
55
- // original zdir tree until you are done with this list.
54
+ // to a zfile_t item already allocated in the zdir tree. Do not destroy the
55
+ // original zdir tree until you are done with this list.
56
56
  // Caller owns return value and must destroy it when done.
57
57
  CZMQ_EXPORT zlist_t *
58
58
  zdir_list (zdir_t *self);
59
59
 
60
- // Remove directory, optionally including all files that it contains, at
60
+ // Remove directory, optionally including all files that it contains, at
61
61
  // all levels. If force is false, will only remove the directory if empty.
62
- // If force is true, will remove all files and all subdirectories.
62
+ // If force is true, will remove all files and all subdirectories.
63
63
  CZMQ_EXPORT void
64
64
  zdir_remove (zdir_t *self, bool force);
65
65
 
66
- // Calculate differences between two versions of a directory tree.
67
- // Returns a list of zdir_patch_t patches. Either older or newer may
66
+ // Calculate differences between two versions of a directory tree.
67
+ // Returns a list of zdir_patch_t patches. Either older or newer may
68
68
  // be null, indicating the directory is empty/absent. If alias is set,
69
- // generates virtual filename (minus path, plus alias).
69
+ // generates virtual filename (minus path, plus alias).
70
70
  // Caller owns return value and must destroy it when done.
71
71
  CZMQ_EXPORT zlist_t *
72
72
  zdir_diff (zdir_t *older, zdir_t *newer, const char *alias);
@@ -77,7 +77,7 @@ CZMQ_EXPORT zlist_t *
77
77
  zdir_resync (zdir_t *self, const char *alias);
78
78
 
79
79
  // Load directory cache; returns a hash table containing the SHA-1 digests
80
- // of every file in the tree. The cache is saved between runs in .cache.
80
+ // of every file in the tree. The cache is saved between runs in .cache.
81
81
  // Caller owns return value and must destroy it when done.
82
82
  CZMQ_EXPORT zhash_t *
83
83
  zdir_cache (zdir_t *self);
@@ -90,32 +90,32 @@ CZMQ_EXPORT void
90
90
  CZMQ_EXPORT void
91
91
  zdir_print (zdir_t *self, int indent);
92
92
 
93
- // Create a new zdir_watch actor instance:
94
- //
95
- // zactor_t *watch = zactor_new (zdir_watch, NULL);
96
- //
97
- // Destroy zdir_watch instance:
98
- //
99
- // zactor_destroy (&watch);
100
- //
101
- // Enable verbose logging of commands and activity:
102
- //
103
- // zstr_send (watch, "VERBOSE");
104
- //
105
- // Subscribe to changes to a directory path:
106
- //
107
- // zsock_send (watch, "ss", "SUBSCRIBE", "directory_path");
108
- //
109
- // Unsubscribe from changes to a directory path:
110
- //
93
+ // Create a new zdir_watch actor instance:
94
+ //
95
+ // zactor_t *watch = zactor_new (zdir_watch, NULL);
96
+ //
97
+ // Destroy zdir_watch instance:
98
+ //
99
+ // zactor_destroy (&watch);
100
+ //
101
+ // Enable verbose logging of commands and activity:
102
+ //
103
+ // zstr_send (watch, "VERBOSE");
104
+ //
105
+ // Subscribe to changes to a directory path:
106
+ //
107
+ // zsock_send (watch, "ss", "SUBSCRIBE", "directory_path");
108
+ //
109
+ // Unsubscribe from changes to a directory path:
110
+ //
111
111
  // zsock_send (watch, "ss", "UNSUBSCRIBE", "directory_path");
112
- //
113
- // Receive directory changes:
114
- // zsock_recv (watch, "sp", &path, &patches);
115
- //
116
- // // Delete the received data.
117
- // free (path);
118
- // zlist_destroy (&patches);
112
+ //
113
+ // Receive directory changes:
114
+ // zsock_recv (watch, "sp", &path, &patches);
115
+ //
116
+ // // Delete the received data.
117
+ // free (path);
118
+ // zlist_destroy (&patches);
119
119
  CZMQ_EXPORT void
120
120
  zdir_watch (zsock_t *pipe, void *unused);
121
121