-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathfirebird_utils.h
More file actions
57 lines (44 loc) · 2.2 KB
/
firebird_utils.h
File metadata and controls
57 lines (44 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Simonov Denis <sim-mail@list.ru> |
+----------------------------------------------------------------------+
*/
#ifndef PDO_FIREBIRD_UTILS_H
#define PDO_FIREBIRD_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif
#if FB_API_VER >= 30
#include <ibase.h>
#include "php_ibase_includes.h"
unsigned fbu_get_client_version(void *master_ptr);
ISC_TIME fbu_encode_time(void *master_ptr, unsigned hours, unsigned minutes,
unsigned seconds, unsigned fractions);
ISC_DATE fbu_encode_date(void *master_ptr, unsigned year, unsigned month, unsigned day);
#endif // FB_API_VER >= 30
#if FB_API_VER >= 40
void fbu_decode_time_tz(void *master_ptr, const ISC_TIME_TZ* timeTz, unsigned* hours, unsigned* minutes, unsigned* seconds, unsigned* fractions,
unsigned timeZoneBufferLength, char* timeZoneBuffer);
void fbu_decode_timestamp_tz(void *master_ptr, const ISC_TIMESTAMP_TZ* timestampTz,
unsigned* year, unsigned* month, unsigned* day,
unsigned* hours, unsigned* minutes, unsigned* seconds, unsigned* fractions,
unsigned timeZoneBufferLength, char* timeZoneBuffer);
int fbu_insert_field_info(void *master_ptr, ISC_STATUS* st, int is_outvar, int num,
zval *into_array, void *statement_ptr);
int fbu_insert_aliases(void *master_ptr, ISC_STATUS* st, ibase_query *ib_query,
void *statement_ptr);
#endif // FB_API_VER >= 30
#ifdef __cplusplus
}
#endif
#endif /* PDO_FIREBIRD_UTILS_H */