1 | /* ARB database interface. |
---|
2 | * |
---|
3 | * This file is generated by aisc_mkpt. |
---|
4 | * Any changes you make here will be overwritten later! |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef AD_PROT_H |
---|
8 | #define AD_PROT_H |
---|
9 | |
---|
10 | /* define ARB attributes: */ |
---|
11 | #ifndef ATTRIBUTES_H |
---|
12 | # include <attributes.h> |
---|
13 | #endif |
---|
14 | |
---|
15 | |
---|
16 | /* adExperiment.cxx */ |
---|
17 | GBDATA *EXP_get_experiment_data(GBDATA *gb_species); |
---|
18 | GBDATA *EXP_find_experiment_rel_exp_data(GBDATA *gb_experiment_data, const char *name); |
---|
19 | GBDATA *EXP_find_experiment(GBDATA *gb_species, const char *name); |
---|
20 | GBDATA *EXP_first_experiment_rel_exp_data(GBDATA *gb_experiment_data); |
---|
21 | GBDATA *EXP_next_experiment(GBDATA *gb_experiment); |
---|
22 | GBDATA *EXP_find_or_create_experiment_rel_exp_data(GBDATA *gb_experiment_data, const char *name); |
---|
23 | |
---|
24 | /* adGene.cxx */ |
---|
25 | bool GEN_is_genome_db(GBDATA *gb_main, int default_value); |
---|
26 | GBDATA *GEN_findOrCreate_gene_data(GBDATA *gb_species); |
---|
27 | GBDATA *GEN_find_gene_data(GBDATA *gb_species); |
---|
28 | GBDATA *GEN_expect_gene_data(GBDATA *gb_species); |
---|
29 | GBDATA *GEN_find_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name); |
---|
30 | GBDATA *GEN_find_gene(GBDATA *gb_species, const char *name); |
---|
31 | GBDATA *GEN_expect_gene(GBDATA *gb_species, const char *name); |
---|
32 | GBDATA *GEN_create_nonexisting_gene(GBDATA *gb_species, const char *name); |
---|
33 | GBDATA *GEN_find_or_create_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name); |
---|
34 | GBDATA *GEN_first_gene(GBDATA *gb_species); |
---|
35 | GBDATA *GEN_first_gene_rel_gene_data(GBDATA *gb_gene_data); |
---|
36 | GBDATA *GEN_next_gene(GBDATA *gb_gene); |
---|
37 | GBDATA *GEN_first_marked_gene(GBDATA *gb_species); |
---|
38 | GBDATA *GEN_next_marked_gene(GBDATA *gb_gene); |
---|
39 | GEN_position *GEN_new_position(int parts, bool joinable); |
---|
40 | void GEN_use_uncertainties(GEN_position *pos); |
---|
41 | void GEN_free_position(GEN_position *pos); |
---|
42 | GEN_position *GEN_read_position(GBDATA *gb_gene); |
---|
43 | GB_ERROR GEN_write_position(GBDATA *gb_gene, const GEN_position *pos, long seqLength); |
---|
44 | void GEN_sortAndMergeLocationParts(GEN_position *location); |
---|
45 | const char *GEN_origin_organism(GBDATA *gb_pseudo); |
---|
46 | const char *GEN_origin_gene(GBDATA *gb_pseudo); |
---|
47 | bool GEN_is_pseudo_gene_species(GBDATA *gb_species); |
---|
48 | GB_ERROR GEN_organism_not_found(GBDATA *gb_pseudo); |
---|
49 | void GEN_add_pseudo_species_to_hash(GBDATA *gb_pseudo, GB_HASH *pseudo_hash); |
---|
50 | GB_HASH *GEN_create_pseudo_species_hash(GBDATA *gb_main, long additionalSize); |
---|
51 | GBDATA *GEN_find_pseudo_species(GBDATA *gb_main, const char *organism_name, const char *gene_name, const GB_HASH *pseudo_hash); |
---|
52 | GBDATA *GEN_find_origin_organism(GBDATA *gb_pseudo, const GB_HASH *organism_hash); |
---|
53 | GBDATA *GEN_find_origin_gene(GBDATA *gb_pseudo, const GB_HASH *organism_hash); |
---|
54 | GBDATA *GEN_first_pseudo_species(GBDATA *gb_main); |
---|
55 | GBDATA *GEN_next_pseudo_species(GBDATA *gb_species); |
---|
56 | GBDATA *GEN_first_marked_pseudo_species(GBDATA *gb_main); |
---|
57 | bool GEN_is_organism(GBDATA *gb_species); |
---|
58 | GBDATA *GEN_find_organism(GBDATA *gb_main, const char *name); |
---|
59 | GBDATA *GEN_first_organism(GBDATA *gb_main); |
---|
60 | GBDATA *GEN_next_organism(GBDATA *gb_organism); |
---|
61 | long GEN_get_organism_count(GBDATA *gb_main); |
---|
62 | GBDATA *GEN_first_marked_organism(GBDATA *gb_main); |
---|
63 | GBDATA *GEN_next_marked_organism(GBDATA *gb_organism); |
---|
64 | char *GEN_global_gene_identifier(GBDATA *gb_gene, GBDATA *gb_organism); |
---|
65 | |
---|
66 | /* adTest.cxx */ |
---|
67 | const char *GB_get_db_path(GBDATA *gbd); |
---|
68 | void GB_dump_db_path(GBDATA *gbd); |
---|
69 | NOT4PERL void GB_dump(GBDATA *gbd); |
---|
70 | NOT4PERL void GB_dump_no_limit(GBDATA *gbd); |
---|
71 | GB_ERROR GB_fix_database(GBDATA *gb_main); |
---|
72 | |
---|
73 | /* ad_cb.cxx */ |
---|
74 | GBDATA *GB_get_gb_main_during_cb(void); |
---|
75 | NOT4PERL const void *GB_read_old_value(void); |
---|
76 | long GB_read_old_size(void); |
---|
77 | |
---|
78 | /* ad_load.cxx */ |
---|
79 | void GB_set_verbose(void); |
---|
80 | void GB_set_next_main_idx(long idx); |
---|
81 | GBDATA *GB_open(const char *path, const char *opent); |
---|
82 | GB_ERROR GBT_check_arb_file(const char *name) __ATTR__USERESULT; |
---|
83 | |
---|
84 | /* ad_save_load.cxx */ |
---|
85 | GB_CSTR GB_mapfile(GBDATA *gb_main); |
---|
86 | GB_ERROR GB_save(GBDATA *gb, const char *path, const char *savetype); |
---|
87 | GB_ERROR GB_create_parent_directory(const char *path); |
---|
88 | GB_ERROR GB_create_directory(const char *path); |
---|
89 | GB_ERROR GB_save_in_arbprop(GBDATA *gb, const char *path, const char *savetype); |
---|
90 | const char *GB_get_supported_compression_flags(bool verboose); |
---|
91 | |
---|
92 | class ArbDBWriter; |
---|
93 | |
---|
94 | GB_ERROR GB_start_streamed_save_as(GBDATA *gbd, const char *path, const char *savetype, ArbDBWriter*& writer); |
---|
95 | GB_ERROR GB_stream_save_part(ArbDBWriter *writer, GBDATA *from, GBDATA *till); |
---|
96 | GB_ERROR GB_finish_stream_save(ArbDBWriter*& writer); |
---|
97 | GB_ERROR GB_save_as(GBDATA *gbd, const char *path, const char *savetype); |
---|
98 | GB_ERROR GB_delete_database(GB_CSTR filename); |
---|
99 | GB_ERROR GB_save_quick_as(GBDATA *gbd, const char *path); |
---|
100 | GB_ERROR GB_save_quick(GBDATA *gbd, const char *refpath); |
---|
101 | void GB_disable_path(GBDATA *gbd, const char *path); |
---|
102 | long GB_last_saved_clock(GBDATA *gb_main); |
---|
103 | GB_ULONG GB_last_saved_time(GBDATA *gb_main); |
---|
104 | |
---|
105 | /* adcache.cxx */ |
---|
106 | void GB_flush_cache(GBDATA *gbd); |
---|
107 | char *GB_set_cache_size(GBDATA *gbd, size_t size); |
---|
108 | |
---|
109 | /* adcomm.cxx */ |
---|
110 | GB_ERROR GBCMS_open(const char *path, long timeout, GBDATA *gb_main); |
---|
111 | void GBCMS_shutdown(GBDATA *gbd); |
---|
112 | bool GBCMS_accept_calls(GBDATA *gbd, bool wait_extra_time); |
---|
113 | void GB_set_remote_action(GBDATA *gbd, bool in_action); |
---|
114 | bool GB_inside_remote_action(GBDATA *gbd); |
---|
115 | long GB_read_clients(GBDATA *gbd); |
---|
116 | bool GB_is_server(GBDATA *gbd); |
---|
117 | GBDATA *GBCMC_find(GBDATA *gbd, const char *key, GB_TYPES type, const char *str, GB_CASE case_sens, GB_SEARCH_TYPE gbs); |
---|
118 | GB_ERROR GB_tell_server_dont_wait(GBDATA *gbd); |
---|
119 | GB_ERROR GB_install_pid(int mode); |
---|
120 | |
---|
121 | /* adcompr.cxx */ |
---|
122 | bool GB_is_dictionary_compressed(GBDATA *gbd); |
---|
123 | |
---|
124 | /* adfile.cxx */ |
---|
125 | GB_CSTR GB_getcwd(void); |
---|
126 | char *GB_find_all_files(const char *dir, const char *mask, bool filename_only); |
---|
127 | char *GB_find_latest_file(const char *dir, const char *mask); |
---|
128 | char *GB_lib_file(bool warn_when_not_found, const char *libprefix, const char *filename); |
---|
129 | char *GB_property_file(bool warn_when_not_found, const char *filename); |
---|
130 | void GBS_read_dir(StrArray& names, const char *dir, const char *mask); |
---|
131 | const char *GB_get_arb_revision_tag(void); |
---|
132 | |
---|
133 | /* adhash.cxx */ |
---|
134 | GB_HASH *GBS_create_hash(long estimated_elements, GB_CASE case_sens); |
---|
135 | GB_HASH *GBS_create_dynaval_hash(long estimated_elements, GB_CASE case_sens, void (*freefun)(long)); |
---|
136 | void GBS_dynaval_free(long val); |
---|
137 | void GBS_optimize_hash(const GB_HASH *hs); |
---|
138 | char *GBS_hashtab_2_string(const GB_HASH *hash); |
---|
139 | long GBS_read_hash(const GB_HASH *hs, const char *key); |
---|
140 | long GBS_write_hash(GB_HASH *hs, const char *key, long val); |
---|
141 | long GBS_write_hash_no_strdup(GB_HASH *hs, char *key, long val); |
---|
142 | long GBS_incr_hash(GB_HASH *hs, const char *key); |
---|
143 | void GBS_free_hash(GB_HASH *hs); |
---|
144 | void GBS_hash_do_loop(GB_HASH *hs, gb_hash_loop_type func, void *client_data); |
---|
145 | void GBS_hash_do_const_loop(const GB_HASH *hs, gb_hash_const_loop_type func, void *client_data); |
---|
146 | size_t GBS_hash_elements(const GB_HASH *hs); |
---|
147 | const char *GBS_hash_next_element_that(const GB_HASH *hs, const char *last_key, bool (*condition)(const char *key, long val, void *cd), void *cd); |
---|
148 | void GBS_hash_do_sorted_loop(GB_HASH *hs, gb_hash_loop_type func, gbs_hash_compare_function sorter, void *client_data); |
---|
149 | void GBS_hash_do_const_sorted_loop(const GB_HASH *hs, gb_hash_const_loop_type func, gbs_hash_compare_function sorter, void *client_data); |
---|
150 | int GBS_HCF_sortedByKey(const char *k0, long dummy_1x, const char *k1, long dummy_2x); |
---|
151 | GB_NUMHASH *GBS_create_numhash(size_t estimated_elements); |
---|
152 | long GBS_read_numhash(GB_NUMHASH *hs, long key); |
---|
153 | long GBS_write_numhash(GB_NUMHASH *hs, long key, long val); |
---|
154 | void GBS_free_numhash(GB_NUMHASH *hs); |
---|
155 | |
---|
156 | /* adhashtools.cxx */ |
---|
157 | GB_HASH *GBT_create_species_hash_sized(GBDATA *gb_main, long species_count); |
---|
158 | GB_HASH *GBT_create_species_hash(GBDATA *gb_main); |
---|
159 | GB_HASH *GBT_create_marked_species_hash(GBDATA *gb_main); |
---|
160 | GB_HASH *GBT_create_SAI_hash(GBDATA *gb_main); |
---|
161 | GB_HASH *GBT_create_organism_hash(GBDATA *gb_main); |
---|
162 | |
---|
163 | /* adindex.cxx */ |
---|
164 | GB_ERROR GB_create_index(GBDATA *gbd, const char *key, GB_CASE case_sens, long estimated_size) __ATTR__USERESULT; |
---|
165 | NOT4PERL void GB_dump_indices(GBDATA *gbd); |
---|
166 | GB_ERROR GB_request_undo_type(GBDATA *gb_main, GB_UNDO_TYPE type) __ATTR__USERESULT_TODO; |
---|
167 | GB_UNDO_TYPE GB_get_requested_undo_type(GBDATA *gb_main); |
---|
168 | GB_ERROR GB_undo(GBDATA *gb_main, GB_UNDO_TYPE type) __ATTR__USERESULT; |
---|
169 | char *GB_undo_info(GBDATA *gb_main, GB_UNDO_TYPE type); |
---|
170 | GB_ERROR GB_set_undo_mem(GBDATA *gbd, long memsize); |
---|
171 | |
---|
172 | /* adlang1.cxx */ |
---|
173 | NOT4PERL void GB_set_export_sequence_hook(gb_export_sequence_cb escb); |
---|
174 | |
---|
175 | /* admap.cxx */ |
---|
176 | bool GB_supports_mapfile(void); |
---|
177 | |
---|
178 | /* admatch.cxx */ |
---|
179 | GBS_string_matcher *GBS_compile_matcher(const char *search_expr, GB_CASE case_flag); |
---|
180 | void GBS_free_matcher(GBS_string_matcher *matcher); |
---|
181 | GB_CSTR GBS_find_string(GB_CSTR cont, GB_CSTR substr, int match_mode); |
---|
182 | bool GBS_string_matches(const char *str, const char *expr, GB_CASE case_sens); |
---|
183 | bool GBS_string_matches_regexp(const char *str, const GBS_string_matcher *expr); |
---|
184 | |
---|
185 | class GBL_call_env; |
---|
186 | |
---|
187 | char *GBS_string_eval_in_env(const char *insource, const char *icommand, const GBL_call_env& callEnv); |
---|
188 | char *GBS_string_eval(const char *insource, const char *icommand); |
---|
189 | |
---|
190 | /* admath.cxx */ |
---|
191 | double GB_log_fak(int n); |
---|
192 | void GB_random_seed(unsigned seed); |
---|
193 | int GB_random(int range); |
---|
194 | |
---|
195 | /* adoptimize.cxx */ |
---|
196 | GB_ERROR GB_optimize(GBDATA *gb_main); |
---|
197 | |
---|
198 | /* adperl.cxx */ |
---|
199 | GB_ERROR GBC_await_error(void); |
---|
200 | |
---|
201 | /* adquery.cxx */ |
---|
202 | GBDATA *GB_find_sub_by_quark(GBDATA *father, GBQUARK key_quark, GBDATA *after, size_t skip_over); |
---|
203 | GBDATA *GB_find(GBDATA *gbd, const char *key, GB_SEARCH_TYPE gbs); |
---|
204 | GBDATA *GB_find_string(GBDATA *gbd, const char *key, const char *str, GB_CASE case_sens, GB_SEARCH_TYPE gbs); |
---|
205 | NOT4PERL GBDATA *GB_find_int(GBDATA *gbd, const char *key, long val, GB_SEARCH_TYPE gbs); |
---|
206 | GBDATA *GB_child(GBDATA *father); |
---|
207 | GBDATA *GB_nextChild(GBDATA *child); |
---|
208 | GBDATA *GB_entry(GBDATA *father, const char *key); |
---|
209 | GBDATA *GB_nextEntry(GBDATA *entry); |
---|
210 | GBDATA *GB_followingEntry(GBDATA *entry, size_t skip_over); |
---|
211 | size_t GB_countEntries(GBDATA *father, const char *key); |
---|
212 | GBDATA *GB_brother(GBDATA *entry, const char *key); |
---|
213 | const char *GB_first_non_key_char(const char *str); |
---|
214 | GBDATA *GB_search(GBDATA *gbd, const char *fieldpath, GB_TYPES create); |
---|
215 | GBDATA *GB_searchOrCreate_string(GBDATA *gb_container, const char *fieldpath, const char *default_value); |
---|
216 | GBDATA *GB_searchOrCreate_int(GBDATA *gb_container, const char *fieldpath, long default_value); |
---|
217 | GBDATA *GB_searchOrCreate_float(GBDATA *gb_container, const char *fieldpath, float default_value); |
---|
218 | long GB_number_of_marked_subentries(GBDATA *gbd); |
---|
219 | GBDATA *GB_first_marked(GBDATA *gbd, const char *keystring); |
---|
220 | GBDATA *GB_following_marked(GBDATA *gbd, const char *keystring, size_t skip_over); |
---|
221 | GBDATA *GB_next_marked(GBDATA *gbd, const char *keystring); |
---|
222 | |
---|
223 | /* adsocket.cxx */ |
---|
224 | char *GB_read_fp(FILE *in); |
---|
225 | char *GB_read_file(const char *path); |
---|
226 | char *GB_map_FILE(FILE *in, int writeable); |
---|
227 | char *GB_map_file(const char *path, int writeable); |
---|
228 | GB_ULONG GB_time_of_day(void); |
---|
229 | GB_ERROR GB_textprint(const char *path) __ATTR__USERESULT; |
---|
230 | GB_CSTR GB_getenvARB_XTERM(void); |
---|
231 | GB_CSTR GB_getenvUSER(void); |
---|
232 | GB_CSTR GB_getenvARBHOME(void); |
---|
233 | GB_CSTR GB_getenvARBMACRO(void); |
---|
234 | GB_CSTR GB_getenvARBMACROHOME(void); |
---|
235 | GB_CSTR GB_getenvARB_GS(void); |
---|
236 | GB_CSTR GB_getenvARB_PDFVIEW(void); |
---|
237 | GB_CSTR GB_getenvDOCPATH(void); |
---|
238 | GB_CSTR GB_getenvHTMLDOCPATH(void); |
---|
239 | NOT4PERL gb_getenv_hook GB_install_getenv_hook(gb_getenv_hook hook); |
---|
240 | GB_CSTR GB_getenv(const char *env); |
---|
241 | bool GB_host_is_local(const char *hostname); |
---|
242 | GB_ULONG GB_get_usable_memory(void); |
---|
243 | NOT4PERL GB_ERROR GB_xcmd(const char *cmd, XCMD_TYPE exectype) __ATTR__USERESULT_TODO; |
---|
244 | GB_CSTR GB_append_suffix(const char *name, const char *suffix); |
---|
245 | GB_CSTR GB_canonical_path(const char *anypath); |
---|
246 | GB_CSTR GB_concat_path(GB_CSTR anypath_left, GB_CSTR anypath_right); |
---|
247 | GB_CSTR GB_concat_full_path(const char *anypath_left, const char *anypath_right); |
---|
248 | GB_CSTR GB_unfold_in_directory(const char *relative_directory, const char *path); |
---|
249 | GB_CSTR GB_unfold_path(const char *pwd_envar, const char *path); |
---|
250 | GB_CSTR GB_path_in_ARBHOME(const char *relative_path); |
---|
251 | GB_CSTR GB_path_in_ARBLIB(const char *relative_path); |
---|
252 | GB_CSTR GB_concat_path_in_ARBLIB(const char *relative_path_left, const char *anypath_right); |
---|
253 | GB_CSTR GB_path_in_HOME(const char *relative_path); |
---|
254 | GB_CSTR GB_path_in_arbprop(const char *relative_path); |
---|
255 | FILE *GB_fopen_tempfile(const char *filename, const char *fmode, char **res_fullname); |
---|
256 | char *GB_create_tempfile(const char *name); |
---|
257 | char *GB_unique_filename(const char *name_prefix, const char *suffix); |
---|
258 | void GB_remove_on_exit(const char *filename); |
---|
259 | void GB_split_full_path(const char *fullpath, char **res_dir, char **res_fullname, char **res_name_only, char **res_suffix); |
---|
260 | |
---|
261 | /* adstring.cxx */ |
---|
262 | char *GBS_string_2_key(const char *str); |
---|
263 | char *GB_memdup(const char *source, size_t len); |
---|
264 | GB_ERROR GB_check_key(const char *key) __ATTR__USERESULT; |
---|
265 | GB_ERROR GB_check_hkey(const char *key) __ATTR__USERESULT; |
---|
266 | char *GBS_escape_string(const char *str, const char *chars_to_escape, char escape_char); |
---|
267 | char *GBS_unescape_string(const char *str, const char *escaped_chars, char escape_char); |
---|
268 | char *GBS_eval_env(GB_CSTR p); |
---|
269 | long GBS_gcgchecksum(const char *seq); |
---|
270 | uint32_t GB_checksum(const char *seq, long length, int ignore_case, const char *exclude); |
---|
271 | uint32_t GBS_checksum(const char *seq, int ignore_case, const char *exclude); |
---|
272 | size_t GBS_shorten_repeated_data(char *data); |
---|
273 | char *GBS_merge_tagged_strings(const char *s1, const char *tag1, const char *replace1, const char *s2, const char *tag2, const char *replace2); |
---|
274 | char *GBS_modify_tagged_string_with_ACI(const char *s, const char *dt, const char *tag, const char *aci, GBL_call_env& env); |
---|
275 | char *GB_read_as_tagged_string(GBDATA *gbd, const char *tagi); |
---|
276 | void GBS_fwrite_string(const char *strngi, FILE *out); |
---|
277 | char *GBS_fconvert_string(char *buffer); |
---|
278 | char *GBS_replace_tabs_by_spaces(const char *text); |
---|
279 | char *GBS_trim(const char *str); |
---|
280 | char *GBS_log_action_to(const char *comment, const char *action, bool stamp); |
---|
281 | const char *GBS_funptr2readable(void *funptr, bool stripARBHOME); |
---|
282 | |
---|
283 | /* adsystem.cxx */ |
---|
284 | DictData *GB_get_dictionary(GBDATA *gb_main, const char *key); |
---|
285 | GB_ERROR GB_set_dictionary(GBDATA *gb_main, const char *key, const DictData *dd); |
---|
286 | |
---|
287 | /* adtcp.cxx */ |
---|
288 | char *GB_arbtcpdat_path(void); |
---|
289 | const char *GBS_scan_arb_tcp_param(const char *ipPort, const char *wantedParam); |
---|
290 | |
---|
291 | #ifdef UNIT_TESTS // UT_DIFF |
---|
292 | #define TEST_SERVER_ID (-666) |
---|
293 | #define TEST_GENESERVER_ID (-667) |
---|
294 | #endif |
---|
295 | |
---|
296 | const char *GBS_nameserver_tag(const char *add_field); |
---|
297 | const char *GBS_ptserver_tag(int id); |
---|
298 | const char *GBS_read_arb_tcp(const char *env); |
---|
299 | const char *const *GBS_get_arb_tcp_entries(const char *matching); |
---|
300 | const char *GBS_ptserver_logname(void); |
---|
301 | void GBS_add_ptserver_logentry(const char *entry); |
---|
302 | char *GBS_ptserver_id_to_choice(int i, int showBuild); |
---|
303 | |
---|
304 | /* arbdb.cxx */ |
---|
305 | const char *GB_get_type_name(GBDATA *gbd); |
---|
306 | float GB_atof(const char *str); |
---|
307 | GB_BUFFER GB_give_buffer(size_t size); |
---|
308 | GB_BUFFER GB_increase_buffer(size_t size); |
---|
309 | NOT4PERL int GB_give_buffer_size(void); |
---|
310 | GB_BUFFER GB_give_buffer2(long size); |
---|
311 | char *GB_check_out_buffer(GB_CBUFFER buffer); |
---|
312 | GB_BUFFER GB_give_other_buffer(GB_CBUFFER buffer, long size); |
---|
313 | void GB_atexit(void (*exitfun)()); |
---|
314 | void GB_init_gb(void); |
---|
315 | int GB_open_DBs(void); |
---|
316 | void GB_close(GBDATA *gbd); |
---|
317 | long GB_read_int(GBDATA *gbd); |
---|
318 | int GB_read_byte(GBDATA *gbd); |
---|
319 | GBDATA *GB_read_pointer(GBDATA *gbd); |
---|
320 | float GB_read_float(GBDATA *gbd); |
---|
321 | long GB_read_count(GBDATA *gbd); |
---|
322 | long GB_read_memuse(GBDATA *gbd); |
---|
323 | long GB_calc_structure_size(GBDATA *gbd); |
---|
324 | GB_CSTR GB_read_pntr(GBDATA *gbd); |
---|
325 | GB_CSTR GB_read_char_pntr(GBDATA *gbd); |
---|
326 | char *GB_read_string(GBDATA *gbd); |
---|
327 | size_t GB_read_string_count(GBDATA *gbd); |
---|
328 | long GB_read_bits_count(GBDATA *gbd); |
---|
329 | GB_CSTR GB_read_bits_pntr(GBDATA *gbd, char c_0, char c_1); |
---|
330 | char *GB_read_bits(GBDATA *gbd, char c_0, char c_1); |
---|
331 | GB_CSTR GB_read_bytes_pntr(GBDATA *gbd); |
---|
332 | long GB_read_bytes_count(GBDATA *gbd); |
---|
333 | char *GB_read_bytes(GBDATA *gbd); |
---|
334 | GB_CUINT4 *GB_read_ints_pntr(GBDATA *gbd); |
---|
335 | long GB_read_ints_count(GBDATA *gbd); |
---|
336 | GB_UINT4 *GB_read_ints(GBDATA *gbd); |
---|
337 | GB_CFLOAT *GB_read_floats_pntr(GBDATA *gbd); |
---|
338 | float *GB_read_floats(GBDATA *gbd); |
---|
339 | char *GB_read_as_string(GBDATA *gbd); |
---|
340 | bool GB_readable_as_string(GBDATA *gbd); |
---|
341 | NOT4PERL uint8_t GB_read_lossless_byte(GBDATA *gbd, GB_ERROR& error); |
---|
342 | NOT4PERL int32_t GB_read_lossless_int(GBDATA *gbd, GB_ERROR& error); |
---|
343 | NOT4PERL float GB_read_lossless_float(GBDATA *gbd, GB_ERROR& error); |
---|
344 | long GB_read_from_ints(GBDATA *gbd, long index); |
---|
345 | double GB_read_from_floats(GBDATA *gbd, long index); |
---|
346 | GB_ERROR GB_write_byte(GBDATA *gbd, int i); |
---|
347 | GB_ERROR GB_write_int(GBDATA *gbd, long i); |
---|
348 | GB_ERROR GB_write_pointer(GBDATA *gbd, GBDATA *pointer); |
---|
349 | GB_ERROR GB_write_float(GBDATA *gbd, float f); |
---|
350 | GB_ERROR GB_write_pntr(GBDATA *gbd, const char *s, size_t bytes_size, size_t stored_size); |
---|
351 | GB_ERROR GB_write_string(GBDATA *gbd, const char *s); |
---|
352 | GB_ERROR GB_write_bits(GBDATA *gbd, const char *bits, long size, const char *c_0); |
---|
353 | GB_ERROR GB_write_bytes(GBDATA *gbd, const char *s, long size); |
---|
354 | GB_ERROR GB_write_ints(GBDATA *gbd, const GB_UINT4 *i, long size); |
---|
355 | GB_ERROR GB_write_floats(GBDATA *gbd, const float *f, long size); |
---|
356 | GB_ERROR GB_write_autoconv_string(GBDATA *gbd, const char *val); |
---|
357 | GB_ERROR GB_write_lossless_byte(GBDATA *gbd, uint8_t byte); |
---|
358 | GB_ERROR GB_write_lossless_int(GBDATA *gbd, int32_t i); |
---|
359 | GB_ERROR GB_write_lossless_float(GBDATA *gbd, float f); |
---|
360 | int GB_read_security_write(GBDATA *gbd); |
---|
361 | int GB_read_security_read(GBDATA *gbd); |
---|
362 | int GB_read_security_delete(GBDATA *gbd); |
---|
363 | GB_ERROR GB_write_security_write(GBDATA *gbd, unsigned long level); |
---|
364 | GB_ERROR GB_write_security_read(GBDATA *gbd, unsigned long level); |
---|
365 | GB_ERROR GB_write_security_delete(GBDATA *gbd, unsigned long level); |
---|
366 | GB_ERROR GB_write_security_levels(GBDATA *gbd, unsigned long readlevel, unsigned long writelevel, unsigned long deletelevel); |
---|
367 | void GB_change_my_security(GBDATA *gbd, int level); |
---|
368 | GB_TYPES GB_read_type(GBDATA *gbd); |
---|
369 | bool GB_is_container(GBDATA *gbd); |
---|
370 | char *GB_read_key(GBDATA *gbd); |
---|
371 | GB_CSTR GB_read_key_pntr(GBDATA *gbd); |
---|
372 | GBQUARK GB_find_existing_quark(GBDATA *gbd, const char *key); |
---|
373 | GBQUARK GB_find_or_create_quark(GBDATA *gbd, const char *key); |
---|
374 | GBQUARK GB_get_quark(GBDATA *gbd); |
---|
375 | bool GB_has_key(GBDATA *gbd, const char *key); |
---|
376 | long GB_read_clock(GBDATA *gbd); |
---|
377 | GBDATA *GB_get_father(GBDATA *gbd); |
---|
378 | GBDATA *GB_get_grandfather(GBDATA *gbd); |
---|
379 | GBDATA *GB_get_root(GBDATA *gbd); |
---|
380 | bool GB_is_ancestor_of(GBDATA *gb_ancestor, GBDATA *gb_descendant); |
---|
381 | GBDATA *GB_create(GBDATA *father, const char *key, GB_TYPES type); |
---|
382 | GBDATA *GB_create_container(GBDATA *father, const char *key); |
---|
383 | bool GB_allow_compression(GBDATA *gb_main, bool allow_compression); |
---|
384 | GB_ERROR GB_delete(GBDATA*& source); |
---|
385 | GB_ERROR GB_copy_dropProtectMarksAndTempstate(GBDATA *dest, GBDATA *source); |
---|
386 | GB_ERROR GB_copy_dropMarksAndTempstate(GBDATA *dest, GBDATA *source); |
---|
387 | GB_ERROR GB_copy_std(GBDATA *dest, GBDATA *source); |
---|
388 | GB_ERROR GB_copy_overlay(GBDATA *dest, GBDATA *source); |
---|
389 | GB_ERROR GB_copy_full(GBDATA *dest, GBDATA *source); |
---|
390 | GBDATA *GB_clone(GBDATA *gb_destCont, GBDATA *gb_source); |
---|
391 | char *GB_get_subfields(GBDATA *gbd); |
---|
392 | GB_ERROR GB_set_temporary(GBDATA *gbd) __ATTR__USERESULT; |
---|
393 | GB_ERROR GB_clear_temporary(GBDATA *gbd); |
---|
394 | bool GB_is_temporary(GBDATA *gbd); |
---|
395 | bool GB_in_temporary_branch(GBDATA *gbd); |
---|
396 | GB_ERROR GB_push_transaction(GBDATA *gbd); |
---|
397 | GB_ERROR GB_pop_transaction(GBDATA *gbd); |
---|
398 | GB_ERROR GB_begin_transaction(GBDATA *gbd); |
---|
399 | GB_ERROR GB_no_transaction(GBDATA *gbd) __ATTR__USERESULT; |
---|
400 | GB_ERROR GB_abort_transaction(GBDATA *gbd); |
---|
401 | GB_ERROR GB_commit_transaction(GBDATA *gbd); |
---|
402 | GB_ERROR GB_end_transaction(GBDATA *gbd, GB_ERROR error); |
---|
403 | void GB_end_transaction_show_error(GBDATA *gbd, GB_ERROR error, void (*error_handler)(GB_ERROR)); |
---|
404 | int GB_get_transaction_level(GBDATA *gbd); |
---|
405 | GB_ERROR GB_release(GBDATA *gbd); |
---|
406 | int GB_nsons(GBDATA *gbd); |
---|
407 | void GB_disable_quicksave(GBDATA *gbd, const char *reason); |
---|
408 | GB_ERROR GB_resort_data_base(GBDATA *gb_main, GBDATA **new_order_list, long listsize); |
---|
409 | bool GB_user_flag(GBDATA *gbd, unsigned char user_bit); |
---|
410 | void GB_raise_user_flag(GBDATA *gbd, unsigned char user_bit); |
---|
411 | void GB_clear_user_flag(GBDATA *gbd, unsigned char user_bit); |
---|
412 | void GB_write_user_flag(GBDATA *gbd, unsigned char user_bit, bool state); |
---|
413 | void GB_write_flag(GBDATA *gbd, long flag); |
---|
414 | int GB_read_flag(GBDATA *gbd); |
---|
415 | void GB_touch(GBDATA *gbd); |
---|
416 | char GB_type_2_char(GB_TYPES type); |
---|
417 | void GB_print_debug_information(struct Unfixed_cb_parameter *, GBDATA *gb_main); |
---|
418 | int GB_info(GBDATA *gbd); |
---|
419 | long GB_number_of_subentries(GBDATA *gbd); |
---|
420 | |
---|
421 | /* gb_aci.cxx */ |
---|
422 | NOT4PERL char *GB_command_interpreter_in_env(const char *str, const char *commands, const GBL_call_env& callEnv); |
---|
423 | char *GB_command_interpreter(const char *str, const char *commands, GBDATA *gb_main); |
---|
424 | |
---|
425 | #else |
---|
426 | #error ad_prot.h included twice |
---|
427 | #endif /* AD_PROT_H */ |
---|