ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/client/include/consts_pub.inc
Revision: 371
Committed: Wed Jan 5 15:21:22 2022 UTC (2 years, 3 months ago) by tony
File size: 27982 byte(s)
Log Message:
Beta Release 0.1

File Contents

# Content
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 { isc_dpb_set_db_replica specific flags }
216 {*************************************** }
217 isc_dpb_replica_none = 0;
218 isc_dpb_replica_read_only = 1;
219 isc_dpb_replica_read_write = 2;
220 {************************************ }
221 { Bit assignments in RDB$SYSTEM_FLAG }
222 {************************************ }
223 RDB_system = 1;
224 RDB_id_assigned = 2;
225 { 2 is for QLI. See jrd/constants.h for more Firebird-specific values. }
226 {*********************************** }
227 { Transaction parameter block stuff }
228 {*********************************** }
229 isc_tpb_version1 = 1;
230 isc_tpb_version3 = 3;
231 isc_tpb_consistency = 1;
232 isc_tpb_concurrency = 2;
233 isc_tpb_shared = 3;
234 isc_tpb_protected = 4;
235 isc_tpb_exclusive = 5;
236 isc_tpb_wait = 6;
237 isc_tpb_nowait = 7;
238 isc_tpb_read = 8;
239 isc_tpb_write = 9;
240 isc_tpb_lock_read = 10;
241 isc_tpb_lock_write = 11;
242 isc_tpb_verb_time = 12;
243 isc_tpb_commit_time = 13;
244 isc_tpb_ignore_limbo = 14;
245 isc_tpb_read_committed = 15;
246 isc_tpb_autocommit = 16;
247 isc_tpb_rec_version = 17;
248 isc_tpb_no_rec_version = 18;
249 isc_tpb_restart_requests = 19;
250 isc_tpb_no_auto_undo = 20;
251 isc_tpb_lock_timeout = 21;
252 isc_tpb_read_consistency = 22;
253 isc_tpb_at_snapshot_number = 23;
254 {********************** }
255 { Blob Parameter Block }
256 {********************** }
257 isc_bpb_version1 = 1;
258 isc_bpb_source_type = 1;
259 isc_bpb_target_type = 2;
260 isc_bpb_type = 3;
261 isc_bpb_source_interp = 4;
262 isc_bpb_target_interp = 5;
263 isc_bpb_filter_parameter = 6;
264 isc_bpb_storage = 7;
265 isc_bpb_type_segmented = $0;
266 isc_bpb_type_stream = $1;
267 isc_bpb_storage_main = $0;
268 isc_bpb_storage_temp = $2;
269 {******************************* }
270 { Service parameter block stuff }
271 {******************************* }
272 isc_spb_version1 = 1;
273 isc_spb_current_version = 2;
274 isc_spb_version = isc_spb_current_version;
275 isc_spb_version3 = 3;
276 isc_spb_user_name = isc_dpb_user_name;
277 isc_spb_sys_user_name = isc_dpb_sys_user_name;
278 isc_spb_sys_user_name_enc = isc_dpb_sys_user_name_enc;
279 isc_spb_password = isc_dpb_password;
280 isc_spb_password_enc = isc_dpb_password_enc;
281 isc_spb_command_line = 105;
282 isc_spb_dbname = 106;
283 isc_spb_verbose = 107;
284 isc_spb_options = 108;
285 isc_spb_address_path = 109;
286 isc_spb_process_id = 110;
287 isc_spb_trusted_auth = 111;
288 isc_spb_process_name = 112;
289 isc_spb_trusted_role = 113;
290 isc_spb_verbint = 114;
291 isc_spb_auth_block = 115;
292 isc_spb_auth_plugin_name = 116;
293 isc_spb_auth_plugin_list = 117;
294 isc_spb_utf8_filename = 118;
295 isc_spb_client_version = 119;
296 isc_spb_remote_protocol = 120;
297 isc_spb_host_name = 121;
298 isc_spb_os_user = 122;
299 isc_spb_config = 123;
300 isc_spb_expected_db = 124;
301 isc_spb_connect_timeout = isc_dpb_connect_timeout;
302 isc_spb_dummy_packet_interval = isc_dpb_dummy_packet_interval;
303 isc_spb_sql_role_name = isc_dpb_sql_role_name;
304 { This will not be used in protocol 13, therefore may be reused }
305 isc_spb_specific_auth_data = isc_spb_trusted_auth;
306 {****************************
307 * Service action items *
308 **************************** }
309 { Starts database backup process on the server }
310 isc_action_svc_backup = 1;
311 { Starts database restore process on the server }
312 isc_action_svc_restore = 2;
313 { Starts database repair process on the server }
314 isc_action_svc_repair = 3;
315 { Adds a new user to the security database }
316 isc_action_svc_add_user = 4;
317 { Deletes a user record from the security database }
318 isc_action_svc_delete_user = 5;
319 { Modifies a user record in the security database }
320 isc_action_svc_modify_user = 6;
321 { Displays a user record from the security database }
322 isc_action_svc_display_user = 7;
323 { Sets database properties }
324 isc_action_svc_properties = 8;
325 { Adds a license to the license file }
326 isc_action_svc_add_license = 9;
327 { Removes a license from the license file }
328 isc_action_svc_remove_license = 10;
329 { Retrieves database statistics }
330 isc_action_svc_db_stats = 11;
331 { Retrieves the InterBase log file from the server }
332 isc_action_svc_get_ib_log = 12;
333 { Retrieves the Firebird log file from the server }
334 isc_action_svc_get_fb_log = 12;
335 { Incremental nbackup }
336 isc_action_svc_nbak = 20;
337 { Incremental database restore }
338 isc_action_svc_nrest = 21;
339 isc_action_svc_trace_start = 22; { Start trace session }
340 isc_action_svc_trace_stop = 23; { Stop trace session }
341 isc_action_svc_trace_suspend = 24; { Suspend trace session }
342 isc_action_svc_trace_resume = 25; { Resume trace session }
343 isc_action_svc_trace_list = 26; { List existing sessions }
344 isc_action_svc_set_mapping = 27; { Set auto admins mapping in security database }
345 isc_action_svc_drop_mapping = 28; { Drop auto admins mapping in security database }
346 isc_action_svc_display_user_adm = 29; { Displays user(s) from security database with admin info }
347 isc_action_svc_validate = 30; { Starts database online validation }
348 isc_action_svc_nfix = 31; { Fixup database after file system copy }
349 isc_action_svc_last = 32; { keep it last ! }
350 {****************************
351 * Service information items *
352 **************************** }
353 { Retrieves the number of attachments and databases }
354 isc_info_svc_svr_db_info = 50;
355 { Retrieves all license keys and IDs from the license file }
356 isc_info_svc_get_license = 51;
357 { Retrieves a bitmask representing licensed options on the server }
358 isc_info_svc_get_license_mask = 52;
359 { Retrieves the parameters and values for IB_CONFIG }
360 isc_info_svc_get_config = 53;
361 { Retrieves the version of the services manager }
362 isc_info_svc_version = 54;
363 { Retrieves the version of the Firebird server }
364 isc_info_svc_server_version = 55;
365 { Retrieves the implementation of the Firebird server }
366 isc_info_svc_implementation = 56;
367 { Retrieves a bitmask representing the server's capabilities }
368 isc_info_svc_capabilities = 57;
369 { Retrieves the path to the security database in use by the server }
370 isc_info_svc_user_dbpath = 58;
371 { Retrieves the setting of $FIREBIRD }
372 isc_info_svc_get_env = 59;
373 { Retrieves the setting of $FIREBIRD_LOCK }
374 isc_info_svc_get_env_lock = 60;
375 { Retrieves the setting of $FIREBIRD_MSG }
376 isc_info_svc_get_env_msg = 61;
377 { Retrieves 1 line of service output per call }
378 isc_info_svc_line = 62;
379 { Retrieves as much of the server output as will fit in the supplied buffer }
380 isc_info_svc_to_eof = 63;
381 { Sets / signifies a timeout value for reading service information }
382 isc_info_svc_timeout = 64;
383 { Retrieves the number of users licensed for accessing the server }
384 isc_info_svc_get_licensed_users = 65;
385 { Retrieve the limbo transactions }
386 isc_info_svc_limbo_trans = 66;
387 { Checks to see if a service is running on an attachment }
388 isc_info_svc_running = 67;
389 { Returns the user information from isc_action_svc_display_users }
390 isc_info_svc_get_users = 68;
391 { Sets authentication block for service query() call }
392 isc_info_svc_auth_block = 69;
393 { Returns maximum size of data, needed as stdin for service }
394 isc_info_svc_stdin = 78;
395 {*****************************************************
396 * Parameters for isc_action_add|del|mod|disp)_user *
397 ***************************************************** }
398 isc_spb_sec_userid = 5;
399 isc_spb_sec_groupid = 6;
400 isc_spb_sec_username = 7;
401 isc_spb_sec_password = 8;
402 isc_spb_sec_groupname = 9;
403 isc_spb_sec_firstname = 10;
404 isc_spb_sec_middlename = 11;
405 isc_spb_sec_lastname = 12;
406 isc_spb_sec_admin = 13;
407 {******************************************************
408 * Parameters for isc_action_svc_(add|remove)_license, *
409 * isc_info_svc_get_license *
410 ****************************************************** }
411 isc_spb_lic_key = 5;
412 isc_spb_lic_id = 6;
413 isc_spb_lic_desc = 7;
414 {****************************************
415 * Parameters for isc_action_svc_backup *
416 **************************************** }
417 isc_spb_bkp_file = 5;
418 isc_spb_bkp_factor = 6;
419 isc_spb_bkp_length = 7;
420 isc_spb_bkp_skip_data = 8;
421 isc_spb_bkp_stat = 15;
422 isc_spb_bkp_keyholder = 16;
423 isc_spb_bkp_keyname = 17;
424 isc_spb_bkp_crypt = 18;
425 isc_spb_bkp_include_data = 19;
426 isc_spb_bkp_ignore_checksums = $01;
427 isc_spb_bkp_ignore_limbo = $02;
428 isc_spb_bkp_metadata_only = $04;
429 isc_spb_bkp_no_garbage_collect = $08;
430 isc_spb_bkp_old_descriptions = $10;
431 isc_spb_bkp_non_transportable = $20;
432 isc_spb_bkp_convert = $40;
433 isc_spb_bkp_expand = $80;
434 isc_spb_bkp_no_triggers = $8000;
435 isc_spb_bkp_zip = $010000;
436 {*******************************************
437 * Parameters for isc_action_svc_properties *
438 ******************************************* }
439 isc_spb_prp_page_buffers = 5;
440 isc_spb_prp_sweep_interval = 6;
441 isc_spb_prp_shutdown_db = 7;
442 isc_spb_prp_deny_new_attachments = 9;
443 isc_spb_prp_deny_new_transactions = 10;
444 isc_spb_prp_reserve_space = 11;
445 isc_spb_prp_write_mode = 12;
446 isc_spb_prp_access_mode = 13;
447 isc_spb_prp_set_sql_dialect = 14;
448 isc_spb_prp_activate = $0100;
449 isc_spb_prp_db_online = $0200;
450 isc_spb_prp_nolinger = $0400;
451 isc_spb_prp_force_shutdown = 41;
452 isc_spb_prp_attachments_shutdown = 42;
453 isc_spb_prp_transactions_shutdown = 43;
454 isc_spb_prp_shutdown_mode = 44;
455 isc_spb_prp_online_mode = 45;
456 isc_spb_prp_replica_mode = 46;
457 {*******************************************
458 * Parameters for isc_spb_prp_shutdown_mode *
459 * and isc_spb_prp_online_mode *
460 ******************************************* }
461 isc_spb_prp_sm_normal = 0;
462 isc_spb_prp_sm_multi = 1;
463 isc_spb_prp_sm_single = 2;
464 isc_spb_prp_sm_full = 3;
465 {*******************************************
466 * Parameters for isc_spb_prp_reserve_space *
467 ******************************************* }
468 isc_spb_prp_res_use_full = 35;
469 isc_spb_prp_res = 36;
470 {*****************************************
471 * Parameters for isc_spb_prp_write_mode *
472 ***************************************** }
473 isc_spb_prp_wm_async = 37;
474 isc_spb_prp_wm_sync = 38;
475 {*****************************************
476 * Parameters for isc_spb_prp_access_mode *
477 ***************************************** }
478 isc_spb_prp_am_readonly = 39;
479 isc_spb_prp_am_readwrite = 40;
480 {******************************************
481 * Parameters for isc_spb_prp_replica_mode *
482 ****************************************** }
483 isc_spb_prp_rm_none = 0;
484 isc_spb_prp_rm_readonly = 1;
485 isc_spb_prp_rm_readwrite = 2;
486 {****************************************
487 * Parameters for isc_action_svc_repair *
488 **************************************** }
489 isc_spb_rpr_commit_trans = 15;
490 isc_spb_rpr_rollback_trans = 34;
491 isc_spb_rpr_recover_two_phase = 17;
492 isc_spb_tra_id = 18;
493 isc_spb_single_tra_id = 19;
494 isc_spb_multi_tra_id = 20;
495 isc_spb_tra_state = 21;
496 isc_spb_tra_state_limbo = 22;
497 isc_spb_tra_state_commit = 23;
498 isc_spb_tra_state_rollback = 24;
499 isc_spb_tra_state_unknown = 25;
500 isc_spb_tra_host_site = 26;
501 isc_spb_tra_remote_site = 27;
502 isc_spb_tra_db_path = 28;
503 isc_spb_tra_advise = 29;
504 isc_spb_tra_advise_commit = 30;
505 isc_spb_tra_advise_rollback = 31;
506 isc_spb_tra_advise_unknown = 33;
507 isc_spb_tra_id_64 = 46;
508 isc_spb_single_tra_id_64 = 47;
509 isc_spb_multi_tra_id_64 = 48;
510 isc_spb_rpr_commit_trans_64 = 49;
511 isc_spb_rpr_rollback_trans_64 = 50;
512 isc_spb_rpr_recover_two_phase_64 = 51;
513 isc_spb_rpr_validate_db = $01;
514 isc_spb_rpr_sweep_db = $02;
515 isc_spb_rpr_mend_db = $04;
516 isc_spb_rpr_list_limbo_trans = $08;
517 isc_spb_rpr_check_db = $10;
518 isc_spb_rpr_ignore_checksum = $20;
519 isc_spb_rpr_kill_shadows = $40;
520 isc_spb_rpr_full = $80;
521 isc_spb_rpr_icu = $0800;
522 {****************************************
523 * Parameters for isc_action_svc_restore *
524 **************************************** }
525 isc_spb_res_skip_data = isc_spb_bkp_skip_data;
526 isc_spb_res_include_data = isc_spb_bkp_include_data;
527 isc_spb_res_buffers = 9;
528 isc_spb_res_page_size = 10;
529 isc_spb_res_length = 11;
530 isc_spb_res_access_mode = 12;
531 isc_spb_res_fix_fss_data = 13;
532 isc_spb_res_fix_fss_metadata = 14;
533 isc_spb_res_keyholder = isc_spb_bkp_keyholder;
534 isc_spb_res_keyname = isc_spb_bkp_keyname;
535 isc_spb_res_crypt = isc_spb_bkp_crypt;
536 isc_spb_res_stat = isc_spb_bkp_stat;
537 isc_spb_res_metadata_only = isc_spb_bkp_metadata_only;
538 isc_spb_res_deactivate_idx = $0100;
539 isc_spb_res_no_shadow = $0200;
540 isc_spb_res_no_validity = $0400;
541 isc_spb_res_one_at_a_time = $0800;
542 isc_spb_res_replace = $1000;
543 isc_spb_res_create = $2000;
544 isc_spb_res_use_all_space = $4000;
545 isc_spb_res_replica_mode = 20;
546 {****************************************
547 * Parameters for isc_action_svc_validate *
548 **************************************** }
549 isc_spb_val_tab_incl = 1; { include filter based on regular expression }
550 isc_spb_val_tab_excl = 2; { exclude filter based on regular expression }
551 isc_spb_val_idx_incl = 3; { regexp of indices to validate }
552 isc_spb_val_idx_excl = 4; { regexp of indices to NOT validate }
553 isc_spb_val_lock_timeout = 5; { how long to wait for table lock }
554 {*****************************************
555 * Parameters for isc_spb_res_access_mode *
556 ***************************************** }
557 isc_spb_res_am_readonly = isc_spb_prp_am_readonly;
558 isc_spb_res_am_readwrite = isc_spb_prp_am_readwrite;
559 {******************************************
560 * Parameters for isc_spb_res_replica_mode *
561 ****************************************** }
562 isc_spb_res_rm_none = isc_spb_prp_rm_none;
563 isc_spb_res_rm_readonly = isc_spb_prp_rm_readonly;
564 isc_spb_res_rm_readwrite = isc_spb_prp_rm_readwrite;
565 {******************************************
566 * Parameters for isc_info_svc_svr_db_info *
567 ****************************************** }
568 isc_spb_num_att = 5;
569 isc_spb_num_db = 6;
570 {****************************************
571 * Parameters for isc_info_svc_db_stats *
572 **************************************** }
573 isc_spb_sts_table = 64;
574 isc_spb_sts_data_pages = $01;
575 isc_spb_sts_db_log = $02;
576 isc_spb_sts_hdr_pages = $04;
577 isc_spb_sts_idx_pages = $08;
578 isc_spb_sts_sys_relations = $10;
579 isc_spb_sts_record_versions = $20;
580 {#define isc_spb_sts_table 0x40 }
581 isc_spb_sts_nocreation = $80;
582 isc_spb_sts_encryption = $100;
583 {********************************* }
584 { Server configuration key values }
585 {********************************* }
586 { Not available in Firebird 1.5 }
587 {**************************************
588 * Parameters for isc_action_svc_nbak *
589 ************************************** }
590 isc_spb_nbk_level = 5;
591 isc_spb_nbk_file = 6;
592 isc_spb_nbk_direct = 7;
593 isc_spb_nbk_guid = 8;
594 isc_spb_nbk_no_triggers = $01;
595 isc_spb_nbk_inplace = $02;
596 isc_spb_nbk_sequence = $04;
597 {**************************************
598 * Parameters for isc_action_svc_trace *
599 ************************************** }
600 isc_spb_trc_id = 1;
601 isc_spb_trc_name = 2;
602 isc_spb_trc_cfg = 3;
603 {**************************************** }
604 { Array slice description language (SDL) }
605 {**************************************** }
606 isc_sdl_version1 = 1;
607 isc_sdl_eoc = 255;
608 isc_sdl_relation = 2;
609 isc_sdl_rid = 3;
610 isc_sdl_field = 4;
611 isc_sdl_fid = 5;
612 isc_sdl_struct = 6;
613 isc_sdl_variable = 7;
614 isc_sdl_scalar = 8;
615 isc_sdl_tiny_integer = 9;
616 isc_sdl_short_integer = 10;
617 isc_sdl_long_integer = 11;
618 {#define isc_sdl_literal 12 }
619 isc_sdl_add = 13;
620 isc_sdl_subtract = 14;
621 isc_sdl_multiply = 15;
622 isc_sdl_divide = 16;
623 isc_sdl_negate = 17; { only used in pretty.cpp; nobody generates it }
624 {#define isc_sdl_eql 18 }
625 {#define isc_sdl_neq 19 }
626 {#define isc_sdl_gtr 20 }
627 {#define isc_sdl_geq 21 }
628 {#define isc_sdl_lss 22 }
629 {#define isc_sdl_leq 23 }
630 {#define isc_sdl_and 24 }
631 {#define isc_sdl_or 25 }
632 {#define isc_sdl_not 26 }
633 {#define isc_sdl_while 27 }
634 {#define isc_sdl_assignment 28 }
635 {#define isc_sdl_label 29 }
636 {#define isc_sdl_leave 30 }
637 isc_sdl_begin = 31; { only used in pretty.cpp; nobody generates it }
638 isc_sdl_end = 32;
639 isc_sdl_do3 = 33;
640 isc_sdl_do2 = 34;
641 isc_sdl_do1 = 35;
642 isc_sdl_element = 36;
643 {****************************************** }
644 { International text interpretation values }
645 {****************************************** }
646 {#define isc_interp_eng_ascii 0 }
647 {#define isc_interp_jpn_sjis 5 }
648 {#define isc_interp_jpn_euc 6 }
649 {*************** }
650 { Blob Subtypes }
651 {*************** }
652 { types less than zero are reserved for customer use }
653 isc_blob_untyped = 0;
654 { internal subtypes }
655 isc_blob_text = 1;
656 isc_blob_blr = 2;
657 isc_blob_acl = 3;
658 isc_blob_ranges = 4;
659 isc_blob_summary = 5;
660 isc_blob_format = 6;
661 isc_blob_tra = 7;
662 isc_blob_extfile = 8;
663 isc_blob_debug_info = 9;
664 isc_blob_max_predefined_subtype = 10;
665 { the range 20-30 is reserved for dBASE and Paradox types }
666 {#define isc_blob_formatted_memo 20 }
667 {#define isc_blob_paradox_ole 21 }
668 {#define isc_blob_graphic 22 }
669 {#define isc_blob_dbase_ole 23 }
670 {#define isc_blob_typed_binary 24 }
671 {*************** }
672 { Text Subtypes }
673 {*************** }
674 fb_text_subtype_text = 0;
675 fb_text_subtype_binary = 1;
676 { Deprecated definitions maintained for compatibility only }
677 {#define isc_info_db_SQL_dialect 62 }
678 {#define isc_dpb_SQL_dialect 63 }
679 {#define isc_dpb_set_db_SQL_dialect 65 }
680 {********************************* }
681 { Masks for fb_shutdown_callback }
682 {********************************* }
683 fb_shut_confirmation = 1;
684 fb_shut_preproviders = 2;
685 fb_shut_postproviders = 4;
686 fb_shut_finish = 8;
687 fb_shut_exit = 16;
688 {************************************** }
689 { Shutdown reasons, used by engine }
690 { Users should provide positive values }
691 {************************************** }
692 fb_shutrsn_svc_stopped = -(1);
693 fb_shutrsn_no_connection = -(2);
694 fb_shutrsn_app_stopped = -(3);
695 {#define fb_shutrsn_device_removed -4 }
696 fb_shutrsn_signal = -(5);
697 fb_shutrsn_services = -(6);
698 fb_shutrsn_exit_called = -(7);
699 fb_shutrsn_emergency = -(8);
700 {************************************** }
701 { Cancel types for fb_cancel_operation }
702 {************************************** }
703 fb_cancel_disable = 1;
704 fb_cancel_enable = 2;
705 fb_cancel_raise = 3;
706 fb_cancel_abort = 4;
707 {****************************************** }
708 { Debug information items }
709 {****************************************** }
710 fb_dbg_version = 1;
711 fb_dbg_end = 255;
712 fb_dbg_map_src2blr = 2;
713 fb_dbg_map_varname = 3;
714 fb_dbg_map_argument = 4;
715 fb_dbg_subproc = 5;
716 fb_dbg_subfunc = 6;
717 fb_dbg_map_curname = 7;
718 { sub code for fb_dbg_map_argument }
719 fb_dbg_arg_input = 0;
720 fb_dbg_arg_output = 1;
721 {$endif}
722 { ifndef FIREBIRD_IMPL_CONSTS_PUB_H }
723