Re: [racket] Problems wrapping the RabbitMQ C client library using the ffi

2012-08-28 Thread Juan Garcia
On Mon, Aug 27, 2012 at 3:39 PM, Matthew Flatt wrote: > You need > > (define-amqp amqp_queue_declare >(_fun _amqp-connection-state-pointer > _amqp_channel_t _pointer _int _int _int _int _pointer > -> _amqp_queue_declare_ok_t-pointer)) > > Using `_amqp_queue_declare_ok_t' co

Re: [racket] Problems wrapping the RabbitMQ C client library using the ffi

2012-08-27 Thread Matthew Flatt
You need (define-amqp amqp_queue_declare (_fun _amqp-connection-state-pointer _amqp_channel_t _pointer _int _int _int _int _pointer -> _amqp_queue_declare_ok_t-pointer)) Using `_amqp_queue_declare_ok_t' corresponds to the return type `_amqp_queue_declare_ok_t', while `_amqp_

Re: [racket] Problems wrapping the RabbitMQ C client library using the ffi

2012-08-27 Thread Juan Garcia
Hi Tony, > On Sun, Aug 26, 2012 at 6:31 PM, Tony Garnock-Jones wrote: > > Hi Juan, > > On 2012-08-26 1:10 PM, Juan Garcia wrote: > > I'm having a problem wrapping the Rabbit MQ C client > > library (https://github.com/alanxz/rabbitmq-c) using the ffi. My > > problem is with the amqp_queue_declar

Re: [racket] Problems wrapping the RabbitMQ C client library using the ffi

2012-08-26 Thread Tony Garnock-Jones
Hi Juan, On 2012-08-26 1:10 PM, Juan Garcia wrote: > I'm having a problem wrapping the Rabbit MQ C client > library (https://github.com/alanxz/rabbitmq-c) using the ffi. My > problem is with the amqp_queue_declare function. [...] While I don't immediately see the problem with your FFI interface

[racket] Problems wrapping the RabbitMQ C client library using the ffi

2012-08-26 Thread Juan Garcia
Hi, I'm having a problem wrapping the Rabbit MQ C client library (https://github.com/alanxz/rabbitmq-c) using the ffi. My problem is with the amqp_queue_declare function. The C declaration is: amqp_queue_declare_ok_t * amqp_queue_declare(amqp_connection_state_t state, amqp_ch