X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqstm.h;h=f5c59a6dbe0bde6dc74f2659911f6ad10e4c51b8;hp=e40420c4f9a94657d2ea6a5b9148ed1fee2e0677;hb=7b61b6b19fea328ec2ccd767bf9dd4d4b3c0892f;hpb=9255d2d54bca41644cf3588e4e4259a1855b58d7 diff --git a/src/php_pqstm.h b/src/php_pqstm.h index e40420c..f5c59a6 100644 --- a/src/php_pqstm.h +++ b/src/php_pqstm.h @@ -21,6 +21,8 @@ typedef struct php_pqstm { char *name; HashTable bound; php_pq_params_t *params; + char *query; + unsigned allocated:1; } php_pqstm_t; typedef struct php_pqstm_object { @@ -30,11 +32,12 @@ typedef struct php_pqstm_object { php_pqstm_t *intern; } php_pqstm_object_t; -zend_class_entry *php_pqstm_class_entry; -zend_object_value php_pqstm_create_object_ex(zend_class_entry *ce, php_pqstm_t *intern, php_pqstm_object_t **ptr TSRMLS_DC); +extern zend_class_entry *php_pqstm_class_entry; +extern zend_object_value php_pqstm_create_object_ex(zend_class_entry *ce, php_pqstm_t *intern, php_pqstm_object_t **ptr TSRMLS_DC); +extern php_pqstm_t *php_pqstm_init(php_pqconn_object_t *conn, const char *name, const char *query, php_pq_params_t *params TSRMLS_DC); -PHP_MINIT_FUNCTION(pqstm); -PHP_MSHUTDOWN_FUNCTION(pqstm); +extern PHP_MINIT_FUNCTION(pqstm); +extern PHP_MSHUTDOWN_FUNCTION(pqstm); #endif