1 |
|
2 |
{$IFDEF FPC}
|
3 |
{$PACKRECORDS C}
|
4 |
{$ENDIF}
|
5 |
|
6 |
|
7 |
{
|
8 |
* MODULE: consts_pub.h
|
9 |
* DESCRIPTION: Public constants' definitions
|
10 |
*
|
11 |
* The contents of this file are subject to the Interbase Public
|
12 |
* License Version 1.0 (the "License"); you may not use this file
|
13 |
* except in compliance with the License. You may obtain a copy
|
14 |
* of the License at http://www.Inprise.com/IPL.html
|
15 |
*
|
16 |
* Software distributed under the License is distributed on an
|
17 |
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
18 |
* or implied. See the License for the specific language governing
|
19 |
* rights and limitations under the License.
|
20 |
*
|
21 |
* The Original Code was created by Inprise Corporation
|
22 |
* and its predecessors. Portions created by Inprise Corporation are
|
23 |
* Copyright (C) Inprise Corporation.
|
24 |
*
|
25 |
* All Rights Reserved.
|
26 |
* Contributor(s): ______________________________________.
|
27 |
*
|
28 |
* 18.08.2006 Dimitry Sibiryakov: Extracted it from ibase.h
|
29 |
*
|
30 |
}
|
31 |
{$ifndef FIREBIRD_IMPL_CONSTS_PUB_H}
|
32 |
{$define FIREBIRD_IMPL_CONSTS_PUB_H}
|
33 |
{******************************** }
|
34 |
{ Database parameter block stuff }
|
35 |
{******************************** }
|
36 |
|
37 |
const
|
38 |
isc_dpb_version1 = 1;
|
39 |
isc_dpb_version2 = 2;
|
40 |
isc_dpb_cdd_pathname = 1;
|
41 |
isc_dpb_allocation = 2;
|
42 |
isc_dpb_journal = 3;
|
43 |
isc_dpb_page_size = 4;
|
44 |
isc_dpb_num_buffers = 5;
|
45 |
isc_dpb_buffer_length = 6;
|
46 |
isc_dpb_debug = 7;
|
47 |
isc_dpb_garbage_collect = 8;
|
48 |
isc_dpb_verify = 9;
|
49 |
isc_dpb_sweep = 10;
|
50 |
isc_dpb_enable_journal = 11;
|
51 |
isc_dpb_disable_journal = 12;
|
52 |
isc_dpb_dbkey_scope = 13;
|
53 |
isc_dpb_number_of_users = 14;
|
54 |
isc_dpb_trace = 15;
|
55 |
isc_dpb_no_garbage_collect = 16;
|
56 |
isc_dpb_damaged = 17;
|
57 |
isc_dpb_license = 18;
|
58 |
isc_dpb_sys_user_name = 19;
|
59 |
isc_dpb_encrypt_key = 20;
|
60 |
isc_dpb_activate_shadow = 21;
|
61 |
isc_dpb_sweep_interval = 22;
|
62 |
isc_dpb_delete_shadow = 23;
|
63 |
isc_dpb_force_write = 24;
|
64 |
isc_dpb_begin_log = 25;
|
65 |
isc_dpb_quit_log = 26;
|
66 |
isc_dpb_no_reserve = 27;
|
67 |
isc_dpb_user_name = 28;
|
68 |
isc_dpb_password = 29;
|
69 |
isc_dpb_password_enc = 30;
|
70 |
isc_dpb_sys_user_name_enc = 31;
|
71 |
isc_dpb_interp = 32;
|
72 |
isc_dpb_online_dump = 33;
|
73 |
isc_dpb_old_file_size = 34;
|
74 |
isc_dpb_old_num_files = 35;
|
75 |
isc_dpb_old_file = 36;
|
76 |
isc_dpb_old_start_page = 37;
|
77 |
isc_dpb_old_start_seqno = 38;
|
78 |
isc_dpb_old_start_file = 39;
|
79 |
isc_dpb_drop_walfile = 40;
|
80 |
isc_dpb_old_dump_id = 41;
|
81 |
isc_dpb_wal_backup_dir = 42;
|
82 |
isc_dpb_wal_chkptlen = 43;
|
83 |
isc_dpb_wal_numbufs = 44;
|
84 |
isc_dpb_wal_bufsize = 45;
|
85 |
isc_dpb_wal_grp_cmt_wait = 46;
|
86 |
isc_dpb_lc_messages = 47;
|
87 |
isc_dpb_lc_ctype = 48;
|
88 |
isc_dpb_cache_manager = 49;
|
89 |
isc_dpb_shutdown = 50;
|
90 |
isc_dpb_online = 51;
|
91 |
isc_dpb_shutdown_delay = 52;
|
92 |
isc_dpb_reserved = 53;
|
93 |
isc_dpb_overwrite = 54;
|
94 |
isc_dpb_sec_attach = 55;
|
95 |
isc_dpb_disable_wal = 56;
|
96 |
isc_dpb_connect_timeout = 57;
|
97 |
isc_dpb_dummy_packet_interval = 58;
|
98 |
isc_dpb_gbak_attach = 59;
|
99 |
isc_dpb_sql_role_name = 60;
|
100 |
isc_dpb_set_page_buffers = 61;
|
101 |
isc_dpb_working_directory = 62;
|
102 |
isc_dpb_sql_dialect = 63;
|
103 |
isc_dpb_set_db_readonly = 64;
|
104 |
isc_dpb_set_db_sql_dialect = 65;
|
105 |
isc_dpb_gfix_attach = 66;
|
106 |
isc_dpb_gstat_attach = 67;
|
107 |
isc_dpb_set_db_charset = 68;
|
108 |
{ deprecated }
|
109 |
isc_dpb_gsec_attach = 69;
|
110 |
isc_dpb_address_path = 70;
|
111 |
isc_dpb_process_id = 71;
|
112 |
isc_dpb_no_db_triggers = 72;
|
113 |
isc_dpb_trusted_auth = 73;
|
114 |
isc_dpb_process_name = 74;
|
115 |
isc_dpb_trusted_role = 75;
|
116 |
isc_dpb_org_filename = 76;
|
117 |
isc_dpb_utf8_filename = 77;
|
118 |
isc_dpb_ext_call_depth = 78;
|
119 |
isc_dpb_auth_block = 79;
|
120 |
isc_dpb_client_version = 80;
|
121 |
isc_dpb_remote_protocol = 81;
|
122 |
isc_dpb_host_name = 82;
|
123 |
isc_dpb_os_user = 83;
|
124 |
isc_dpb_specific_auth_data = 84;
|
125 |
isc_dpb_auth_plugin_list = 85;
|
126 |
isc_dpb_auth_plugin_name = 86;
|
127 |
isc_dpb_config = 87;
|
128 |
isc_dpb_nolinger = 88;
|
129 |
isc_dpb_reset_icu = 89;
|
130 |
isc_dpb_map_attach = 90;
|
131 |
isc_dpb_session_time_zone = 91;
|
132 |
isc_dpb_set_db_replica = 92;
|
133 |
isc_dpb_set_bind = 93;
|
134 |
isc_dpb_decfloat_round = 94;
|
135 |
isc_dpb_decfloat_traps = 95;
|
136 |
{************************************************ }
|
137 |
{ clumplet tags used inside isc_dpb_address_path }
|
138 |
{ and isc_spb_address_path }
|
139 |
{************************************************ }
|
140 |
{ Format of this clumplet is the following:
|
141 |
|
142 |
<address-path-clumplet> ::=
|
143 |
isc_dpb_address_path <byte-clumplet-length> <address-stack>
|
144 |
|
145 |
<address-stack> ::=
|
146 |
<address-descriptor> |
|
147 |
<address-stack> <address-descriptor>
|
148 |
|
149 |
<address-descriptor> ::=
|
150 |
isc_dpb_address <byte-clumplet-length> <address-elements>
|
151 |
|
152 |
<address-elements> ::=
|
153 |
<address-element> |
|
154 |
<address-elements> <address-element>
|
155 |
|
156 |
<address-element> ::=
|
157 |
isc_dpb_addr_protocol <byte-clumplet-length> <protocol-string> |
|
158 |
isc_dpb_addr_endpoint <byte-clumplet-length> <remote-endpoint-string> |
|
159 |
isc_dpb_addr_flags <byte-clumplet-length> <flags-int> |
|
160 |
isc_dpb_addr_crypt <byte-clumplet-length> <plugin-string>
|
161 |
|
162 |
<protocol-string> ::=
|
163 |
"TCPv4" |
|
164 |
"TCPv6" |
|
165 |
"XNET" |
|
166 |
"WNET" |
|
167 |
....
|
168 |
|
169 |
<plugin-string> ::=
|
170 |
"Arc4" |
|
171 |
"ChaCha" |
|
172 |
....
|
173 |
|
174 |
<remote-endpoint-string> ::=
|
175 |
<IPv4-address> | // such as "172.20.1.1"
|
176 |
<IPv6-address> | // such as "2001:0:13FF:09FF::1"
|
177 |
<xnet-process-id> | // such as "17864"
|
178 |
...
|
179 |
|
180 |
<flags-int> ::=
|
181 |
bitmask of possible flags
|
182 |
}
|
183 |
isc_dpb_address = 1;
|
184 |
isc_dpb_addr_protocol = 1;
|
185 |
isc_dpb_addr_endpoint = 2;
|
186 |
isc_dpb_addr_flags = 3;
|
187 |
isc_dpb_addr_crypt = 4;
|
188 |
{ possible addr flags }
|
189 |
isc_dpb_addr_flag_conn_compressed = $01;
|
190 |
isc_dpb_addr_flag_conn_encrypted = $02;
|
191 |
{******************************* }
|
192 |
{ isc_dpb_verify specific flags }
|
193 |
{******************************* }
|
194 |
isc_dpb_pages = 1;
|
195 |
isc_dpb_records = 2;
|
196 |
isc_dpb_indices = 4;
|
197 |
isc_dpb_transactions = 8;
|
198 |
isc_dpb_no_update = 16;
|
199 |
isc_dpb_repair = 32;
|
200 |
isc_dpb_ignore = 64;
|
201 |
{********************************* }
|
202 |
{ isc_dpb_shutdown specific flags }
|
203 |
{********************************* }
|
204 |
isc_dpb_shut_cache = $1;
|
205 |
isc_dpb_shut_attachment = $2;
|
206 |
isc_dpb_shut_transaction = $4;
|
207 |
isc_dpb_shut_force = $8;
|
208 |
isc_dpb_shut_mode_mask = $70;
|
209 |
isc_dpb_shut_default = $0;
|
210 |
isc_dpb_shut_normal = $10;
|
211 |
isc_dpb_shut_multi = $20;
|
212 |
isc_dpb_shut_single = $30;
|
213 |
isc_dpb_shut_full = $40;
|
214 |
{************************************ }
|
215 |
{ Bit assignments in RDB$SYSTEM_FLAG }
|
216 |
{************************************ }
|
217 |
RDB_system = 1;
|
218 |
RDB_id_assigned = 2;
|
219 |
{ 2 is for QLI. See jrd/constants.h for more Firebird-specific values. }
|
220 |
{*********************************** }
|
221 |
{ Transaction parameter block stuff }
|
222 |
{*********************************** }
|
223 |
isc_tpb_version1 = 1;
|
224 |
isc_tpb_version3 = 3;
|
225 |
isc_tpb_consistency = 1;
|
226 |
isc_tpb_concurrency = 2;
|
227 |
isc_tpb_shared = 3;
|
228 |
isc_tpb_protected = 4;
|
229 |
isc_tpb_exclusive = 5;
|
230 |
isc_tpb_wait = 6;
|
231 |
isc_tpb_nowait = 7;
|
232 |
isc_tpb_read = 8;
|
233 |
isc_tpb_write = 9;
|
234 |
isc_tpb_lock_read = 10;
|
235 |
isc_tpb_lock_write = 11;
|
236 |
isc_tpb_verb_time = 12;
|
237 |
isc_tpb_commit_time = 13;
|
238 |
isc_tpb_ignore_limbo = 14;
|
239 |
isc_tpb_read_committed = 15;
|
240 |
isc_tpb_autocommit = 16;
|
241 |
isc_tpb_rec_version = 17;
|
242 |
isc_tpb_no_rec_version = 18;
|
243 |
isc_tpb_restart_requests = 19;
|
244 |
isc_tpb_no_auto_undo = 20;
|
245 |
isc_tpb_lock_timeout = 21;
|
246 |
isc_tpb_read_consistency = 22;
|
247 |
isc_tpb_at_snapshot_number = 23;
|
248 |
{********************** }
|
249 |
{ Blob Parameter Block }
|
250 |
{********************** }
|
251 |
isc_bpb_version1 = 1;
|
252 |
isc_bpb_source_type = 1;
|
253 |
isc_bpb_target_type = 2;
|
254 |
isc_bpb_type = 3;
|
255 |
isc_bpb_source_interp = 4;
|
256 |
isc_bpb_target_interp = 5;
|
257 |
isc_bpb_filter_parameter = 6;
|
258 |
isc_bpb_storage = 7;
|
259 |
isc_bpb_type_segmented = $0;
|
260 |
isc_bpb_type_stream = $1;
|
261 |
isc_bpb_storage_main = $0;
|
262 |
isc_bpb_storage_temp = $2;
|
263 |
{******************************* }
|
264 |
{ Service parameter block stuff }
|
265 |
{******************************* }
|
266 |
isc_spb_version1 = 1;
|
267 |
isc_spb_current_version = 2;
|
268 |
isc_spb_version = isc_spb_current_version;
|
269 |
isc_spb_version3 = 3;
|
270 |
isc_spb_user_name = isc_dpb_user_name;
|
271 |
isc_spb_sys_user_name = isc_dpb_sys_user_name;
|
272 |
isc_spb_sys_user_name_enc = isc_dpb_sys_user_name_enc;
|
273 |
isc_spb_password = isc_dpb_password;
|
274 |
isc_spb_password_enc = isc_dpb_password_enc;
|
275 |
isc_spb_command_line = 105;
|
276 |
isc_spb_dbname = 106;
|
277 |
isc_spb_verbose = 107;
|
278 |
isc_spb_options = 108;
|
279 |
isc_spb_address_path = 109;
|
280 |
isc_spb_process_id = 110;
|
281 |
isc_spb_trusted_auth = 111;
|
282 |
isc_spb_process_name = 112;
|
283 |
isc_spb_trusted_role = 113;
|
284 |
isc_spb_verbint = 114;
|
285 |
isc_spb_auth_block = 115;
|
286 |
isc_spb_auth_plugin_name = 116;
|
287 |
isc_spb_auth_plugin_list = 117;
|
288 |
isc_spb_utf8_filename = 118;
|
289 |
isc_spb_client_version = 119;
|
290 |
isc_spb_remote_protocol = 120;
|
291 |
isc_spb_host_name = 121;
|
292 |
isc_spb_os_user = 122;
|
293 |
isc_spb_config = 123;
|
294 |
isc_spb_expected_db = 124;
|
295 |
isc_spb_connect_timeout = isc_dpb_connect_timeout;
|
296 |
isc_spb_dummy_packet_interval = isc_dpb_dummy_packet_interval;
|
297 |
isc_spb_sql_role_name = isc_dpb_sql_role_name;
|
298 |
{ This will not be used in protocol 13, therefore may be reused }
|
299 |
isc_spb_specific_auth_data = isc_spb_trusted_auth;
|
300 |
{****************************
|
301 |
* Service action items *
|
302 |
**************************** }
|
303 |
{ Starts database backup process on the server }
|
304 |
isc_action_svc_backup = 1;
|
305 |
{ Starts database restore process on the server }
|
306 |
isc_action_svc_restore = 2;
|
307 |
{ Starts database repair process on the server }
|
308 |
isc_action_svc_repair = 3;
|
309 |
{ Adds a new user to the security database }
|
310 |
isc_action_svc_add_user = 4;
|
311 |
{ Deletes a user record from the security database }
|
312 |
isc_action_svc_delete_user = 5;
|
313 |
{ Modifies a user record in the security database }
|
314 |
isc_action_svc_modify_user = 6;
|
315 |
{ Displays a user record from the security database }
|
316 |
isc_action_svc_display_user = 7;
|
317 |
{ Sets database properties }
|
318 |
isc_action_svc_properties = 8;
|
319 |
{ Adds a license to the license file }
|
320 |
isc_action_svc_add_license = 9;
|
321 |
{ Removes a license from the license file }
|
322 |
isc_action_svc_remove_license = 10;
|
323 |
{ Retrieves database statistics }
|
324 |
isc_action_svc_db_stats = 11;
|
325 |
{ Retrieves the InterBase log file from the server }
|
326 |
isc_action_svc_get_ib_log = 12;
|
327 |
{ Retrieves the Firebird log file from the server }
|
328 |
isc_action_svc_get_fb_log = 12;
|
329 |
{ Incremental nbackup }
|
330 |
isc_action_svc_nbak = 20;
|
331 |
{ Incremental database restore }
|
332 |
isc_action_svc_nrest = 21;
|
333 |
isc_action_svc_trace_start = 22; { Start trace session }
|
334 |
isc_action_svc_trace_stop = 23; { Stop trace session }
|
335 |
isc_action_svc_trace_suspend = 24; { Suspend trace session }
|
336 |
isc_action_svc_trace_resume = 25; { Resume trace session }
|
337 |
isc_action_svc_trace_list = 26; { List existing sessions }
|
338 |
isc_action_svc_set_mapping = 27; { Set auto admins mapping in security database }
|
339 |
isc_action_svc_drop_mapping = 28; { Drop auto admins mapping in security database }
|
340 |
isc_action_svc_display_user_adm = 29; { Displays user(s) from security database with admin info }
|
341 |
isc_action_svc_validate = 30; { Starts database online validation }
|
342 |
isc_action_svc_nfix = 31; { Fixup database after file system copy }
|
343 |
isc_action_svc_last = 32; { keep it last ! }
|
344 |
{****************************
|
345 |
* Service information items *
|
346 |
**************************** }
|
347 |
{ Retrieves the number of attachments and databases }
|
348 |
isc_info_svc_svr_db_info = 50;
|
349 |
{ Retrieves all license keys and IDs from the license file }
|
350 |
isc_info_svc_get_license = 51;
|
351 |
{ Retrieves a bitmask representing licensed options on the server }
|
352 |
isc_info_svc_get_license_mask = 52;
|
353 |
{ Retrieves the parameters and values for IB_CONFIG }
|
354 |
isc_info_svc_get_config = 53;
|
355 |
{ Retrieves the version of the services manager }
|
356 |
isc_info_svc_version = 54;
|
357 |
{ Retrieves the version of the Firebird server }
|
358 |
isc_info_svc_server_version = 55;
|
359 |
{ Retrieves the implementation of the Firebird server }
|
360 |
isc_info_svc_implementation = 56;
|
361 |
{ Retrieves a bitmask representing the server's capabilities }
|
362 |
isc_info_svc_capabilities = 57;
|
363 |
{ Retrieves the path to the security database in use by the server }
|
364 |
isc_info_svc_user_dbpath = 58;
|
365 |
{ Retrieves the setting of $FIREBIRD }
|
366 |
isc_info_svc_get_env = 59;
|
367 |
{ Retrieves the setting of $FIREBIRD_LOCK }
|
368 |
isc_info_svc_get_env_lock = 60;
|
369 |
{ Retrieves the setting of $FIREBIRD_MSG }
|
370 |
isc_info_svc_get_env_msg = 61;
|
371 |
{ Retrieves 1 line of service output per call }
|
372 |
isc_info_svc_line = 62;
|
373 |
{ Retrieves as much of the server output as will fit in the supplied buffer }
|
374 |
isc_info_svc_to_eof = 63;
|
375 |
{ Sets / signifies a timeout value for reading service information }
|
376 |
isc_info_svc_timeout = 64;
|
377 |
{ Retrieves the number of users licensed for accessing the server }
|
378 |
isc_info_svc_get_licensed_users = 65;
|
379 |
{ Retrieve the limbo transactions }
|
380 |
isc_info_svc_limbo_trans = 66;
|
381 |
{ Checks to see if a service is running on an attachment }
|
382 |
isc_info_svc_running = 67;
|
383 |
{ Returns the user information from isc_action_svc_display_users }
|
384 |
isc_info_svc_get_users = 68;
|
385 |
{ Sets authentication block for service query() call }
|
386 |
isc_info_svc_auth_block = 69;
|
387 |
{ Returns maximum size of data, needed as stdin for service }
|
388 |
isc_info_svc_stdin = 78;
|
389 |
{*****************************************************
|
390 |
* Parameters for isc_action_add|del|mod|disp)_user *
|
391 |
***************************************************** }
|
392 |
isc_spb_sec_userid = 5;
|
393 |
isc_spb_sec_groupid = 6;
|
394 |
isc_spb_sec_username = 7;
|
395 |
isc_spb_sec_password = 8;
|
396 |
isc_spb_sec_groupname = 9;
|
397 |
isc_spb_sec_firstname = 10;
|
398 |
isc_spb_sec_middlename = 11;
|
399 |
isc_spb_sec_lastname = 12;
|
400 |
isc_spb_sec_admin = 13;
|
401 |
{******************************************************
|
402 |
* Parameters for isc_action_svc_(add|remove)_license, *
|
403 |
* isc_info_svc_get_license *
|
404 |
****************************************************** }
|
405 |
isc_spb_lic_key = 5;
|
406 |
isc_spb_lic_id = 6;
|
407 |
isc_spb_lic_desc = 7;
|
408 |
{****************************************
|
409 |
* Parameters for isc_action_svc_backup *
|
410 |
**************************************** }
|
411 |
isc_spb_bkp_file = 5;
|
412 |
isc_spb_bkp_factor = 6;
|
413 |
isc_spb_bkp_length = 7;
|
414 |
isc_spb_bkp_skip_data = 8;
|
415 |
isc_spb_bkp_stat = 15;
|
416 |
isc_spb_bkp_keyholder = 16;
|
417 |
isc_spb_bkp_keyname = 17;
|
418 |
isc_spb_bkp_crypt = 18;
|
419 |
isc_spb_bkp_include_data = 19;
|
420 |
isc_spb_bkp_ignore_checksums = $01;
|
421 |
isc_spb_bkp_ignore_limbo = $02;
|
422 |
isc_spb_bkp_metadata_only = $04;
|
423 |
isc_spb_bkp_no_garbage_collect = $08;
|
424 |
isc_spb_bkp_old_descriptions = $10;
|
425 |
isc_spb_bkp_non_transportable = $20;
|
426 |
isc_spb_bkp_convert = $40;
|
427 |
isc_spb_bkp_expand = $80;
|
428 |
isc_spb_bkp_no_triggers = $8000;
|
429 |
isc_spb_bkp_zip = $010000;
|
430 |
{*******************************************
|
431 |
* Parameters for isc_action_svc_properties *
|
432 |
******************************************* }
|
433 |
isc_spb_prp_page_buffers = 5;
|
434 |
isc_spb_prp_sweep_interval = 6;
|
435 |
isc_spb_prp_shutdown_db = 7;
|
436 |
isc_spb_prp_deny_new_attachments = 9;
|
437 |
isc_spb_prp_deny_new_transactions = 10;
|
438 |
isc_spb_prp_reserve_space = 11;
|
439 |
isc_spb_prp_write_mode = 12;
|
440 |
isc_spb_prp_access_mode = 13;
|
441 |
isc_spb_prp_set_sql_dialect = 14;
|
442 |
isc_spb_prp_activate = $0100;
|
443 |
isc_spb_prp_db_online = $0200;
|
444 |
isc_spb_prp_nolinger = $0400;
|
445 |
isc_spb_prp_force_shutdown = 41;
|
446 |
isc_spb_prp_attachments_shutdown = 42;
|
447 |
isc_spb_prp_transactions_shutdown = 43;
|
448 |
isc_spb_prp_shutdown_mode = 44;
|
449 |
isc_spb_prp_online_mode = 45;
|
450 |
{*******************************************
|
451 |
* Parameters for isc_spb_prp_shutdown_mode *
|
452 |
* and isc_spb_prp_online_mode *
|
453 |
******************************************* }
|
454 |
isc_spb_prp_sm_normal = 0;
|
455 |
isc_spb_prp_sm_multi = 1;
|
456 |
isc_spb_prp_sm_single = 2;
|
457 |
isc_spb_prp_sm_full = 3;
|
458 |
{*******************************************
|
459 |
* Parameters for isc_spb_prp_reserve_space *
|
460 |
******************************************* }
|
461 |
isc_spb_prp_res_use_full = 35;
|
462 |
isc_spb_prp_res = 36;
|
463 |
{*****************************************
|
464 |
* Parameters for isc_spb_prp_write_mode *
|
465 |
***************************************** }
|
466 |
isc_spb_prp_wm_async = 37;
|
467 |
isc_spb_prp_wm_sync = 38;
|
468 |
{*****************************************
|
469 |
* Parameters for isc_spb_prp_access_mode *
|
470 |
***************************************** }
|
471 |
isc_spb_prp_am_readonly = 39;
|
472 |
isc_spb_prp_am_readwrite = 40;
|
473 |
{****************************************
|
474 |
* Parameters for isc_action_svc_repair *
|
475 |
**************************************** }
|
476 |
isc_spb_rpr_commit_trans = 15;
|
477 |
isc_spb_rpr_rollback_trans = 34;
|
478 |
isc_spb_rpr_recover_two_phase = 17;
|
479 |
isc_spb_tra_id = 18;
|
480 |
isc_spb_single_tra_id = 19;
|
481 |
isc_spb_multi_tra_id = 20;
|
482 |
isc_spb_tra_state = 21;
|
483 |
isc_spb_tra_state_limbo = 22;
|
484 |
isc_spb_tra_state_commit = 23;
|
485 |
isc_spb_tra_state_rollback = 24;
|
486 |
isc_spb_tra_state_unknown = 25;
|
487 |
isc_spb_tra_host_site = 26;
|
488 |
isc_spb_tra_remote_site = 27;
|
489 |
isc_spb_tra_db_path = 28;
|
490 |
isc_spb_tra_advise = 29;
|
491 |
isc_spb_tra_advise_commit = 30;
|
492 |
isc_spb_tra_advise_rollback = 31;
|
493 |
isc_spb_tra_advise_unknown = 33;
|
494 |
isc_spb_tra_id_64 = 46;
|
495 |
isc_spb_single_tra_id_64 = 47;
|
496 |
isc_spb_multi_tra_id_64 = 48;
|
497 |
isc_spb_rpr_commit_trans_64 = 49;
|
498 |
isc_spb_rpr_rollback_trans_64 = 50;
|
499 |
isc_spb_rpr_recover_two_phase_64 = 51;
|
500 |
isc_spb_rpr_validate_db = $01;
|
501 |
isc_spb_rpr_sweep_db = $02;
|
502 |
isc_spb_rpr_mend_db = $04;
|
503 |
isc_spb_rpr_list_limbo_trans = $08;
|
504 |
isc_spb_rpr_check_db = $10;
|
505 |
isc_spb_rpr_ignore_checksum = $20;
|
506 |
isc_spb_rpr_kill_shadows = $40;
|
507 |
isc_spb_rpr_full = $80;
|
508 |
isc_spb_rpr_icu = $0800;
|
509 |
{****************************************
|
510 |
* Parameters for isc_action_svc_restore *
|
511 |
**************************************** }
|
512 |
isc_spb_res_skip_data = isc_spb_bkp_skip_data;
|
513 |
isc_spb_res_include_data = isc_spb_bkp_include_data;
|
514 |
isc_spb_res_buffers = 9;
|
515 |
isc_spb_res_page_size = 10;
|
516 |
isc_spb_res_length = 11;
|
517 |
isc_spb_res_access_mode = 12;
|
518 |
isc_spb_res_fix_fss_data = 13;
|
519 |
isc_spb_res_fix_fss_metadata = 14;
|
520 |
isc_spb_res_keyholder = isc_spb_bkp_keyholder;
|
521 |
isc_spb_res_keyname = isc_spb_bkp_keyname;
|
522 |
isc_spb_res_crypt = isc_spb_bkp_crypt;
|
523 |
isc_spb_res_stat = isc_spb_bkp_stat;
|
524 |
isc_spb_res_metadata_only = isc_spb_bkp_metadata_only;
|
525 |
isc_spb_res_deactivate_idx = $0100;
|
526 |
isc_spb_res_no_shadow = $0200;
|
527 |
isc_spb_res_no_validity = $0400;
|
528 |
isc_spb_res_one_at_a_time = $0800;
|
529 |
isc_spb_res_replace = $1000;
|
530 |
isc_spb_res_create = $2000;
|
531 |
isc_spb_res_use_all_space = $4000;
|
532 |
{****************************************
|
533 |
* Parameters for isc_action_svc_validate *
|
534 |
**************************************** }
|
535 |
isc_spb_val_tab_incl = 1; { include filter based on regular expression }
|
536 |
isc_spb_val_tab_excl = 2; { exclude filter based on regular expression }
|
537 |
isc_spb_val_idx_incl = 3; { regexp of indices to validate }
|
538 |
isc_spb_val_idx_excl = 4; { regexp of indices to NOT validate }
|
539 |
isc_spb_val_lock_timeout = 5; { how long to wait for table lock }
|
540 |
{*****************************************
|
541 |
* Parameters for isc_spb_res_access_mode *
|
542 |
***************************************** }
|
543 |
isc_spb_res_am_readonly = isc_spb_prp_am_readonly;
|
544 |
isc_spb_res_am_readwrite = isc_spb_prp_am_readwrite;
|
545 |
{******************************************
|
546 |
* Parameters for isc_info_svc_svr_db_info *
|
547 |
****************************************** }
|
548 |
isc_spb_num_att = 5;
|
549 |
isc_spb_num_db = 6;
|
550 |
{****************************************
|
551 |
* Parameters for isc_info_svc_db_stats *
|
552 |
**************************************** }
|
553 |
isc_spb_sts_table = 64;
|
554 |
isc_spb_sts_data_pages = $01;
|
555 |
isc_spb_sts_db_log = $02;
|
556 |
isc_spb_sts_hdr_pages = $04;
|
557 |
isc_spb_sts_idx_pages = $08;
|
558 |
isc_spb_sts_sys_relations = $10;
|
559 |
isc_spb_sts_record_versions = $20;
|
560 |
{#define isc_spb_sts_table 0x40 }
|
561 |
isc_spb_sts_nocreation = $80;
|
562 |
isc_spb_sts_encryption = $100;
|
563 |
{********************************* }
|
564 |
{ Server configuration key values }
|
565 |
{********************************* }
|
566 |
{ Not available in Firebird 1.5 }
|
567 |
{**************************************
|
568 |
* Parameters for isc_action_svc_nbak *
|
569 |
************************************** }
|
570 |
isc_spb_nbk_level = 5;
|
571 |
isc_spb_nbk_file = 6;
|
572 |
isc_spb_nbk_direct = 7;
|
573 |
isc_spb_nbk_guid = 8;
|
574 |
isc_spb_nbk_no_triggers = $01;
|
575 |
isc_spb_nbk_inplace = $02;
|
576 |
{**************************************
|
577 |
* Parameters for isc_action_svc_trace *
|
578 |
************************************** }
|
579 |
isc_spb_trc_id = 1;
|
580 |
isc_spb_trc_name = 2;
|
581 |
isc_spb_trc_cfg = 3;
|
582 |
{**************************************** }
|
583 |
{ Array slice description language (SDL) }
|
584 |
{**************************************** }
|
585 |
isc_sdl_version1 = 1;
|
586 |
isc_sdl_eoc = 255;
|
587 |
isc_sdl_relation = 2;
|
588 |
isc_sdl_rid = 3;
|
589 |
isc_sdl_field = 4;
|
590 |
isc_sdl_fid = 5;
|
591 |
isc_sdl_struct = 6;
|
592 |
isc_sdl_variable = 7;
|
593 |
isc_sdl_scalar = 8;
|
594 |
isc_sdl_tiny_integer = 9;
|
595 |
isc_sdl_short_integer = 10;
|
596 |
isc_sdl_long_integer = 11;
|
597 |
{#define isc_sdl_literal 12 }
|
598 |
isc_sdl_add = 13;
|
599 |
isc_sdl_subtract = 14;
|
600 |
isc_sdl_multiply = 15;
|
601 |
isc_sdl_divide = 16;
|
602 |
isc_sdl_negate = 17; { only used in pretty.cpp; nobody generates it }
|
603 |
{#define isc_sdl_eql 18 }
|
604 |
{#define isc_sdl_neq 19 }
|
605 |
{#define isc_sdl_gtr 20 }
|
606 |
{#define isc_sdl_geq 21 }
|
607 |
{#define isc_sdl_lss 22 }
|
608 |
{#define isc_sdl_leq 23 }
|
609 |
{#define isc_sdl_and 24 }
|
610 |
{#define isc_sdl_or 25 }
|
611 |
{#define isc_sdl_not 26 }
|
612 |
{#define isc_sdl_while 27 }
|
613 |
{#define isc_sdl_assignment 28 }
|
614 |
{#define isc_sdl_label 29 }
|
615 |
{#define isc_sdl_leave 30 }
|
616 |
isc_sdl_begin = 31; { only used in pretty.cpp; nobody generates it }
|
617 |
isc_sdl_end = 32;
|
618 |
isc_sdl_do3 = 33;
|
619 |
isc_sdl_do2 = 34;
|
620 |
isc_sdl_do1 = 35;
|
621 |
isc_sdl_element = 36;
|
622 |
{****************************************** }
|
623 |
{ International text interpretation values }
|
624 |
{****************************************** }
|
625 |
{#define isc_interp_eng_ascii 0 }
|
626 |
{#define isc_interp_jpn_sjis 5 }
|
627 |
{#define isc_interp_jpn_euc 6 }
|
628 |
{*************** }
|
629 |
{ Blob Subtypes }
|
630 |
{*************** }
|
631 |
{ types less than zero are reserved for customer use }
|
632 |
isc_blob_untyped = 0;
|
633 |
{ internal subtypes }
|
634 |
isc_blob_text = 1;
|
635 |
isc_blob_blr = 2;
|
636 |
isc_blob_acl = 3;
|
637 |
isc_blob_ranges = 4;
|
638 |
isc_blob_summary = 5;
|
639 |
isc_blob_format = 6;
|
640 |
isc_blob_tra = 7;
|
641 |
isc_blob_extfile = 8;
|
642 |
isc_blob_debug_info = 9;
|
643 |
isc_blob_max_predefined_subtype = 10;
|
644 |
{ the range 20-30 is reserved for dBASE and Paradox types }
|
645 |
{#define isc_blob_formatted_memo 20 }
|
646 |
{#define isc_blob_paradox_ole 21 }
|
647 |
{#define isc_blob_graphic 22 }
|
648 |
{#define isc_blob_dbase_ole 23 }
|
649 |
{#define isc_blob_typed_binary 24 }
|
650 |
{*************** }
|
651 |
{ Text Subtypes }
|
652 |
{*************** }
|
653 |
fb_text_subtype_text = 0;
|
654 |
fb_text_subtype_binary = 1;
|
655 |
{ Deprecated definitions maintained for compatibility only }
|
656 |
{#define isc_info_db_SQL_dialect 62 }
|
657 |
{#define isc_dpb_SQL_dialect 63 }
|
658 |
{#define isc_dpb_set_db_SQL_dialect 65 }
|
659 |
{********************************* }
|
660 |
{ Masks for fb_shutdown_callback }
|
661 |
{********************************* }
|
662 |
fb_shut_confirmation = 1;
|
663 |
fb_shut_preproviders = 2;
|
664 |
fb_shut_postproviders = 4;
|
665 |
fb_shut_finish = 8;
|
666 |
fb_shut_exit = 16;
|
667 |
{************************************** }
|
668 |
{ Shutdown reasons, used by engine }
|
669 |
{ Users should provide positive values }
|
670 |
{************************************** }
|
671 |
fb_shutrsn_svc_stopped = -(1);
|
672 |
fb_shutrsn_no_connection = -(2);
|
673 |
fb_shutrsn_app_stopped = -(3);
|
674 |
{#define fb_shutrsn_device_removed -4 }
|
675 |
fb_shutrsn_signal = -(5);
|
676 |
fb_shutrsn_services = -(6);
|
677 |
fb_shutrsn_exit_called = -(7);
|
678 |
{************************************** }
|
679 |
{ Cancel types for fb_cancel_operation }
|
680 |
{************************************** }
|
681 |
fb_cancel_disable = 1;
|
682 |
fb_cancel_enable = 2;
|
683 |
fb_cancel_raise = 3;
|
684 |
fb_cancel_abort = 4;
|
685 |
{****************************************** }
|
686 |
{ Debug information items }
|
687 |
{****************************************** }
|
688 |
fb_dbg_version = 1;
|
689 |
fb_dbg_end = 255;
|
690 |
fb_dbg_map_src2blr = 2;
|
691 |
fb_dbg_map_varname = 3;
|
692 |
fb_dbg_map_argument = 4;
|
693 |
fb_dbg_subproc = 5;
|
694 |
fb_dbg_subfunc = 6;
|
695 |
fb_dbg_map_curname = 7;
|
696 |
{ sub code for fb_dbg_map_argument }
|
697 |
fb_dbg_arg_input = 0;
|
698 |
fb_dbg_arg_output = 1;
|
699 |
{$endif}
|
700 |
{ ifndef FIREBIRD_IMPL_CONSTS_PUB_H }
|
701 |
|