Closed GuacheSuede closed 7 years ago
Yes, there's space for a void*. Follow the tutorial, it's explained there.
On Mon, Feb 27, 2017, 16:47 Justin Yeap notifications@github.com wrote:
eg { .prefix = "/hello", .handler = helloWorld(conn)} Or perhaps though lambdas
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/190, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA6mdCRQc-bw_jiz_lJ6eBpN_61IYjyks5rg26VgaJpZM4MN0xW .
are you talking abt this void *data __attribute__((unused))
?
The data
member in the struct lwan_url_map
will be passed to the handler as the data
parameter, yes. In the case of the part you've pasted, this handler has no use for data, so it was marked as unused to keep the compiler from complaining.
Alright sure, Thank you.
eg
{ .prefix = "/hello", .handler = helloWorld(conn)}
Or perhaps though lambdas