X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqlob.h;h=fc7fa137de28f8d86c1a0f3a2f6db9757df8816e;hp=aee46bcae3c786db549e613f7f2e5ec8d84226db;hb=9e4e6b948aa03c04e66e808efa6a3522b92449d8;hpb=9f5cecf26bd70a92ed013f31afec59e272623ac1 diff --git a/src/php_pqlob.h b/src/php_pqlob.h index aee46bc..fc7fa13 100644 --- a/src/php_pqlob.h +++ b/src/php_pqlob.h @@ -19,21 +19,19 @@ typedef struct php_pqlob { int lofd; Oid loid; - int stream; + php_stream *stream; php_pqtxn_object_t *txn; } php_pqlob_t; typedef struct php_pqlob_object { - zend_object zo; - zend_object_value zv; - HashTable *prophandler; - php_pqlob_t *intern; + PHP_PQ_OBJ_DECL(php_pqlob_t *) } php_pqlob_object_t; -zend_class_entry *php_pqlob_class_entry; -zend_object_value php_pqlob_create_object_ex(zend_class_entry *ce, php_pqlob_t *intern, php_pqlob_object_t **ptr TSRMLS_DC); +extern zend_class_entry *php_pqlob_class_entry; +extern php_pqlob_object_t *php_pqlob_create_object_ex(zend_class_entry *ce, php_pqlob_t *intern); -PHP_MINIT_FUNCTION(pqlob); +extern PHP_MINIT_FUNCTION(pqlob); +extern PHP_MSHUTDOWN_FUNCTION(pqlob); #endif