}
static int
-event_config_is_avoided_method(struct event_config *cfg, const char *method)
+event_config_is_avoided_method(const struct event_config *cfg,
+ const char *method)
{
struct event_config_entry *entry;
}
int
-event_base_get_features(struct event_base *base)
+event_base_get_features(const struct event_base *base)
{
return base->evsel->features;
}
#endif
struct event_base *
-event_base_new_with_config(struct event_config *cfg)
+event_base_new_with_config(const struct event_config *cfg)
{
int i;
struct event_base *base;
}
const char *
-event_base_get_method(struct event_base *base)
+event_base_get_method(const struct event_base *base)
{
EVUTIL_ASSERT(base);
return (base->evsel->name);
*/
int
-event_pending(struct event *ev, short event, struct timeval *tv)
+event_pending(const struct event *ev, short event, struct timeval *tv)
{
struct timeval now, res;
int flags = 0;
}
int
-_event_initialized(struct event *ev, int need_fd)
+_event_initialized(const struct event *ev, int need_fd)
{
if (!(ev->ev_flags & EVLIST_INIT))
return 0;
@param eb the event_base structure returned by event_base_new()
@return a string identifying the kernel event mechanism (kqueue, epoll, etc.)
*/
-const char *event_base_get_method(struct event_base *);
+const char *event_base_get_method(const struct event_base *);
/**
Gets all event notification mechanisms supported by Libevent.
/**
Return a bitmask of the features implemented by an event base.
*/
-int event_base_get_features(struct event_base *base);
+int event_base_get_features(const struct event_base *base);
/**
Enters a required event method feature that the application demands.
or NULL if no event base can be created with the requested event_config.
@see event_base_new(), event_base_free(), event_init(), event_assign()
*/
-struct event_base *event_base_new_with_config(struct event_config *cfg);
+struct event_base *event_base_new_with_config(const struct event_config *);
/**
Deallocate all memory associated with an event_base, and free the base.
is to say, it has been added), or 0 if the event is not added.
*/
-int event_pending(struct event *, short, struct timeval *);
+int event_pending(const struct event *, short, struct timeval *);
/**
*/
#define event_initialized(ev) _event_initialized((ev), 1)
-int _event_initialized(struct event *, int check_fd);
+int _event_initialized(const struct event *, int check_fd);
/**
Get the signal number assigned to an event.