I wrote the following in my attempt to interface to the mosquitto MQTT
library:


(bind* "struct mosquitto *mosquitto_new(const char *id,
                                        ___bool clean_session,
                                        void *obj);")

(define NULL (object->pointer 0))
(define mqttc (mosquitto-new NULL #t NULL))


But I'm unsure about my adventurous definition of `NULL`. It works, but is
it correct?


Another thing: on the bind egg's documentation page, `___blob` is not
mentioned, but I luckily found it in the sql-de-lite code, and it saved me
a lot of headaches :-) Shouldn't it be there?

/Christoph
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to