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
{
35 PHP_PQ_OBJ_DECL(php_pqcur_t
*)
38 extern zend_class_entry
*php_pqcur_class_entry
;
39 extern php_pqcur_object_t
*php_pqcur_create_object_ex(zend_class_entry
*ce
, php_pqcur_t
*intern
);
41 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
);
42 extern php_pqcur_t
*php_pqcur_init(php_pqconn_object_t
*conn
, const char *name
, char *decl
, int query_offset
, long flags
);
44 extern PHP_MINIT_FUNCTION(pqcur
);
45 extern PHP_MSHUTDOWN_FUNCTION(pqcur
);
54 * vim600: noet sw=4 ts=4 fdm=marker
55 * vim<600: noet sw=4 ts=4