[cffi-devel] How would you "CFFI define" this ?
Hi all! I have a more complex typedef: typedef struct amqp_frame_t_ { uint8_t frame_type; /* 0 means no event */ amqp_channel_t channel; union { amqp_method_t method; struct { uint16_t class_id; uint64_t body_size; void *decoded; amqp_bytes_t raw; } properties; amqp_bytes_t body_fragment; struct { uint8_t transport_high; uint8_t transport_low; uint8_t protocol_version_major; uint8_t protocol_version_minor; } protocol_header; } payload; } amqp_frame_t; I am struggling with the contained structs properties and payload ... How to define them??? Thanks for any hints! Regards Frank
On Sun, Dec 19, 2010 at 6:54 PM, Frank Goenninger <frgo@me.com> wrote:
I am struggling with the contained structs properties and payload ... How to define them???
Define the inner structs individually then use them in the amqp_frame_t definition. Cheers, -- Luís Oliveira http://r42.eu/~luis/
Hi Luís, Am 19.12.2010 um 21:07 schrieb Luís Oliveira:
On Sun, Dec 19, 2010 at 6:54 PM, Frank Goenninger <frgo@me.com> wrote:
I am struggling with the contained structs properties and payload ... How to define them???
Define the inner structs individually then use them in the amqp_frame_t definition.
Oh, Holy Cow: I had a typo in there: (defcstruct fame-properties ...) THANKS !!! (blushing) ;-) Frank
participants (2)
-
Frank Goenninger
-
Luís Oliveira