Trouble is when I create and add the event the only option to pass the event itself is using event_self_cbarg() as follows:
struct event* new_event;
new_event = event_new(base, fd, EV_WRITE, event_callback, event_self_cbarg());
My question is would it be safe to create my_struct and pass it to event_new and then fill in the evt member of my_struct later on by using my_struct->evt = event_self_cbarg()?
but that's for a pre 2.1 release and not sure it's valid but it seems to hint that passing pointer to pointer would work. I tried both methods (assigning event_self_cbarg() to my_struct->evt and passing changing my_struct so that evt member is defined as struct event** evt and assigning my_struct->evt = &new_event.
Any direction/thoughts appreciated.
Best,
Timir