src/spbot/signals.h
branchnew-lib-errors
changeset 218 5229a5d098b2
parent 217 7728d6ec3abf
equal deleted inserted replaced
217:7728d6ec3abf 218:5229a5d098b2
    32 /**
    32 /**
    33  * Allocate a signals struct, acting on the given ev_base.
    33  * Allocate a signals struct, acting on the given ev_base.
    34  *
    34  *
    35  * Returns NULL on failure
    35  * Returns NULL on failure
    36  */
    36  */
    37 err_t signals_create (struct signals **signals_ptr, struct event_base *ev_base);
    37 err_t signals_create (struct signals **signals_ptr, struct event_base *ev_base, error_t *err);
    38 
    38 
    39 /**
    39 /**
    40  * Add a signal to be handled by the given signals struct with the given handler.
    40  * Add a signal to be handled by the given signals struct with the given handler.
    41  */
    41  */
    42 err_t signals_add (struct signals *signals, int sigval, void (*sig_handler)(evutil_socket_t, short, void *), void *arg);
    42 err_t signals_add (struct signals *signals, int sigval, void (*sig_handler)(evutil_socket_t, short, void *), void *arg);