X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.h;h=ab74e8d9655b931cf1b55d9760a9876a957f2f37;hp=31641b0ca5cc836f9d08a9c60c59ba35447f2ce8;hb=HEAD;hpb=9255d2d54bca41644cf3588e4e4259a1855b58d7 diff --git a/src/php_pqcur.h b/src/php_pqcur.h index 31641b0..ab74e8d 100644 --- a/src/php_pqcur.h +++ b/src/php_pqcur.h @@ -27,20 +27,22 @@ typedef struct php_pqcur { char *name; char *decl; unsigned open:1; + int query_offset; + long flags; } php_pqcur_t; typedef struct php_pqcur_object { - zend_object zo; - zend_object_value zv; - HashTable *prophandler; - php_pqcur_t *intern; + PHP_PQ_OBJ_DECL(php_pqcur_t *) } php_pqcur_object_t; -zend_class_entry *php_pqcur_class_entry; -zend_object_value php_pqcur_create_object_ex(zend_class_entry *ce, php_pqcur_t *intern, php_pqcur_object_t **ptr TSRMLS_DC); +extern zend_class_entry *php_pqcur_class_entry; +extern php_pqcur_object_t *php_pqcur_create_object_ex(zend_class_entry *ce, php_pqcur_t *intern); -PHP_MINIT_FUNCTION(pqcur); -PHP_MSHUTDOWN_FUNCTION(pqcur); +extern char *php_pqcur_declare_str(const char *name_str, size_t name_len, unsigned flags, const char *query_str, size_t query_len, int *query_offset); +extern php_pqcur_t *php_pqcur_init(php_pqconn_object_t *conn, const char *name, char *decl, int query_offset, long flags); + +extern PHP_MINIT_FUNCTION(pqcur); +extern PHP_MSHUTDOWN_FUNCTION(pqcur); #endif