1 | /* |
---|
2 | * ARB database interface. |
---|
3 | * |
---|
4 | * This file is generated by aisc_mkpt. |
---|
5 | * Any changes you make here will be overwritten later! |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef AD_PROT_H |
---|
10 | #define AD_PROT_H |
---|
11 | |
---|
12 | #ifndef P_ |
---|
13 | # error P_ is not defined |
---|
14 | #endif |
---|
15 | |
---|
16 | /* define ARB attributes: */ |
---|
17 | #ifndef ATTRIBUTES_H |
---|
18 | # include <attributes.h> |
---|
19 | #endif |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | |
---|
26 | /* adsort.c */ |
---|
27 | void GB_sort P_((void **array, size_t first, size_t behind_last, gb_compare_function compare, void *client_data)); |
---|
28 | int GB_string_comparator P_((const void *v0, const void *v1, void *unused)); |
---|
29 | |
---|
30 | /* adlang1.c */ |
---|
31 | NOT4PERL void GB_set_export_sequence_hook P_((gb_export_sequence_cb escb)); |
---|
32 | void GB_set_ACISRT_trace P_((int enable)); |
---|
33 | int GB_get_ACISRT_trace P_((void)); |
---|
34 | |
---|
35 | /* adstring.c */ |
---|
36 | char *GB_find_all_files P_((const char *dir, const char *mask, GB_BOOL filename_only)); |
---|
37 | char *GB_find_latest_file P_((const char *dir, const char *mask)); |
---|
38 | void GB_raise_critical_error P_((const char *msg)); |
---|
39 | GB_ERROR GB_export_error P_((const char *error)); |
---|
40 | GB_ERROR GB_export_errorf P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
41 | GB_ERROR GB_export_IO_error P_((const char *action, const char *filename)); |
---|
42 | GB_ERROR GB_print_error P_((void)); |
---|
43 | GB_ERROR GB_get_error P_((void)) __ATTR__DEPRECATED; |
---|
44 | GB_BOOL GB_have_error P_((void)); |
---|
45 | GB_ERROR GB_await_error P_((void)); |
---|
46 | void GB_clear_error P_((void)); |
---|
47 | GB_ERROR GB_failedTo_error P_((const char *do_something, const char *special, GB_ERROR error)); |
---|
48 | void GBS_reuse_buffer P_((GB_CSTR global_buffer)); |
---|
49 | GB_CSTR GBS_global_string P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
50 | char *GBS_global_string_copy P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
51 | const char *GBS_global_string_to_buffer P_((char *buffer, size_t bufsize, const char *templat, ...)) __ATTR__FORMAT(3); |
---|
52 | size_t GBS_last_global_string_size P_((void)); |
---|
53 | char *GBS_string_2_key_with_exclusions P_((const char *str, const char *additional)); |
---|
54 | char *GBS_string_2_key P_((const char *str)); |
---|
55 | GB_ERROR GB_check_key P_((const char *key)) __ATTR__USERESULT; |
---|
56 | GB_ERROR GB_check_link_name P_((const char *key)) __ATTR__USERESULT; |
---|
57 | GB_ERROR GB_check_hkey P_((const char *key)) __ATTR__USERESULT; |
---|
58 | char *GBS_remove_escape P_((char *com)); |
---|
59 | char *GBS_escape_string P_((const char *str, const char *chars_to_escape, char escape_char)); |
---|
60 | char *GBS_unescape_string P_((const char *str, const char *escaped_chars, char escape_char)); |
---|
61 | struct GBS_strstruct *GBS_stropen P_((long init_size)); |
---|
62 | char *GBS_strclose P_((struct GBS_strstruct *strstr)); |
---|
63 | void GBS_strforget P_((struct GBS_strstruct *strstr)); |
---|
64 | GB_BUFFER GBS_mempntr P_((struct GBS_strstruct *strstr)); |
---|
65 | long GBS_memoffset P_((struct GBS_strstruct *strstr)); |
---|
66 | void GBS_str_cut_tail P_((struct GBS_strstruct *strstr, int byte_count)); |
---|
67 | void GBS_strncat P_((struct GBS_strstruct *strstr, const char *ptr, size_t len)); |
---|
68 | void GBS_strcat P_((struct GBS_strstruct *strstr, const char *ptr)); |
---|
69 | void GBS_strnprintf P_((struct GBS_strstruct *strstr, long len, const char *templat, ...)) __ATTR__FORMAT(3); |
---|
70 | void GBS_chrcat P_((struct GBS_strstruct *strstr, char ch)); |
---|
71 | void GBS_intcat P_((struct GBS_strstruct *strstr, long val)); |
---|
72 | void GBS_floatcat P_((struct GBS_strstruct *strstr, double val)); |
---|
73 | char *GBS_eval_env P_((GB_CSTR p)); |
---|
74 | char *GBS_find_lib_file P_((const char *filename, const char *libprefix, int warn_when_not_found)); |
---|
75 | char **GBS_read_dir P_((const char *dir, const char *mask)); |
---|
76 | long GBS_gcgchecksum P_((const char *seq)); |
---|
77 | uint32_t GB_checksum P_((const char *seq, long length, int ignore_case, const char *exclude)); |
---|
78 | uint32_t GBS_checksum P_((const char *seq, int ignore_case, const char *exclude)); |
---|
79 | char *GBS_extract_words P_((const char *source, const char *chars, float minlen, GB_BOOL sort_output)); |
---|
80 | size_t GBS_shorten_repeated_data P_((char *data)); |
---|
81 | NOT4PERL void GB_install_error_handler P_((gb_error_handler_type aw_message_handler)); |
---|
82 | void GB_internal_error P_((const char *message)); |
---|
83 | void GB_internal_errorf P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
84 | void GB_warning P_((const char *message)); |
---|
85 | void GB_warningf P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
86 | NOT4PERL void GB_install_warning P_((gb_warning_func_type warn)); |
---|
87 | void GB_information P_((const char *message)); |
---|
88 | void GB_informationf P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
89 | NOT4PERL void GB_install_information P_((gb_information_func_type info)); |
---|
90 | int GB_status P_((double val)); |
---|
91 | NOT4PERL void GB_install_status P_((gb_status_func_type func)); |
---|
92 | int GB_status2 P_((const char *templat, ...)) __ATTR__FORMAT(1); |
---|
93 | NOT4PERL void GB_install_status2 P_((gb_status_func2_type func2)); |
---|
94 | char *GBS_merge_tagged_strings P_((const char *s1, const char *tag1, const char *replace1, const char *s2, const char *tag2, const char *replace2)); |
---|
95 | char *GBS_string_eval_tagged_string P_((GBDATA *gb_main, const char *s, const char *dt, const char *tag, const char *srt, const char *aci, GBDATA *gbd)); |
---|
96 | char *GB_read_as_tagged_string P_((GBDATA *gbd, const char *tagi)); |
---|
97 | void GBS_fwrite_string P_((const char *strngi, FILE *out)); |
---|
98 | char *GBS_fread_string P_((FILE *in)); |
---|
99 | char *GBS_fconvert_string P_((char *buffer)); |
---|
100 | char *GBS_replace_tabs_by_spaces P_((const char *text)); |
---|
101 | int GBS_strscmp P_((const char *s1, const char *s2)); |
---|
102 | const char *GBS_readable_size P_((unsigned long long size)); |
---|
103 | char *GBS_trim P_((const char *str)); |
---|
104 | |
---|
105 | /* admatch.c */ |
---|
106 | GBS_MATCHER *GBS_compile_matcher P_((const char *search_expr, GB_CASE case_flag)); |
---|
107 | void GBS_free_matcher P_((GBS_MATCHER *matcher)); |
---|
108 | GBS_REGEX *GBS_compile_regexpr P_((const char *regexpr, GB_CASE case_flag, GB_ERROR *error)); |
---|
109 | void GBS_free_regexpr P_((GBS_REGEX *toFree)); |
---|
110 | const char *GBS_unwrap_regexpr P_((const char *regexpr_in_slashes, GB_CASE *case_flag, GB_ERROR *error)); |
---|
111 | const char *GBS_regmatch_compiled P_((const char *str, GBS_REGEX *comreg, size_t *matchlen)); |
---|
112 | const char *GBS_regmatch P_((const char *str, const char *regExpr, size_t *matchlen, GB_ERROR *error)); |
---|
113 | char *GBS_regreplace P_((const char *str, const char *regReplExpr, GB_ERROR *error)); |
---|
114 | GB_CSTR GBS_find_string P_((GB_CSTR str, GB_CSTR substr, int match_mode)); |
---|
115 | GB_BOOL GBS_string_matches P_((const char *str, const char *search, GB_CASE case_sens)); |
---|
116 | GB_BOOL GBS_string_matches_regexp P_((const char *str, const GBS_MATCHER *expr)); |
---|
117 | char *GBS_string_eval P_((const char *insource, const char *icommand, GBDATA *gb_container)); |
---|
118 | |
---|
119 | /* arbdb.c */ |
---|
120 | char *GB_rel P_((void *struct_adress, long rel_adress)); |
---|
121 | NOT4PERL GB_ERROR GB_safe_atof P_((const char *str, double *res)); |
---|
122 | double GB_atof P_((const char *str)); |
---|
123 | GB_BUFFER GB_give_buffer P_((size_t size)); |
---|
124 | GB_BUFFER GB_increase_buffer P_((size_t size)); |
---|
125 | int GB_give_buffer_size P_((void)); |
---|
126 | GB_BUFFER GB_give_buffer2 P_((long size)); |
---|
127 | int GB_is_in_buffer P_((GB_CBUFFER ptr)); |
---|
128 | char *GB_check_out_buffer P_((GB_CBUFFER buffer)); |
---|
129 | GB_BUFFER GB_give_other_buffer P_((GB_CBUFFER buffer, long size)); |
---|
130 | void GB_init_gb P_((void)); |
---|
131 | void GB_atclose P_((GBDATA *gbd, void (*fun )(GBDATA *gb_main, void *client_data ), void *client_data)); |
---|
132 | void GB_close P_((GBDATA *gbd)); |
---|
133 | long GB_read_int P_((GBDATA *gbd)); |
---|
134 | int GB_read_byte P_((GBDATA *gbd)); |
---|
135 | void *GB_read_pointer P_((GBDATA *gbd)); |
---|
136 | double GB_read_float P_((GBDATA *gbd)); |
---|
137 | long GB_read_count P_((GBDATA *gbd)); |
---|
138 | long GB_read_memuse P_((GBDATA *gbd)); |
---|
139 | GB_CSTR GB_read_pntr P_((GBDATA *gbd)); |
---|
140 | GB_CSTR GB_read_char_pntr P_((GBDATA *gbd)); |
---|
141 | char *GB_read_string P_((GBDATA *gbd)); |
---|
142 | long GB_read_string_count P_((GBDATA *gbd)); |
---|
143 | GB_CSTR GB_read_link_pntr P_((GBDATA *gbd)); |
---|
144 | char *GB_read_link P_((GBDATA *gbd)); |
---|
145 | long GB_read_link_count P_((GBDATA *gbd)); |
---|
146 | long GB_read_bits_count P_((GBDATA *gbd)); |
---|
147 | GB_CSTR GB_read_bits_pntr P_((GBDATA *gbd, char c_0, char c_1)); |
---|
148 | char *GB_read_bits P_((GBDATA *gbd, char c_0, char c_1)); |
---|
149 | GB_CSTR GB_read_bytes_pntr P_((GBDATA *gbd)); |
---|
150 | long GB_read_bytes_count P_((GBDATA *gbd)); |
---|
151 | char *GB_read_bytes P_((GBDATA *gbd)); |
---|
152 | GB_CUINT4 *GB_read_ints_pntr P_((GBDATA *gbd)); |
---|
153 | long GB_read_ints_count P_((GBDATA *gbd)); |
---|
154 | GB_UINT4 *GB_read_ints P_((GBDATA *gbd)); |
---|
155 | GB_CFLOAT *GB_read_floats_pntr P_((GBDATA *gbd)); |
---|
156 | long GB_read_floats_count P_((GBDATA *gbd)); |
---|
157 | float *GB_read_floats P_((GBDATA *gbd)); |
---|
158 | char *GB_read_as_string P_((GBDATA *gbd)); |
---|
159 | long GB_read_from_ints P_((GBDATA *gbd, long index)); |
---|
160 | double GB_read_from_floats P_((GBDATA *gbd, long index)); |
---|
161 | GB_ERROR GB_write_byte P_((GBDATA *gbd, int i)); |
---|
162 | GB_ERROR GB_write_int P_((GBDATA *gbd, long i)); |
---|
163 | GB_ERROR GB_write_pointer P_((GBDATA *gbd, void *pointer)); |
---|
164 | GB_ERROR GB_write_float P_((GBDATA *gbd, double f)); |
---|
165 | GB_ERROR GB_write_pntr P_((GBDATA *gbd, const char *s, long bytes_size, long stored_size)); |
---|
166 | GB_ERROR GB_write_string P_((GBDATA *gbd, const char *s)); |
---|
167 | GB_ERROR GB_write_link P_((GBDATA *gbd, const char *s)); |
---|
168 | GB_ERROR GB_write_bits P_((GBDATA *gbd, const char *bits, long size, const char *c_0)); |
---|
169 | GB_ERROR GB_write_bytes P_((GBDATA *gbd, const char *s, long size)); |
---|
170 | GB_ERROR GB_write_ints P_((GBDATA *gbd, const GB_UINT4 *i, long size)); |
---|
171 | GB_ERROR GB_write_floats P_((GBDATA *gbd, const float *f, long size)); |
---|
172 | GB_ERROR GB_write_as_string P_((GBDATA *gbd, const char *val)); |
---|
173 | int GB_read_security_write P_((GBDATA *gbd)); |
---|
174 | int GB_read_security_read P_((GBDATA *gbd)); |
---|
175 | int GB_read_security_delete P_((GBDATA *gbd)); |
---|
176 | int GB_get_my_security P_((GBDATA *gbd)); |
---|
177 | GB_ERROR GB_write_security_write P_((GBDATA *gbd, unsigned long level)); |
---|
178 | GB_ERROR GB_write_security_read P_((GBDATA *gbd, unsigned long level)); |
---|
179 | GB_ERROR GB_write_security_delete P_((GBDATA *gbd, unsigned long level)); |
---|
180 | GB_ERROR GB_write_security_levels P_((GBDATA *gbd, unsigned long readlevel, unsigned long writelevel, unsigned long deletelevel)); |
---|
181 | GB_ERROR GB_change_my_security P_((GBDATA *gbd, int level, const char *passwd)); |
---|
182 | void GB_push_my_security P_((GBDATA *gbd)); |
---|
183 | void GB_pop_my_security P_((GBDATA *gbd)); |
---|
184 | GB_TYPES GB_read_type P_((GBDATA *gbd)); |
---|
185 | char *GB_read_key P_((GBDATA *gbd)); |
---|
186 | GB_CSTR GB_read_key_pntr P_((GBDATA *gbd)); |
---|
187 | GBQUARK GB_key_2_quark P_((GBDATA *gbd, const char *s)); |
---|
188 | GBQUARK GB_get_quark P_((GBDATA *gbd)); |
---|
189 | GB_BOOL GB_has_key P_((GBDATA *gbd, const char *key)); |
---|
190 | long GB_read_clock P_((GBDATA *gbd)); |
---|
191 | long GB_read_transaction P_((GBDATA *gbd)); |
---|
192 | GBDATA *GB_get_father P_((GBDATA *gbd)); |
---|
193 | GBDATA *GB_get_grandfather P_((GBDATA *gbd)); |
---|
194 | GBDATA *GB_get_root P_((GBDATA *gbd)); |
---|
195 | GB_BOOL GB_check_father P_((GBDATA *gbd, GBDATA *gb_maybefather)); |
---|
196 | int GB_rename P_((GBDATA *gbc, const char *new_key)); |
---|
197 | GBDATA *GB_create P_((GBDATA *father, const char *key, GB_TYPES type)); |
---|
198 | GBDATA *GB_create_container P_((GBDATA *father, const char *key)); |
---|
199 | GB_ERROR GB_delete P_((GBDATA *source)); |
---|
200 | GB_ERROR GB_copy P_((GBDATA *dest, GBDATA *source)); |
---|
201 | GB_ERROR GB_copy_with_protection P_((GBDATA *dest, GBDATA *source, GB_BOOL copy_all_protections)); |
---|
202 | char *GB_get_subfields P_((GBDATA *gbd)); |
---|
203 | GB_ERROR GB_set_compression P_((GBDATA *gb_main, GB_COMPRESSION_MASK disable_compression)); |
---|
204 | GB_ERROR GB_set_temporary P_((GBDATA *gbd)); |
---|
205 | GB_ERROR GB_clear_temporary P_((GBDATA *gbd)); |
---|
206 | GB_BOOL GB_is_temporary P_((GBDATA *gbd)); |
---|
207 | GB_BOOL GB_in_temporary_branch P_((GBDATA *gbd)); |
---|
208 | GB_ERROR GB_push_local_transaction P_((GBDATA *gbd)); |
---|
209 | GB_ERROR GB_pop_local_transaction P_((GBDATA *gbd)); |
---|
210 | GB_ERROR GB_push_transaction P_((GBDATA *gbd)); |
---|
211 | GB_ERROR GB_pop_transaction P_((GBDATA *gbd)); |
---|
212 | GB_ERROR GB_begin_transaction P_((GBDATA *gbd)); |
---|
213 | GB_ERROR GB_no_transaction P_((GBDATA *gbd)); |
---|
214 | GB_ERROR GB_abort_transaction P_((GBDATA *gbd)); |
---|
215 | GB_ERROR GB_commit_transaction P_((GBDATA *gbd)); |
---|
216 | GB_ERROR GB_end_transaction P_((GBDATA *gbd, GB_ERROR error)); |
---|
217 | void GB_end_transaction_show_error P_((GBDATA *gbd, GB_ERROR error, void (*error_handler )(GB_ERROR ))); |
---|
218 | int GB_get_transaction_level P_((GBDATA *gbd)); |
---|
219 | GB_ERROR GB_update_server P_((GBDATA *gbd)); |
---|
220 | NOT4PERL GB_BOOL GB_inside_callback P_((GBDATA *of_gbd, enum gb_call_back_type cbtype)); |
---|
221 | GBDATA *GB_get_gb_main_during_cb P_((void)); |
---|
222 | NOT4PERL const void *GB_read_old_value P_((void)); |
---|
223 | long GB_read_old_size P_((void)); |
---|
224 | char *GB_get_callback_info P_((GBDATA *gbd)); |
---|
225 | GB_ERROR GB_add_priority_callback P_((GBDATA *gbd, enum gb_call_back_type type, GB_CB func, int *clientdata, int priority)); |
---|
226 | GB_ERROR GB_add_callback P_((GBDATA *gbd, enum gb_call_back_type type, GB_CB func, int *clientdata)); |
---|
227 | void GB_remove_callback P_((GBDATA *gbd, enum gb_call_back_type type, GB_CB func, int *clientdata)); |
---|
228 | void GB_remove_all_callbacks_to P_((GBDATA *gbd, enum gb_call_back_type type, GB_CB func)); |
---|
229 | GB_ERROR GB_ensure_callback P_((GBDATA *gbd, enum gb_call_back_type type, GB_CB func, int *clientdata)); |
---|
230 | GB_ERROR GB_release P_((GBDATA *gbd)); |
---|
231 | int GB_testlocal P_((GBDATA *gbd)); |
---|
232 | int GB_nsons P_((GBDATA *gbd)); |
---|
233 | void GB_disable_quicksave P_((GBDATA *gbd, const char *reason)); |
---|
234 | GB_ERROR GB_resort_data_base P_((GBDATA *gb_main, GBDATA **new_order_list, long listsize)); |
---|
235 | GB_ERROR GB_resort_system_folder_to_top P_((GBDATA *gb_main)); |
---|
236 | GB_ERROR GB_write_usr_public P_((GBDATA *gbd, long flags)); |
---|
237 | long GB_read_usr_public P_((GBDATA *gbd)); |
---|
238 | long GB_read_usr_private P_((GBDATA *gbd)); |
---|
239 | GB_ERROR GB_write_usr_private P_((GBDATA *gbd, long ref)); |
---|
240 | GB_ERROR GB_write_flag P_((GBDATA *gbd, long flag)); |
---|
241 | int GB_read_flag P_((GBDATA *gbd)); |
---|
242 | void GB_touch P_((GBDATA *gbd)); |
---|
243 | GB_ERROR GB_print_debug_information P_((void *dummy, GBDATA *gb_main)); |
---|
244 | int GB_info P_((GBDATA *gbd)); |
---|
245 | long GB_number_of_subentries P_((GBDATA *gbd)); |
---|
246 | |
---|
247 | /* admath.c */ |
---|
248 | double GB_log_fak P_((int n)); |
---|
249 | double GB_frandom P_((void)); |
---|
250 | int GB_random P_((int range)); |
---|
251 | |
---|
252 | /* adoptimize.c */ |
---|
253 | GB_ERROR GB_optimize P_((GBDATA *gb_main)); |
---|
254 | |
---|
255 | /* adsystem.c */ |
---|
256 | struct DictData *GB_get_dictionary P_((GBDATA *gb_main, const char *key)); |
---|
257 | GB_ERROR GB_set_dictionary P_((GBDATA *gb_main, const char *key, const struct DictData *dd)); |
---|
258 | void GB_free_dictionary P_((struct DictData *dd)); |
---|
259 | |
---|
260 | /* adindex.c */ |
---|
261 | GB_ERROR GB_create_index P_((GBDATA *gbd, const char *key, GB_CASE case_sens, long estimated_size)); |
---|
262 | NOT4PERL void GB_dump_indices P_((GBDATA *gbd)); |
---|
263 | GB_ERROR GB_request_undo_type P_((GBDATA *gb_main, GB_UNDO_TYPE type)); |
---|
264 | GB_UNDO_TYPE GB_get_requested_undo_type P_((GBDATA *gb_main)); |
---|
265 | GB_ERROR GB_undo P_((GBDATA *gb_main, GB_UNDO_TYPE type)); |
---|
266 | char *GB_undo_info P_((GBDATA *gb_main, GB_UNDO_TYPE type)); |
---|
267 | GB_ERROR GB_set_undo_mem P_((GBDATA *gbd, long memsize)); |
---|
268 | |
---|
269 | /* adperl.c */ |
---|
270 | GB_UNDO_TYPE GBP_undo_type P_((char *type)); |
---|
271 | int GBP_search_mode P_((char *search_mode)); |
---|
272 | const char *GBP_type_to_string P_((GB_TYPES type)); |
---|
273 | GB_TYPES GBP_gb_types P_((char *type_name)); |
---|
274 | GB_UNDO_TYPE GBP_undo_types P_((const char *type_name)); |
---|
275 | const char *GBP_undo_type_2_string P_((GB_UNDO_TYPE type)); |
---|
276 | |
---|
277 | /* adlink.c */ |
---|
278 | GBDATA *GB_follow_link P_((GBDATA *gb_link)); |
---|
279 | GB_ERROR GB_install_link_follower P_((GBDATA *gb_main, const char *link_type, GB_Link_Follower link_follower)); |
---|
280 | |
---|
281 | /* adsocket.c */ |
---|
282 | void GB_usleep P_((long usec)); |
---|
283 | GB_ULONG GB_time_of_file P_((const char *path)); |
---|
284 | long GB_size_of_file P_((const char *path)); |
---|
285 | long GB_mode_of_file P_((const char *path)); |
---|
286 | long GB_mode_of_link P_((const char *path)); |
---|
287 | GB_BOOL GB_is_regularfile P_((const char *path)); |
---|
288 | GB_BOOL GB_is_executablefile P_((const char *path)); |
---|
289 | GB_BOOL GB_is_privatefile P_((const char *path, GB_BOOL read_private)); |
---|
290 | GB_BOOL GB_is_readablefile P_((const char *filename)); |
---|
291 | GB_BOOL GB_is_directory P_((const char *path)); |
---|
292 | long GB_getuid_of_file P_((char *path)); |
---|
293 | int GB_unlink P_((const char *path)); |
---|
294 | void GB_unlink_or_warn P_((const char *path, GB_ERROR *error)); |
---|
295 | char *GB_follow_unix_link P_((const char *path)); |
---|
296 | GB_ERROR GB_symlink P_((const char *name1, const char *name2)); |
---|
297 | GB_ERROR GB_set_mode_of_file P_((const char *path, long mode)); |
---|
298 | GB_ERROR GB_rename_file P_((const char *oldpath, const char *newpath)); |
---|
299 | char *GB_read_fp P_((FILE *in)); |
---|
300 | char *GB_read_file P_((const char *path)); |
---|
301 | char *GB_map_FILE P_((FILE *in, int writeable)); |
---|
302 | char *GB_map_file P_((const char *path, int writeable)); |
---|
303 | long GB_size_of_FILE P_((FILE *in)); |
---|
304 | GB_ULONG GB_time_of_day P_((void)); |
---|
305 | long GB_last_saved_clock P_((GBDATA *gb_main)); |
---|
306 | GB_ULONG GB_last_saved_time P_((GBDATA *gb_main)); |
---|
307 | GB_ERROR GB_textprint P_((const char *path)) __ATTR__USERESULT; |
---|
308 | GB_CSTR GB_getcwd P_((void)); |
---|
309 | GB_ERROR GB_system P_((const char *system_command)) __ATTR__USERESULT; |
---|
310 | GB_ERROR GB_xterm P_((void)) __ATTR__USERESULT; |
---|
311 | GB_ERROR GB_xcmd P_((const char *cmd, GB_BOOL background, GB_BOOL wait_only_if_error)) __ATTR__USERESULT; |
---|
312 | char *GB_executable P_((GB_CSTR exe_name)); |
---|
313 | char *GB_find_executable P_((GB_CSTR description_of_executable, ...)) __ATTR__SENTINEL; |
---|
314 | GB_CSTR GB_getenvUSER P_((void)); |
---|
315 | GB_CSTR GB_getenvHOME P_((void)); |
---|
316 | GB_CSTR GB_getenvARBHOME P_((void)); |
---|
317 | GB_CSTR GB_getenvARBMACRO P_((void)); |
---|
318 | GB_CSTR GB_getenvARBMACROHOME P_((void)); |
---|
319 | GB_CSTR GB_getenvPATH P_((void)); |
---|
320 | GB_CSTR GB_getenvARB_GS P_((void)); |
---|
321 | GB_CSTR GB_getenvARB_PDFVIEW P_((void)); |
---|
322 | GB_CSTR GB_getenvARB_TEXTEDIT P_((void)); |
---|
323 | GB_CSTR GB_getenvDOCPATH P_((void)); |
---|
324 | GB_CSTR GB_getenvHTMLDOCPATH P_((void)); |
---|
325 | GB_CSTR GB_getenv P_((const char *env)); |
---|
326 | int GB_host_is_local P_((const char *hostname)); |
---|
327 | GB_ULONG GB_get_physical_memory P_((void)); |
---|
328 | GB_CSTR GB_append_suffix P_((const char *name, const char *suffix)); |
---|
329 | GB_CSTR GB_get_full_path P_((const char *anypath)); |
---|
330 | GB_CSTR GB_concat_path P_((GB_CSTR anypath_left, GB_CSTR anypath_right)); |
---|
331 | GB_CSTR GB_concat_full_path P_((const char *anypath_left, const char *anypath_right)); |
---|
332 | GB_CSTR GB_path_in_ARBHOME P_((const char *relative_path_left, const char *anypath_right)); |
---|
333 | GB_CSTR GB_path_in_ARBLIB P_((const char *relative_path_left, const char *anypath_right)); |
---|
334 | FILE *GB_fopen_tempfile P_((const char *filename, const char *fmode, char **res_fullname)); |
---|
335 | char *GB_create_tempfile P_((const char *name)); |
---|
336 | char *GB_unique_filename P_((const char *name_prefix, const char *suffix)); |
---|
337 | void GB_remove_on_exit P_((const char *filename)); |
---|
338 | void GB_split_full_path P_((const char *fullpath, char **res_dir, char **res_fullname, char **res_name_only, char **res_suffix)); |
---|
339 | |
---|
340 | /* adcomm.c */ |
---|
341 | GB_ERROR GBCMS_open P_((const char *path, long timeout, GBDATA *gb_main)); |
---|
342 | void GBCMS_shutdown P_((GBDATA *gbd)); |
---|
343 | GB_BOOL GBCMS_accept_calls P_((GBDATA *gbd, GB_BOOL wait_extra_time)); |
---|
344 | long GB_read_clients P_((GBDATA *gbd)); |
---|
345 | GB_BOOL GB_is_server P_((GBDATA *gbd)); |
---|
346 | GB_BOOL GB_is_client P_((GBDATA *gbd)); |
---|
347 | GBDATA *GBCMC_find P_((GBDATA *gbd, const char *key, GB_TYPES type, const char *str, GB_CASE case_sens, enum gb_search_types gbs)); |
---|
348 | int GBCMC_system P_((GBDATA *gbd, const char *ss)); |
---|
349 | GB_ERROR GB_tell_server_dont_wait P_((GBDATA *gbd)); |
---|
350 | GB_CSTR GB_get_hostname P_((void)); |
---|
351 | GB_ERROR GB_install_pid P_((int mode)); |
---|
352 | const char *GB_date_string P_((void)); |
---|
353 | |
---|
354 | /* adhash.c */ |
---|
355 | long GBS_get_a_prime P_((long above_or_equal_this)); |
---|
356 | GB_HASH *GBS_create_hash P_((long user_size, GB_CASE case_sens)); |
---|
357 | GB_HASH *GBS_create_dynaval_hash P_((long user_size, GB_CASE case_sens, void (*freefun )(long ))); |
---|
358 | void GBS_dynaval_free P_((long val)); |
---|
359 | void GBS_optimize_hash P_((GB_HASH *hs)); |
---|
360 | char *GBS_hashtab_2_string P_((GB_HASH *hash)); |
---|
361 | char *GBS_string_2_hashtab P_((GB_HASH *hash, char *data)); |
---|
362 | long GBS_read_hash P_((const GB_HASH *hs, const char *key)); |
---|
363 | long GBS_write_hash P_((GB_HASH *hs, const char *key, long val)); |
---|
364 | long GBS_write_hash_no_strdup P_((GB_HASH *hs, char *key, long val)); |
---|
365 | long GBS_incr_hash P_((GB_HASH *hs, const char *key)); |
---|
366 | double GBS_hash_mean_access_costs P_((GB_HASH *hs)); |
---|
367 | void GBS_free_hash_entries P_((GB_HASH *hs)); |
---|
368 | void GBS_free_hash P_((GB_HASH *hs)); |
---|
369 | void GBS_clear_hash_statistic_summary P_((const char *id)); |
---|
370 | void GBS_print_hash_statistic_summary P_((const char *id)); |
---|
371 | void GBS_calc_hash_statistic P_((GB_HASH *hs, const char *id, int print)); |
---|
372 | void GBS_hash_do_loop P_((GB_HASH *hs, gb_hash_loop_type func, void *client_data)); |
---|
373 | long GBS_hash_count_elems P_((GB_HASH *hs)); |
---|
374 | long GBS_hash_count_value P_((GB_HASH *hs, long val)); |
---|
375 | const char *GBS_hash_next_element_that P_((GB_HASH *hs, const char *last_key, GB_BOOL (*condition )(const char *key, long val, void *cd ), void *cd)); |
---|
376 | void GBS_hash_do_sorted_loop P_((GB_HASH *hs, gb_hash_loop_type func, gbs_hash_compare_function sorter, void *client_data)); |
---|
377 | int GBS_HCF_sortedByKey P_((const char *k0, long v0, const char *k1, long v1)); |
---|
378 | GB_HASHI *GBS_create_hashi P_((long user_size)); |
---|
379 | long GBS_read_hashi P_((GB_HASHI *hs, long key)); |
---|
380 | long GBS_write_hashi P_((GB_HASHI *hs, long key, long val)); |
---|
381 | void GBS_free_hashi P_((GB_HASHI *hs)); |
---|
382 | char *GB_set_cache_size P_((GBDATA *gbd, long size)); |
---|
383 | |
---|
384 | /* adquery.c */ |
---|
385 | const char *GB_get_GBDATA_path P_((GBDATA *gbd)); |
---|
386 | GBDATA *GB_find_sub_by_quark P_((GBDATA *father, int key_quark, GBDATA *after)); |
---|
387 | NOT4PERL GBDATA *GB_find_subcontent_by_quark P_((GBDATA *father, int key_quark, GB_TYPES type, const char *val, GB_CASE case_sens, GBDATA *after)); |
---|
388 | GBDATA *GB_find P_((GBDATA *gbd, const char *key, long gbs)); |
---|
389 | GBDATA *GB_find_string P_((GBDATA *gbd, const char *key, const char *str, GB_CASE case_sens, long gbs)); |
---|
390 | NOT4PERL GBDATA *GB_find_int P_((GBDATA *gbd, const char *key, long val, long gbs)); |
---|
391 | GBDATA *GB_child P_((GBDATA *father)); |
---|
392 | GBDATA *GB_nextChild P_((GBDATA *child)); |
---|
393 | GBDATA *GB_entry P_((GBDATA *father, const char *key)); |
---|
394 | GBDATA *GB_nextEntry P_((GBDATA *entry)); |
---|
395 | GBDATA *GB_brother P_((GBDATA *entry, const char *key)); |
---|
396 | char *GB_first_non_key_char P_((const char *str)); |
---|
397 | GBDATA *GB_search P_((GBDATA *gbd, const char *fieldpath, long create)); |
---|
398 | GBDATA *GB_searchOrCreate_string P_((GBDATA *gb_container, const char *fieldpath, const char *default_value)); |
---|
399 | GBDATA *GB_searchOrCreate_int P_((GBDATA *gb_container, const char *fieldpath, long default_value)); |
---|
400 | GBDATA *GB_searchOrCreate_float P_((GBDATA *gb_container, const char *fieldpath, double default_value)); |
---|
401 | GBDATA *GB_search_last_son P_((GBDATA *gbd)); |
---|
402 | long GB_number_of_marked_subentries P_((GBDATA *gbd)); |
---|
403 | GBDATA *GB_first_marked P_((GBDATA *gbd, const char *keystring)); |
---|
404 | GBDATA *GB_next_marked P_((GBDATA *gbd, const char *keystring)); |
---|
405 | char *GB_command_interpreter P_((GBDATA *gb_main, const char *str, const char *commands, GBDATA *gbd, const char *default_tree_name)); |
---|
406 | |
---|
407 | /* ad_save_load.c */ |
---|
408 | GB_ERROR GB_save P_((GBDATA *gb, const char *path, const char *savetype)); |
---|
409 | GB_ERROR GB_create_directory P_((const char *path)); |
---|
410 | GB_ERROR GB_save_in_home P_((GBDATA *gb, const char *path, const char *savetype)); |
---|
411 | GB_ERROR GB_save_as P_((GBDATA *gb, const char *path, const char *savetype)); |
---|
412 | GB_ERROR GB_delete_database P_((GB_CSTR filename)); |
---|
413 | GB_ERROR GB_save_quick_as P_((GBDATA *gb_main, char *path)); |
---|
414 | GB_ERROR GB_save_quick P_((GBDATA *gb, char *refpath)); |
---|
415 | void GB_disable_path P_((GBDATA *gbd, const char *path)); |
---|
416 | |
---|
417 | /* adcompr.c */ |
---|
418 | GB_BOOL GB_is_directory_compressed P_((GBDATA *gbd)); |
---|
419 | |
---|
420 | /* admalloc.c */ |
---|
421 | NOT4PERL void *GB_calloc P_((unsigned int nelem, unsigned int elsize)); |
---|
422 | char *GB_strdup P_((const char *p)); |
---|
423 | char *GB_strduplen P_((const char *p, unsigned len)); |
---|
424 | char *GB_strpartdup P_((const char *start, const char *end)); |
---|
425 | char *GB_strndup P_((const char *start, int len)); |
---|
426 | NOT4PERL void *GB_recalloc P_((void *ptr, unsigned int oelem, unsigned int nelem, unsigned int elsize)); |
---|
427 | void GB_memerr P_((void)); |
---|
428 | |
---|
429 | /* ad_load.c */ |
---|
430 | void GB_set_next_main_idx P_((long idx)); |
---|
431 | GBDATA *GB_login P_((const char *cpath, const char *opent, const char *user)); |
---|
432 | GBDATA *GB_open P_((const char *path, const char *opent)); |
---|
433 | void GB_set_verbose P_((void)); |
---|
434 | |
---|
435 | /* adTest.c */ |
---|
436 | const char *GB_get_type_name P_((GBDATA *gbd)); |
---|
437 | const char *GB_get_db_path P_((GBDATA *gbd)); |
---|
438 | void GB_dump_db_path P_((GBDATA *gbd)); |
---|
439 | void GB_dump P_((GBDATA *gbd)); |
---|
440 | void GB_dump_no_limit P_((GBDATA *gbd)); |
---|
441 | GB_ERROR GB_fix_database P_((GBDATA *gb_main)); |
---|
442 | |
---|
443 | /* adGene.c */ |
---|
444 | GB_BOOL GEN_is_genome_db P_((GBDATA *gb_main, int default_value)); |
---|
445 | GBDATA *GEN_findOrCreate_gene_data P_((GBDATA *gb_species)); |
---|
446 | GBDATA *GEN_find_gene_data P_((GBDATA *gb_species)); |
---|
447 | GBDATA *GEN_expect_gene_data P_((GBDATA *gb_species)); |
---|
448 | GBDATA *GEN_find_gene_rel_gene_data P_((GBDATA *gb_gene_data, const char *name)); |
---|
449 | GBDATA *GEN_find_gene P_((GBDATA *gb_species, const char *name)); |
---|
450 | GBDATA *GEN_create_nonexisting_gene_rel_gene_data P_((GBDATA *gb_gene_data, const char *name)); |
---|
451 | GBDATA *GEN_create_nonexisting_gene P_((GBDATA *gb_species, const char *name)); |
---|
452 | GBDATA *GEN_find_or_create_gene_rel_gene_data P_((GBDATA *gb_gene_data, const char *name)); |
---|
453 | GBDATA *GEN_find_or_create_gene P_((GBDATA *gb_species, const char *name)); |
---|
454 | GBDATA *GEN_first_gene P_((GBDATA *gb_species)); |
---|
455 | GBDATA *GEN_first_gene_rel_gene_data P_((GBDATA *gb_gene_data)); |
---|
456 | GBDATA *GEN_next_gene P_((GBDATA *gb_gene)); |
---|
457 | GBDATA *GEN_first_marked_gene P_((GBDATA *gb_species)); |
---|
458 | GBDATA *GEN_next_marked_gene P_((GBDATA *gb_gene)); |
---|
459 | struct GEN_position *GEN_new_position P_((int parts, GB_BOOL joinable)); |
---|
460 | void GEN_use_uncertainties P_((struct GEN_position *pos)); |
---|
461 | void GEN_free_position P_((struct GEN_position *pos)); |
---|
462 | struct GEN_position *GEN_read_position P_((GBDATA *gb_gene)); |
---|
463 | GB_ERROR GEN_write_position P_((GBDATA *gb_gene, const struct GEN_position *pos)); |
---|
464 | void GEN_sortAndMergeLocationParts P_((struct GEN_position *location)); |
---|
465 | const char *GEN_origin_organism P_((GBDATA *gb_pseudo)); |
---|
466 | const char *GEN_origin_gene P_((GBDATA *gb_pseudo)); |
---|
467 | GB_BOOL GEN_is_pseudo_gene_species P_((GBDATA *gb_species)); |
---|
468 | GB_ERROR GEN_organism_not_found P_((GBDATA *gb_pseudo)); |
---|
469 | GBDATA *GEN_read_pseudo_species_from_hash P_((GB_HASH *pseudo_hash, const char *organism_name, const char *gene_name)); |
---|
470 | void GEN_add_pseudo_species_to_hash P_((GBDATA *gb_pseudo, GB_HASH *pseudo_hash)); |
---|
471 | GB_HASH *GEN_create_pseudo_species_hash P_((GBDATA *gb_main, int additionalSize)); |
---|
472 | GBDATA *GEN_find_pseudo_species P_((GBDATA *gb_main, const char *organism_name, const char *gene_name, GB_HASH *pseudo_hash)); |
---|
473 | GBDATA *GEN_find_origin_organism P_((GBDATA *gb_pseudo, GB_HASH *organism_hash)); |
---|
474 | GBDATA *GEN_find_origin_gene P_((GBDATA *gb_pseudo, GB_HASH *organism_hash)); |
---|
475 | GBDATA *GEN_first_pseudo_species P_((GBDATA *gb_main)); |
---|
476 | GBDATA *GEN_first_pseudo_species_rel_species_data P_((GBDATA *gb_species_data)); |
---|
477 | GBDATA *GEN_next_pseudo_species P_((GBDATA *gb_species)); |
---|
478 | GBDATA *GEN_first_marked_pseudo_species P_((GBDATA *gb_main)); |
---|
479 | GBDATA *GEN_next_marked_pseudo_species P_((GBDATA *gb_species)); |
---|
480 | GB_BOOL GEN_is_organism P_((GBDATA *gb_species)); |
---|
481 | GBDATA *GEN_find_organism P_((GBDATA *gb_main, const char *name)); |
---|
482 | GBDATA *GEN_first_organism P_((GBDATA *gb_main)); |
---|
483 | GBDATA *GEN_next_organism P_((GBDATA *gb_organism)); |
---|
484 | long GEN_get_organism_count P_((GBDATA *gb_main)); |
---|
485 | GBDATA *GEN_first_marked_organism P_((GBDATA *gb_main)); |
---|
486 | GBDATA *GEN_next_marked_organism P_((GBDATA *gb_organism)); |
---|
487 | char *GEN_global_gene_identifier P_((GBDATA *gb_gene, GBDATA *gb_organism)); |
---|
488 | |
---|
489 | /* adtcp.c */ |
---|
490 | const char *GBS_scan_arb_tcp_param P_((const char *ipPort, const char *wantedParam)); |
---|
491 | const char *GBS_read_arb_tcp P_((const char *env)); |
---|
492 | const char *const *GBS_get_arb_tcp_entries P_((const char *matching)); |
---|
493 | const char *GBS_ptserver_logname P_((void)); |
---|
494 | void GBS_add_ptserver_logentry P_((const char *entry)); |
---|
495 | char *GBS_ptserver_id_to_choice P_((int i, int showBuild)); |
---|
496 | |
---|
497 | /* adhashtools.c */ |
---|
498 | long GBT_get_species_hash_size P_((GBDATA *gb_main)); |
---|
499 | void GBT_add_item_to_hash P_((GBDATA *gb_item, GB_HASH *item_hash)); |
---|
500 | GB_HASH *GBT_create_species_hash P_((GBDATA *gb_main)); |
---|
501 | GB_HASH *GBT_create_species_hash_sized P_((GBDATA *gb_main, long species_count)); |
---|
502 | GB_HASH *GBT_create_marked_species_hash P_((GBDATA *gb_main)); |
---|
503 | GB_HASH *GBT_create_SAI_hash P_((GBDATA *gb_main)); |
---|
504 | GB_HASH *GBT_create_organism_hash P_((GBDATA *gb_main)); |
---|
505 | |
---|
506 | /* adExperiment.c */ |
---|
507 | GBDATA *EXP_get_experiment_data P_((GBDATA *gb_species)); |
---|
508 | GBDATA *EXP_find_experiment_rel_exp_data P_((GBDATA *gb_experiment_data, const char *name)); |
---|
509 | GBDATA *EXP_find_experiment P_((GBDATA *gb_species, const char *name)); |
---|
510 | GBDATA *EXP_expect_experiment P_((GBDATA *gb_species, const char *name)); |
---|
511 | GBDATA *EXP_first_experiment_rel_exp_data P_((GBDATA *gb_experiment_data)); |
---|
512 | GBDATA *EXP_next_experiment P_((GBDATA *gb_experiment)); |
---|
513 | GBDATA *EXP_find_or_create_experiment_rel_exp_data P_((GBDATA *gb_experiment_data, const char *name)); |
---|
514 | |
---|
515 | #ifdef __cplusplus |
---|
516 | } |
---|
517 | #endif |
---|
518 | |
---|
519 | #else |
---|
520 | #error ad_prot.h included twice |
---|
521 | #endif /* AD_PROT_H */ |
---|