event_config_require_features

Enters a required event method feature that the application demands.

Note that not every feature or combination of features is supported on every platform. Code that requests features should be prepared to handle the case where event_base_new_with_config() returns NULL, as in: <pre> event_config_require_features(cfg, EV_FEATURE_ET); base = event_base_new_with_config(cfg); if (base == NULL) { // We can't get edge-triggered behavior here. event_config_require_features(cfg, 0); base = event_base_new_with_config(cfg); } </pre>

@param cfg the event configuration object @param feature a bitfield of one or more event_method_feature values. Replaces values from previous calls to this function. @return 0 on success, -1 on failure. @see event_method_feature, event_base_new_with_config()

extern (C) nothrow
int
event_config_require_features

Meta