ext-uv/php_uv.h

38 lines
667 B
C
Raw Normal View History

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"
#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;
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;
} php_uv_t;
#define PHP_UV_RESOURCE_NAME "uv"
2012-05-22 19:43:11 +02:00
#endif /* PHP_UV_H */