X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqstm.h;h=79e6aa713514ef1e3573b33e206591080657d485;hp=07d0f08e9c75b9664c73c3ddd016bd96ab62d7dc;hb=7ebb278e7854e8dd7c4fd6c0363531642d135676;hpb=a5470139f5305341fca92f942852d1ae18b254ea diff --git a/src/php_pqstm.h b/src/php_pqstm.h index 07d0f08..79e6aa7 100644 --- a/src/php_pqstm.h +++ b/src/php_pqstm.h @@ -21,17 +21,17 @@ 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 { - zend_object zo; - zend_object_value zv; - HashTable *prophandler; - php_pqstm_t *intern; + PHP_PQ_OBJ_DECL(php_pqstm_t *) } php_pqstm_object_t; 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_object_t *php_pqstm_create_object_ex(zend_class_entry *ce, php_pqstm_t *intern); +extern php_pqstm_t *php_pqstm_init(php_pqconn_object_t *conn, const char *name, const char *query, php_pq_params_t *params); extern PHP_MINIT_FUNCTION(pqstm); extern PHP_MSHUTDOWN_FUNCTION(pqstm);