2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2013, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
16 #include "php_pqconn.h"
18 #define PHP_PQ_DECLARE_BINARY 0x01
19 #define PHP_PQ_DECLARE_INSENSITIVE 0x02
20 #define PHP_PQ_DECLARE_WITH_HOLD 0x04
22 #define PHP_PQ_DECLARE_SCROLL 0x10
23 #define PHP_PQ_DECLARE_NO_SCROLL 0x20
25 typedef struct php_pqcur
{
26 php_pqconn_object_t
*conn
;
34 typedef struct php_pqcur_object
{
37 HashTable
*prophandler
;
41 extern zend_class_entry
*php_pqcur_class_entry
;
42 extern zend_object_value
php_pqcur_create_object_ex(zend_class_entry
*ce
, php_pqcur_t
*intern
, php_pqcur_object_t
**ptr TSRMLS_DC
);
44 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
);
45 extern php_pqcur_t
*php_pqcur_init(php_pqconn_object_t
*conn
, const char *name
, char *decl
, int query_offset
, long flags TSRMLS_DC
);
47 extern PHP_MINIT_FUNCTION(pqcur
);
48 extern PHP_MSHUTDOWN_FUNCTION(pqcur
);
57 * vim600: noet sw=4 ts=4 fdm=marker
58 * vim<600: noet sw=4 ts=4