Sha256: 30e4a7179e8834594d1370c3418874ebd1499d8f283d4dd3f44c599cb509981c

Contents?: true

Size: 825 Bytes

Versions: 13

Compression:

Stored size: 825 Bytes

Contents

#ifndef RBCZMQ_FRAME_H
#define RBCZMQ_FRAME_H

#define ZmqAssertFrame(obj) ZmqAssertType(obj, rb_cZmqFrame, "ZMQ::Frame")
#define ZmqGetFrame(obj) \
    zframe_t *frame = NULL; \
    ZmqAssertFrame(obj); \
    Data_Get_Struct(obj, zframe_t, frame); \
    if (!frame) rb_raise(rb_eTypeError, "uninitialized ZMQ frame!"); \
    if (!(st_lookup(frames_map, (st_data_t)frame, 0))) rb_raise(rb_eZmqError, "ZMQ::Frame instance %p has been destroyed by the ZMQ framework", (void *)obj);

#define ZmqRegisterFrame(fr) \
    zframe_freefn((fr), rb_czmq_frame_freed); \
    st_insert(frames_map, (st_data_t)(fr), (st_data_t)0);

void rb_czmq_free_frame(zframe_t *frame);
void rb_czmq_free_frame_gc(void *ptr);
void rb_czmq_frame_freed(zframe_t *frame);

VALUE rb_czmq_alloc_frame(zframe_t *frame);

void _init_rb_czmq_frame();

#endif

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rbczmq-1.3 ext/rbczmq/frame.h
rbczmq-1.2 ext/rbczmq/frame.h
rbczmq-1.1 ext/rbczmq/frame.h
rbczmq-1.0 ext/rbczmq/frame.h
rbczmq-0.9 ext/rbczmq/frame.h
rbczmq-0.8 ext/rbczmq/frame.h
rbczmq-0.7 ext/rbczmq/frame.h
rbczmq-0.6 ext/rbczmq/frame.h
rbczmq-0.5 ext/rbczmq/frame.h
rbczmq-0.4 ext/rbczmq/frame.h
rbczmq-0.3 ext/rbczmq/frame.h
rbczmq-0.2 ext/rbczmq/frame.h
rbczmq-0.1 ext/rbczmq/frame.h