]> granicus.if.org Git - libevent/commitdiff
we need to declare the enum first before it can be used; c++ compilation errors
authorNiels Provos <provos@gmail.com>
Sat, 31 May 2008 18:57:21 +0000 (18:57 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 31 May 2008 18:57:21 +0000 (18:57 +0000)
svn:r843

include/event2/event.h

index dbc2bbc43644503a88f34594ef465b50e9212c51..ac5f87970d6c3c66ad001d01c81520bfd0a72b3a 100644 (file)
@@ -100,11 +100,6 @@ int event_base_dispatch(struct event_base *);
  */
 const char *event_base_get_method(struct event_base *);
 
-/**
- Return a bitmask of the features implemented by an event base.
- */
-enum event_method_feature event_base_get_features(struct event_base *base);
-
 /**
    Gets all event notification mechanisms supported by libevent.
 
@@ -162,6 +157,11 @@ enum event_method_feature {
     EV_FEATURE_FDS = 0x04,
 } event_method_feature;
 
+/**
+ Return a bitmask of the features implemented by an event base.
+ */
+enum event_method_feature event_base_get_features(struct event_base *base);
+
 /**
    Enters a required event method feature that the application demands.