X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.h;h=b12e0a137041d0b47c9a4b970714e47b4acd3c33;hp=cc142e805eaa85de461328b8f4cc759cc04d0cf3;hb=9d64e781a870ed359d744b4c2dbba4c6c11c44f1;hpb=d662d7beb20a15ca8ca95761543f6b9d3b6bff29 diff --git a/src/php_pqcur.h b/src/php_pqcur.h index cc142e8..b12e0a1 100644 --- a/src/php_pqcur.h +++ b/src/php_pqcur.h @@ -27,6 +27,8 @@ typedef struct php_pqcur { char *name; char *decl; unsigned open:1; + int query_offset; + long flags; } php_pqcur_t; typedef struct php_pqcur_object { @@ -36,13 +38,14 @@ typedef struct php_pqcur_object { php_pqcur_t *intern; } 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 zend_object_value php_pqcur_create_object_ex(zend_class_entry *ce, php_pqcur_t *intern, php_pqcur_object_t **ptr TSRMLS_DC); -char *php_pqcur_declare_str(const char *name_str, size_t name_len, unsigned flags, const char *query_str, size_t query_len); +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 TSRMLS_DC); -PHP_MINIT_FUNCTION(pqcur); -PHP_MSHUTDOWN_FUNCTION(pqcur); +extern PHP_MINIT_FUNCTION(pqcur); +extern PHP_MSHUTDOWN_FUNCTION(pqcur); #endif