Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Showing with 16 additions and 1 deletion.
  1. +1 −0  .rvmrc
  2. +1 −1  configure.in
  3. +1 −0  src/utility.c
  4. +13 −0 src/utility.h
1  .rvmrc
View
@@ -0,0 +1 @@
+rvm use 1.9.3
2  configure.in
View
@@ -23,7 +23,7 @@ dnl Checks for libraries.
PKG_CHECK_MODULES(GLIB, glib-2.0)
AC_SUBST(GLIB)
-PKG_CHECK_MODULES(LIBZMQ, libzmq >= 3.2)
+PKG_CHECK_MODULES(LIBZMQ, libzmq = 2.2.0)
AC_SUBST(LIBZMQ)
PKG_CHECK_MODULES(GST, gstreamer-0.10)
1  src/utility.c
View
@@ -18,6 +18,7 @@
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <stdio.h>
#include <glib.h>
#include <string.h>
#include <sys/uio.h>
13 src/utility.h
View
@@ -21,6 +21,19 @@
#ifndef _UTILITY_H
#define _UTILITY_H
+#ifndef ZMQ_DONTWAIT
+# define ZMQ_DONTWAIT ZMQ_NOBLOCK
+#endif
+#if ZMQ_VERSION_MAJOR == 2
+# define zmq_ctx_new() zmq_init(1)
+# define zmq_ctx_destroy(ctx) zmq_term(ctx)
+# define zmq_msg_send(msg,sock,opt) zmq_send (sock, msg, opt)
+# define zmq_msg_recv(msg,sock,opt) zmq_recv (sock, msg, opt)
+# define ZMQ_POLL_MSEC 1000 // zmq_poll is usec
+#elif ZMQ_VERSION_MAJOR == 3
+# define ZMQ_POLL_MSEC 1 // zmq_poll is msec
+#endif
+
gboolean util_close_socket(void* sock);
char* util_send_reqrep_msg(void* zmq_context, const char* message, const char* address);
void util_zmq_glib_free(void* to_free, void* hint);

No commit comments for this range

Something went wrong with that request. Please try again.