Ruslan Osmanov avatar Ruslan Osmanov committed 06c1179

Add: event_reinit
Fix:package.xml

Comments (0)

Files changed (4)

 }
 /* }}} */
 
+/* {{{ proto bool event_reinit(resource base);
+ * Re-initialize event base. Should be called after a fork. */
+PHP_FUNCTION(event_reinit)
+{
+	zval             *zbase;
+	php_event_base_t *base;
+
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r",
+				&zbase) == FAILURE) {
+		return;
+	}
+
+	PHP_EVENT_FETCH_BASE(base, zbase);
+
+	if (event_reinit(base)) {
+		RETURN_TRUE;
+	}
+	RETVAL_FALSE;
+}
+/* }}} */
 
 
 /* {{{ proto resource event_base_new(void);
 	PHP_FE(event_del,                   arginfo_event_1)
 	PHP_FE(event_priority_set,          arginfo_event_priority_set)
 	PHP_FE(event_pending,               arginfo_event_pending)
+	PHP_FE(event_reinit,                arginfo_event_base_1)
 	PHP_FE(event_get_supported_methods, arginfo_event__void)
 #if LIBEVENT_VERSION_NUMBER >= 0x02010200
 	PHP_FE(event_remove_timer, arginfo_event_1)
 PHP_FUNCTION(event_remove_timer);
 PHP_FUNCTION(event_priority_set);
 PHP_FUNCTION(event_pending);
+PHP_FUNCTION(event_reinit);
 PHP_FUNCTION(event_free);
 
 PHP_FUNCTION(evtimer_new);
   <date>2013-01-06</date>
   <!--{{{ Current version -->
   <version>
-    <release>0.1.0-devel</release>
-    <api>0.1.0-devel</api>
+    <release>0.1.0</release>
+    <api>0.1.0</api>
   </version>
   <stability>
     <release>devel</release>
   </extsrcrelease>
   <!--{{{ changelog-->
   <changelog>
-    <!--{{{ 0.1.0-devel -->
+    <!--{{{ 0.1.0 -->
     <version>
-      <release>0.1.0-devel</release>
-      <api>0.1.0-devel</api>
+      <release>0.1.0</release>
+      <api>0.1.0</api>
     </version>
     <stability>
       <release>devel</release>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.