X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=src%2Fphp_pqcur.h;fp=src%2Fphp_pqcur.h;h=31641b0ca5cc836f9d08a9c60c59ba35447f2ce8;hp=0000000000000000000000000000000000000000;hb=9255d2d54bca41644cf3588e4e4259a1855b58d7;hpb=316c62ff1038faa62e4ed5fc3c8c82347d277e4c diff --git a/src/php_pqcur.h b/src/php_pqcur.h new file mode 100644 index 0000000..31641b0 --- /dev/null +++ b/src/php_pqcur.h @@ -0,0 +1,54 @@ +/* + +--------------------------------------------------------------------+ + | PECL :: pq | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2013, Michael Wallner | + +--------------------------------------------------------------------+ +*/ + +#ifndef PHP_PQCUR_H +#define PHP_PQCUR_H + +#include "php_pqconn.h" + +#define PHP_PQ_DECLARE_BINARY 0x01 +#define PHP_PQ_DECLARE_INSENSITIVE 0x02 +#define PHP_PQ_DECLARE_WITH_HOLD 0x04 + +#define PHP_PQ_DECLARE_SCROLL 0x10 +#define PHP_PQ_DECLARE_NO_SCROLL 0x20 + +typedef struct php_pqcur { + php_pqconn_object_t *conn; + char *name; + char *decl; + unsigned open:1; +} php_pqcur_t; + +typedef struct php_pqcur_object { + zend_object zo; + zend_object_value zv; + HashTable *prophandler; + 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); + +PHP_MINIT_FUNCTION(pqcur); +PHP_MSHUTDOWN_FUNCTION(pqcur); + +#endif + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */