Sha256: 240b37557de68c345bd09ee5b6c42d446502aed5be5f3e66a0ca3fad1bc6e3ac

Contents?: true

Size: 687 Bytes

Versions: 1

Compression:

Stored size: 687 Bytes

Contents

#ifndef RBCZMQ_POLLITEM_H
#define RBCZMQ_POLLITEM_H

typedef struct {
    VALUE socket;
    VALUE io;
    VALUE events;
    VALUE handler;
    zmq_pollitem_t *item;
} zmq_pollitem_wrapper;

#define ZmqAssertPollitem(obj) ZmqAssertType(obj, rb_cZmqPollitem, "ZMQ::Pollitem")
#define ZmqGetPollitem(obj) \
    zmq_pollitem_wrapper *pollitem = NULL; \
    ZmqAssertPollitem(obj); \
    Data_Get_Struct(obj, zmq_pollitem_wrapper, pollitem); \
    if (!pollitem) rb_raise(rb_eTypeError, "uninitialized ZMQ pollitem!");

VALUE rb_czmq_pollitem_coerce(VALUE pollable);
VALUE rb_czmq_pollitem_pollable(VALUE obj);
VALUE rb_czmq_pollitem_events(VALUE obj);

void _init_rb_czmq_pollitem();

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbczmq-0.1 ext/rbczmq/pollitem.h