2012-05-22 19:43:11 +02:00
|
|
|
#ifndef PHP_UV_H
|
|
|
|
|
|
|
|
#define PHP_UV_H
|
|
|
|
|
|
|
|
#define PHP_UV_EXTNAME "uv"
|
|
|
|
#define PHP_UV_EXTVER "0.1"
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "php.h"
|
2012-05-23 06:35:28 +02:00
|
|
|
#include "uv.h"
|
2012-05-22 19:43:11 +02:00
|
|
|
|
|
|
|
#include "ext/spl/spl_exceptions.h"
|
|
|
|
#include "zend_interfaces.h"
|
|
|
|
|
|
|
|
/* Define the entry point symbol
|
|
|
|
* Zend will use when loading this module
|
|
|
|
*/
|
|
|
|
extern zend_module_entry uv_module_entry;
|
|
|
|
#define phpext_uv_ptr &uv_module_entry;
|
|
|
|
|
|
|
|
extern zend_class_entry *uv_class_entry;
|
|
|
|
|
2012-05-23 06:35:28 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
struct sockaddr_in addr;
|
|
|
|
uv_connect_t connect;
|
|
|
|
uv_tcp_t socket;
|
2012-05-23 13:41:04 +02:00
|
|
|
zend_fcall_info fci_connect;
|
|
|
|
zend_fcall_info_cache fcc_connect;
|
2012-05-23 06:35:28 +02:00
|
|
|
} php_uv_t;
|
|
|
|
|
|
|
|
#define PHP_UV_RESOURCE_NAME "uv"
|
|
|
|
|
2012-05-22 19:43:11 +02:00
|
|
|
#endif /* PHP_UV_H */
|