1// +build !windows
2
3package zmq4
4
5/*
6
7#include <errno.h>
8#include <zmq.h>
9
10#if ZMQ_VERSION_MINOR < 2
11// Version < 4.2.x
12#include <zmq_utils.h>
13int zmq_curve_public (char *z85_public_key, const char *z85_secret_key);
14#endif // Version < 4.2.x
15
16#if ZMQ_VERSION_MINOR < 1
17const char *zmq_msg_gets (zmq_msg_t *msg, const char *property);
18#if ZMQ_VERSION_PATCH < 5
19// Version < 4.0.5
20int zmq_proxy_steerable (const void *frontend, const void *backend, const void *capture, const void *control);
21#endif // Version < 4.0.5
22#endif // Version == 4.0.x
23
24int zmq4_bind (void *socket, const char *endpoint)
25{
26    return zmq_bind(socket, endpoint);
27}
28
29int zmq4_close (void *socket)
30{
31    return zmq_close(socket);
32}
33
34int zmq4_connect (void *socket, const char *endpoint)
35{
36    return zmq_connect(socket, endpoint);
37}
38
39int zmq4_ctx_get (void *context, int option_name)
40{
41    return zmq_ctx_get(context, option_name);
42}
43
44void *zmq4_ctx_new ()
45{
46    return zmq_ctx_new();
47}
48
49int zmq4_ctx_set (void *context, int option_name, int option_value)
50{
51    return zmq_ctx_set(context, option_name, option_value);
52}
53
54int zmq4_ctx_term (void *context)
55{
56    return zmq_ctx_term(context);
57}
58
59int zmq4_curve_keypair (char *z85_public_key, char *z85_secret_key)
60{
61    return zmq_curve_keypair(z85_public_key, z85_secret_key);
62}
63
64int zmq4_curve_public (char *z85_public_key, char *z85_secret_key)
65{
66    return zmq_curve_public(z85_public_key, z85_secret_key);
67}
68
69int zmq4_disconnect (void *socket, const char *endpoint)
70{
71    return zmq_disconnect(socket, endpoint);
72}
73
74int zmq4_getsockopt (void *socket, int option_name, void *option_value, size_t *option_len)
75{
76    return zmq_getsockopt(socket, option_name, option_value, option_len);
77}
78
79const char *zmq4_msg_gets (zmq_msg_t *message, const char *property)
80{
81    return zmq_msg_gets(message, property);
82}
83
84int zmq4_msg_recv (zmq_msg_t *msg, void *socket, int flags)
85{
86    return zmq_msg_recv(msg, socket, flags);
87}
88
89int zmq4_poll (zmq_pollitem_t *items, int nitems, long timeout)
90{
91    return zmq_poll(items, nitems, timeout);
92}
93
94int zmq4_proxy (void *frontend, void *backend, void *capture)
95{
96    return zmq_proxy(frontend, backend, capture);
97}
98
99int zmq4_proxy_steerable (void *frontend, void *backend, void *capture, void *control)
100{
101    return zmq_proxy_steerable(frontend, backend, capture, control);
102}
103
104int zmq4_send (void *socket, void *buf, size_t len, int flags)
105{
106    return zmq_send(socket, buf, len, flags);
107}
108
109int zmq4_setsockopt (void *socket, int option_name, const void *option_value, size_t option_len)
110{
111    return zmq_setsockopt(socket, option_name, option_value, option_len);
112}
113
114void *zmq4_socket (void *context, int type)
115{
116    return zmq_socket(context, type);
117}
118
119int zmq4_socket_monitor (void *socket, char *endpoint, int events)
120{
121    return zmq_socket_monitor(socket, endpoint, events);
122}
123
124int zmq4_unbind (void *socket, const char *endpoint)
125{
126    return zmq_unbind(socket, endpoint);
127}
128
129*/
130import "C"
131