source: tags/svn.1.5.4/ARBDB/ad_prot.h

Last change on this file was 8319, checked in by westram, 14 years ago
  • ignored PERL2ARB interface as referrer (to detect functions that are only used from perl)
    • moved several functions to static scope or removed them (partly reverted by [13155])
    • for some functions it's ok to be only used from perl (e.g. macro support functions). Added comments there!
  • there is still some dead code in there, e.g.
    • read-security is implemented, but unused (and unwanted)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 20.1 KB
Line 
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 */
17GBDATA *EXP_get_experiment_data(GBDATA *gb_species);
18GBDATA *EXP_find_experiment_rel_exp_data(GBDATA *gb_experiment_data, const char *name);
19GBDATA *EXP_find_experiment(GBDATA *gb_species, const char *name);
20GBDATA *EXP_first_experiment_rel_exp_data(GBDATA *gb_experiment_data);
21GBDATA *EXP_next_experiment(GBDATA *gb_experiment);
22GBDATA *EXP_find_or_create_experiment_rel_exp_data(GBDATA *gb_experiment_data, const char *name);
23
24/* adGene.cxx */
25bool GEN_is_genome_db(GBDATA *gb_main, int default_value);
26GBDATA *GEN_findOrCreate_gene_data(GBDATA *gb_species);
27GBDATA *GEN_find_gene_data(GBDATA *gb_species);
28GBDATA *GEN_expect_gene_data(GBDATA *gb_species);
29GBDATA *GEN_find_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name);
30GBDATA *GEN_find_gene(GBDATA *gb_species, const char *name);
31GBDATA *GEN_create_nonexisting_gene(GBDATA *gb_species, const char *name);
32GBDATA *GEN_find_or_create_gene_rel_gene_data(GBDATA *gb_gene_data, const char *name);
33GBDATA *GEN_first_gene(GBDATA *gb_species);
34GBDATA *GEN_first_gene_rel_gene_data(GBDATA *gb_gene_data);
35GBDATA *GEN_next_gene(GBDATA *gb_gene);
36GBDATA *GEN_first_marked_gene(GBDATA *gb_species);
37GBDATA *GEN_next_marked_gene(GBDATA *gb_gene);
38GEN_position *GEN_new_position(int parts, bool joinable);
39void GEN_use_uncertainties(GEN_position *pos);
40void GEN_free_position(GEN_position *pos);
41GEN_position *GEN_read_position(GBDATA *gb_gene);
42GB_ERROR GEN_write_position(GBDATA *gb_gene, const GEN_position *pos);
43void GEN_sortAndMergeLocationParts(GEN_position *location);
44const char *GEN_origin_organism(GBDATA *gb_pseudo);
45const char *GEN_origin_gene(GBDATA *gb_pseudo);
46bool GEN_is_pseudo_gene_species(GBDATA *gb_species);
47GB_ERROR GEN_organism_not_found(GBDATA *gb_pseudo);
48void GEN_add_pseudo_species_to_hash(GBDATA *gb_pseudo, GB_HASH *pseudo_hash);
49GB_HASH *GEN_create_pseudo_species_hash(GBDATA *gb_main, int additionalSize);
50GBDATA *GEN_find_pseudo_species(GBDATA *gb_main, const char *organism_name, const char *gene_name, GB_HASH *pseudo_hash);
51GBDATA *GEN_find_origin_organism(GBDATA *gb_pseudo, GB_HASH *organism_hash);
52GBDATA *GEN_find_origin_gene(GBDATA *gb_pseudo, GB_HASH *organism_hash);
53GBDATA *GEN_first_pseudo_species(GBDATA *gb_main);
54GBDATA *GEN_next_pseudo_species(GBDATA *gb_species);
55GBDATA *GEN_first_marked_pseudo_species(GBDATA *gb_main);
56bool GEN_is_organism(GBDATA *gb_species);
57GBDATA *GEN_find_organism(GBDATA *gb_main, const char *name);
58GBDATA *GEN_first_organism(GBDATA *gb_main);
59GBDATA *GEN_next_organism(GBDATA *gb_organism);
60long GEN_get_organism_count(GBDATA *gb_main);
61GBDATA *GEN_first_marked_organism(GBDATA *gb_main);
62GBDATA *GEN_next_marked_organism(GBDATA *gb_organism);
63char *GEN_global_gene_identifier(GBDATA *gb_gene, GBDATA *gb_organism);
64
65/* adTest.cxx */
66const char *GB_get_type_name(GBDATA *gbd);
67const char *GB_get_db_path(GBDATA *gbd);
68void GB_dump_db_path(GBDATA *gbd);
69NOT4PERL void GB_dump(GBDATA *gbd);
70NOT4PERL void GB_dump_no_limit(GBDATA *gbd);
71GB_ERROR GB_fix_database(GBDATA *gb_main);
72
73/* ad_load.cxx */
74void GB_set_verbose(void);
75void GB_set_next_main_idx(long idx);
76GBDATA *GB_open(const char *path, const char *opent);
77
78/* ad_save_load.cxx */
79GB_ERROR GB_save(GBDATA *gb, const char *path, const char *savetype);
80GB_ERROR GB_create_directory(const char *path);
81GB_ERROR GB_save_in_arbprop(GBDATA *gb, const char *path, const char *savetype);
82GB_ERROR GB_save_as(GBDATA *gb, const char *path, const char *savetype);
83GB_ERROR GB_delete_database(GB_CSTR filename);
84GB_ERROR GB_save_quick_as(GBDATA *gb_main, const char *path);
85GB_ERROR GB_save_quick(GBDATA *gb, const char *refpath);
86void GB_disable_path(GBDATA *gbd, const char *path);
87
88/* adcache.cxx */
89char *GB_set_cache_size(GBDATA *gbd, size_t size);
90
91/* adcomm.cxx */
92GB_ERROR GBCMS_open(const char *path, long timeout, GBDATA *gb_main);
93void GBCMS_shutdown(GBDATA *gbd);
94bool GBCMS_accept_calls(GBDATA *gbd, bool wait_extra_time);
95long GB_read_clients(GBDATA *gbd);
96bool GB_is_server(GBDATA *gbd);
97GBDATA *GBCMC_find(GBDATA *gbd, const char *key, GB_TYPES type, const char *str, GB_CASE case_sens, GB_SEARCH_TYPE gbs);
98GB_ERROR GB_tell_server_dont_wait(GBDATA *gbd);
99GB_ERROR GB_install_pid(int mode);
100const char *GB_date_string(void);
101
102/* adcompr.cxx */
103bool GB_is_dictionary_compressed(GBDATA *gbd);
104
105/* adfile.cxx */
106GB_CSTR GB_getcwd(void);
107char *GB_find_all_files(const char *dir, const char *mask, bool filename_only);
108char *GB_find_latest_file(const char *dir, const char *mask);
109char *GB_lib_file(bool warn_when_not_found, const char *libprefix, const char *filename);
110char *GB_property_file(bool warn_when_not_found, const char *filename);
111void GBS_read_dir(StrArray &names, const char *dir, const char *mask);
112bool GB_test_textfile_difflines(const char *file1, const char *file2, int expected_difflines, int special_mode);
113size_t GB_test_mem_equal(const unsigned char *buf1, const unsigned char *buf2, size_t common);
114bool GB_test_files_equal(const char *file1, const char *file2);
115
116/* adhash.cxx */
117GB_HASH *GBS_create_hash(long estimated_elements, GB_CASE case_sens);
118GB_HASH *GBS_create_dynaval_hash(long estimated_elements, GB_CASE case_sens, void (*freefun)(long));
119void GBS_dynaval_free(long val);
120void GBS_optimize_hash(GB_HASH *hs);
121char *GBS_hashtab_2_string(GB_HASH *hash);
122long GBS_read_hash(const GB_HASH *hs, const char *key);
123long GBS_write_hash(GB_HASH *hs, const char *key, long val);
124long GBS_write_hash_no_strdup(GB_HASH *hs, char *key, long val);
125long GBS_incr_hash(GB_HASH *hs, const char *key);
126void GBS_free_hash(GB_HASH *hs);
127void GBS_clear_hash_statistic_summary(const char *id);
128void GBS_print_hash_statistic_summary(const char *id);
129void GBS_calc_hash_statistic(GB_HASH *hs, const char *id, int print);
130void GBS_hash_do_loop(GB_HASH *hs, gb_hash_loop_type func, void *client_data);
131size_t GBS_hash_count_elems(GB_HASH *hs);
132const char *GBS_hash_next_element_that(GB_HASH *hs, const char *last_key, bool (*condition)(const char *key, long val, void *cd), void *cd);
133void GBS_hash_do_sorted_loop(GB_HASH *hs, gb_hash_loop_type func, gbs_hash_compare_function sorter, void *client_data);
134int GBS_HCF_sortedByKey(const char *k0, long dummy_1x, const char *k1, long dummy_2x);
135GB_NUMHASH *GBS_create_numhash(size_t estimated_elements);
136long GBS_read_numhash(GB_NUMHASH *hs, long key);
137long GBS_write_numhash(GB_NUMHASH *hs, long key, long val);
138void GBS_free_numhash(GB_NUMHASH *hs);
139
140/* adhashtools.cxx */
141GB_HASH *GBT_create_species_hash_sized(GBDATA *gb_main, long species_count);
142GB_HASH *GBT_create_species_hash(GBDATA *gb_main);
143GB_HASH *GBT_create_marked_species_hash(GBDATA *gb_main);
144GB_HASH *GBT_create_SAI_hash(GBDATA *gb_main);
145GB_HASH *GBT_create_organism_hash(GBDATA *gb_main);
146
147/* adindex.cxx */
148GB_ERROR GB_create_index(GBDATA *gbd, const char *key, GB_CASE case_sens, long estimated_size) __ATTR__USERESULT;
149NOT4PERL void GB_dump_indices(GBDATA *gbd);
150GB_ERROR GB_request_undo_type(GBDATA *gb_main, GB_UNDO_TYPE type) __ATTR__USERESULT_TODO;
151GB_UNDO_TYPE GB_get_requested_undo_type(GBDATA *gb_main);
152GB_ERROR GB_undo(GBDATA *gb_main, GB_UNDO_TYPE type) __ATTR__USERESULT;
153char *GB_undo_info(GBDATA *gb_main, GB_UNDO_TYPE type);
154GB_ERROR GB_set_undo_mem(GBDATA *gbd, long memsize);
155
156/* adlang1.cxx */
157NOT4PERL void GB_set_export_sequence_hook(gb_export_sequence_cb escb);
158int GB_get_ACISRT_trace(void);
159
160/* adlink.cxx */
161GBDATA *GB_follow_link(GBDATA *gb_link);
162GB_ERROR GB_install_link_follower(GBDATA *gb_main, const char *link_type, GB_Link_Follower link_follower);
163
164/* admalloc.cxx */
165NOT4PERL void *GB_calloc(unsigned int nelem, unsigned int elsize);
166NOT4PERL void *GB_recalloc(void *ptr, unsigned int oelem, unsigned int nelem, unsigned int elsize);
167void GB_memerr(void);
168
169/* admap.cxx */
170bool GB_supports_mapfile(void);
171
172/* admatch.cxx */
173GBS_string_matcher *GBS_compile_matcher(const char *search_expr, GB_CASE case_flag);
174void GBS_free_matcher(GBS_string_matcher *matcher);
175GBS_regex *GBS_compile_regexpr(const char *regexpr, GB_CASE case_flag, GB_ERROR *error);
176void GBS_free_regexpr(GBS_regex *toFree);
177const char *GBS_unwrap_regexpr(const char *regexpr_in_slashes, GB_CASE *case_flag, GB_ERROR *error);
178const char *GBS_regmatch_compiled(const char *str, GBS_regex *comreg, size_t *matchlen);
179const char *GBS_regmatch(const char *str, const char *regExpr, size_t *matchlen, GB_ERROR *error);
180char *GBS_regreplace(const char *str, const char *regReplExpr, GB_ERROR *error);
181GB_CSTR GBS_find_string(GB_CSTR cont, GB_CSTR substr, int match_mode);
182bool GBS_string_matches(const char *str, const char *search, GB_CASE case_sens);
183bool GBS_string_matches_regexp(const char *str, const GBS_string_matcher *expr);
184char *GBS_string_eval(const char *insource, const char *icommand, GBDATA *gb_container);
185
186/* admath.cxx */
187double GB_log_fak(int n);
188int GB_random(int range);
189
190/* adoptimize.cxx */
191GB_ERROR GB_optimize(GBDATA *gb_main);
192
193/* adperl.cxx */
194GB_ERROR GBC_await_error(void);
195
196/* adquery.cxx */
197GBDATA *GB_find_sub_by_quark(GBDATA *father, GBQUARK key_quark, GBDATA *after, size_t skip_over);
198GBDATA *GB_find(GBDATA *gbd, const char *key, GB_SEARCH_TYPE gbs);
199GBDATA *GB_find_string(GBDATA *gbd, const char *key, const char *str, GB_CASE case_sens, GB_SEARCH_TYPE gbs);
200NOT4PERL GBDATA *GB_find_int(GBDATA *gbd, const char *key, long val, GB_SEARCH_TYPE gbs);
201GBDATA *GB_child(GBDATA *father);
202GBDATA *GB_nextChild(GBDATA *child);
203GBDATA *GB_entry(GBDATA *father, const char *key);
204GBDATA *GB_nextEntry(GBDATA *entry);
205GBDATA *GB_followingEntry(GBDATA *entry, size_t skip_over);
206GBDATA *GB_brother(GBDATA *entry, const char *key);
207char *GB_first_non_key_char(const char *str);
208GBDATA *GB_search(GBDATA *gbd, const char *fieldpath, GB_TYPES create);
209GBDATA *GB_searchOrCreate_string(GBDATA *gb_container, const char *fieldpath, const char *default_value);
210GBDATA *GB_searchOrCreate_int(GBDATA *gb_container, const char *fieldpath, long default_value);
211GBDATA *GB_searchOrCreate_float(GBDATA *gb_container, const char *fieldpath, double default_value);
212GBDATA *GB_search_last_son(GBDATA *gbd);
213long GB_number_of_marked_subentries(GBDATA *gbd);
214GBDATA *GB_first_marked(GBDATA *gbd, const char *keystring);
215GBDATA *GB_following_marked(GBDATA *gbd, const char *keystring, size_t skip_over);
216GBDATA *GB_next_marked(GBDATA *gbd, const char *keystring);
217char *GB_command_interpreter(GBDATA *gb_main, const char *str, const char *commands, GBDATA *gbd, const char *default_tree_name);
218
219/* adsocket.cxx */
220void GB_usleep(long usec);
221char *GB_read_fp(FILE *in);
222char *GB_read_file(const char *path);
223char *GB_map_FILE(FILE *in, int writeable);
224char *GB_map_file(const char *path, int writeable);
225GB_ULONG GB_time_of_day(void);
226long GB_last_saved_clock(GBDATA *gb_main);
227GB_ULONG GB_last_saved_time(GBDATA *gb_main);
228GB_ERROR GB_textprint(const char *path) __ATTR__USERESULT;
229char *GB_executable(GB_CSTR exe_name);
230GB_CSTR GB_getenvUSER(void);
231GB_CSTR GB_getenvARBHOME(void);
232GB_CSTR GB_getenvARBMACRO(void);
233GB_CSTR GB_getenvARBMACROHOME(void);
234GB_CSTR GB_getenvARB_GS(void);
235GB_CSTR GB_getenvARB_PDFVIEW(void);
236GB_CSTR GB_getenvARB_TEXTEDIT(void);
237GB_CSTR GB_getenvDOCPATH(void);
238GB_CSTR GB_getenvHTMLDOCPATH(void);
239NOT4PERL gb_getenv_hook GB_install_getenv_hook(gb_getenv_hook hook);
240GB_CSTR GB_getenv(const char *env);
241bool GB_host_is_local(const char *hostname);
242GB_ULONG GB_get_physical_memory(void);
243GB_ERROR GB_xterm(void) __ATTR__USERESULT;
244GB_ERROR GB_xcmd(const char *cmd, bool background, bool wait_only_if_error) __ATTR__USERESULT_TODO;
245GB_CSTR GB_append_suffix(const char *name, const char *suffix);
246GB_CSTR GB_canonical_path(const char *anypath);
247GB_CSTR GB_concat_path(GB_CSTR anypath_left, GB_CSTR anypath_right);
248GB_CSTR GB_concat_full_path(const char *anypath_left, const char *anypath_right);
249GB_CSTR GB_unfold_path(const char *pwd_envar, const char *path);
250GB_CSTR GB_path_in_ARBHOME(const char *relative_path);
251GB_CSTR GB_path_in_ARBLIB(const char *relative_path);
252GB_CSTR GB_path_in_arbprop(const char *relative_path);
253GB_CSTR GB_path_in_ARBLIB(const char *relative_path_left, const char *anypath_right);
254FILE *GB_fopen_tempfile(const char *filename, const char *fmode, char **res_fullname);
255char *GB_create_tempfile(const char *name);
256char *GB_unique_filename(const char *name_prefix, const char *suffix);
257void GB_remove_on_exit(const char *filename);
258void GB_split_full_path(const char *fullpath, char **res_dir, char **res_fullname, char **res_name_only, char **res_suffix);
259
260/* adstring.cxx */
261char *GBS_string_2_key(const char *str);
262char *GB_memdup(const char *source, size_t len);
263GB_ERROR GB_check_key(const char *key) __ATTR__USERESULT;
264GB_ERROR GB_check_link_name(const char *key) __ATTR__USERESULT;
265GB_ERROR GB_check_hkey(const char *key) __ATTR__USERESULT;
266char *GBS_remove_escape(char *com);
267char *GBS_escape_string(const char *str, const char *chars_to_escape, char escape_char);
268char *GBS_unescape_string(const char *str, const char *escaped_chars, char escape_char);
269char *GBS_eval_env(GB_CSTR p);
270long GBS_gcgchecksum(const char *seq);
271uint32_t GB_checksum(const char *seq, long length, int ignore_case, const char *exclude);
272uint32_t GBS_checksum(const char *seq, int ignore_case, const char *exclude);
273char *GBS_extract_words(const char *source, const char *chars, float minlen, bool sort_output);
274size_t GBS_shorten_repeated_data(char *data);
275char *GBS_merge_tagged_strings(const char *s1, const char *tag1, const char *replace1, const char *s2, const char *tag2, const char *replace2);
276char *GBS_string_eval_tagged_string(GBDATA *gb_main, const char *s, const char *dt, const char *tag, const char *srt, const char *aci, GBDATA *gbd);
277char *GB_read_as_tagged_string(GBDATA *gbd, const char *tagi);
278void GBS_fwrite_string(const char *strngi, FILE *out);
279char *GBS_fconvert_string(char *buffer);
280char *GBS_replace_tabs_by_spaces(const char *text);
281const char *GBS_readable_size(unsigned long long size, const char *unit_suffix);
282char *GBS_trim(const char *str);
283char *GBS_log_dated_action_to(const char *comment, const char *action);
284
285/* adsystem.cxx */
286DictData *GB_get_dictionary(GBDATA *gb_main, const char *key);
287GB_ERROR GB_set_dictionary(GBDATA *gb_main, const char *key, const DictData *dd);
288
289/* adtcp.cxx */
290char *GB_arbtcpdat_path(void);
291const char *GBS_scan_arb_tcp_param(const char *ipPort, const char *wantedParam);
292
293#ifdef UNIT_TESTS
294#define TEST_SERVER_ID (-666)
295#define TEST_GENESERVER_ID (-667)
296#endif
297
298const char *GBS_nameserver_tag(const char *add_field);
299const char *GBS_ptserver_tag(int id);
300const char *GBS_read_arb_tcp(const char *env);
301const char *const *GBS_get_arb_tcp_entries(const char *matching);
302const char *GBS_ptserver_logname(void);
303void GBS_add_ptserver_logentry(const char *entry);
304char *GBS_ptserver_id_to_choice(int i, int showBuild);
305
306/* arbdb.cxx */
307double GB_atof(const char *str);
308GB_BUFFER GB_give_buffer(size_t size);
309GB_BUFFER GB_increase_buffer(size_t size);
310NOT4PERL int GB_give_buffer_size(void);
311GB_BUFFER GB_give_buffer2(long size);
312char *GB_check_out_buffer(GB_CBUFFER buffer);
313GB_BUFFER GB_give_other_buffer(GB_CBUFFER buffer, long size);
314void GB_atexit(void (*exitfun)());
315void GB_init_gb(void);
316int GB_open_DBs(void);
317void GB_atclose(GBDATA *gbd, void (*fun)(GBDATA *gb_main, void *client_data), void *client_data);
318void GB_close(GBDATA *gbd);
319long GB_read_int(GBDATA *gbd);
320int GB_read_byte(GBDATA *gbd);
321void *GB_read_pointer(GBDATA *gbd);
322double GB_read_float(GBDATA *gbd);
323long GB_read_count(GBDATA *gbd);
324long GB_read_memuse(GBDATA *gbd);
325GB_CSTR GB_read_pntr(GBDATA *gbd);
326GB_CSTR GB_read_char_pntr(GBDATA *gbd);
327char *GB_read_string(GBDATA *gbd);
328long GB_read_string_count(GBDATA *gbd);
329GB_CSTR GB_read_link_pntr(GBDATA *gbd);
330long GB_read_bits_count(GBDATA *gbd);
331GB_CSTR GB_read_bits_pntr(GBDATA *gbd, char c_0, char c_1);
332char *GB_read_bits(GBDATA *gbd, char c_0, char c_1);
333GB_CSTR GB_read_bytes_pntr(GBDATA *gbd);
334long GB_read_bytes_count(GBDATA *gbd);
335char *GB_read_bytes(GBDATA *gbd);
336GB_CUINT4 *GB_read_ints_pntr(GBDATA *gbd);
337long GB_read_ints_count(GBDATA *gbd);
338GB_UINT4 *GB_read_ints(GBDATA *gbd);
339GB_CFLOAT *GB_read_floats_pntr(GBDATA *gbd);
340char *GB_read_as_string(GBDATA *gbd);
341long GB_read_from_ints(GBDATA *gbd, long index);
342double GB_read_from_floats(GBDATA *gbd, long index);
343GB_ERROR GB_write_byte(GBDATA *gbd, int i);
344GB_ERROR GB_write_int(GBDATA *gbd, long i);
345GB_ERROR GB_write_pointer(GBDATA *gbd, void *pointer);
346GB_ERROR GB_write_float(GBDATA *gbd, double f);
347GB_ERROR GB_write_pntr(GBDATA *gbd, const char *s, long bytes_size, long stored_size);
348GB_ERROR GB_write_string(GBDATA *gbd, const char *s);
349GB_ERROR GB_write_link(GBDATA *gbd, const char *s);
350GB_ERROR GB_write_bits(GBDATA *gbd, const char *bits, long size, const char *c_0);
351GB_ERROR GB_write_bytes(GBDATA *gbd, const char *s, long size);
352GB_ERROR GB_write_ints(GBDATA *gbd, const GB_UINT4 *i, long size);
353GB_ERROR GB_write_floats(GBDATA *gbd, const float *f, long size);
354GB_ERROR GB_write_as_string(GBDATA *gbd, const char *val);
355int GB_read_security_write(GBDATA *gbd);
356int GB_read_security_read(GBDATA *gbd);
357int GB_read_security_delete(GBDATA *gbd);
358GB_ERROR GB_write_security_write(GBDATA *gbd, unsigned long level);
359GB_ERROR GB_write_security_read(GBDATA *gbd, unsigned long level);
360GB_ERROR GB_write_security_delete(GBDATA *gbd, unsigned long level);
361GB_ERROR GB_write_security_levels(GBDATA *gbd, unsigned long readlevel, unsigned long writelevel, unsigned long deletelevel);
362void GB_change_my_security(GBDATA *gbd, int level);
363void GB_push_my_security(GBDATA *gbd);
364void GB_pop_my_security(GBDATA *gbd);
365GB_TYPES GB_read_type(GBDATA *gbd);
366char *GB_read_key(GBDATA *gbd);
367GB_CSTR GB_read_key_pntr(GBDATA *gbd);
368GBQUARK GB_key_2_quark(GBDATA *gbd, const char *key);
369GBQUARK GB_get_quark(GBDATA *gbd);
370bool GB_has_key(GBDATA *gbd, const char *key);
371long GB_read_clock(GBDATA *gbd);
372long GB_read_transaction(GBDATA *gbd);
373GBDATA *GB_get_father(GBDATA *gbd);
374GBDATA *GB_get_grandfather(GBDATA *gbd);
375GBDATA *GB_get_root(GBDATA *gbd);
376bool GB_check_father(GBDATA *gbd, GBDATA *gb_maybefather);
377GBDATA *GB_create(GBDATA *father, const char *key, GB_TYPES type);
378GBDATA *GB_create_container(GBDATA *father, const char *key);
379bool GB_allow_compression(GBDATA *gb_main, bool allow_compression);
380GB_ERROR GB_delete(GBDATA *source);
381GB_ERROR GB_copy(GBDATA *dest, GBDATA *source);
382GB_ERROR GB_copy_with_protection(GBDATA *dest, GBDATA *source, bool copy_all_protections);
383char *GB_get_subfields(GBDATA *gbd);
384GB_ERROR GB_set_temporary(GBDATA *gbd) __ATTR__USERESULT;
385GB_ERROR GB_clear_temporary(GBDATA *gbd);
386bool GB_is_temporary(GBDATA *gbd);
387bool GB_in_temporary_branch(GBDATA *gbd);
388GB_ERROR GB_push_transaction(GBDATA *gbd);
389GB_ERROR GB_pop_transaction(GBDATA *gbd);
390GB_ERROR GB_begin_transaction(GBDATA *gbd);
391GB_ERROR GB_no_transaction(GBDATA *gbd);
392GB_ERROR GB_abort_transaction(GBDATA *gbd);
393GB_ERROR GB_commit_transaction(GBDATA *gbd);
394GB_ERROR GB_end_transaction(GBDATA *gbd, GB_ERROR error);
395void GB_end_transaction_show_error(GBDATA *gbd, GB_ERROR error, void (*error_handler)(GB_ERROR));
396int GB_get_transaction_level(GBDATA *gbd);
397GB_ERROR GB_update_server(GBDATA *gbd);
398NOT4PERL bool GB_inside_callback(GBDATA *of_gbd, GB_CB_TYPE cbtype);
399GBDATA *GB_get_gb_main_during_cb(void);
400NOT4PERL const void *GB_read_old_value(void);
401long GB_read_old_size(void);
402char *GB_get_callback_info(GBDATA *gbd);
403GB_ERROR GB_add_callback(GBDATA *gbd, GB_CB_TYPE type, GB_CB func, int *clientdata);
404void GB_remove_callback(GBDATA *gbd, GB_CB_TYPE type, GB_CB func, int *clientdata);
405void GB_remove_all_callbacks_to(GBDATA *gbd, GB_CB_TYPE type, GB_CB func);
406GB_ERROR GB_ensure_callback(GBDATA *gbd, GB_CB_TYPE type, GB_CB func, int *clientdata);
407int GB_nsons(GBDATA *gbd);
408void GB_disable_quicksave(GBDATA *gbd, const char *reason);
409GB_ERROR GB_resort_data_base(GBDATA *gb_main, GBDATA **new_order_list, long listsize);
410GB_ERROR GB_resort_system_folder_to_top(GBDATA *gb_main);
411long GB_read_usr_private(GBDATA *gbd);
412GB_ERROR GB_write_usr_private(GBDATA *gbd, long ref);
413void GB_write_flag(GBDATA *gbd, long flag);
414int GB_read_flag(GBDATA *gbd);
415void GB_touch(GBDATA *gbd);
416char GB_type_2_char(GB_TYPES type);
417GB_ERROR GB_print_debug_information(void *, GBDATA *gb_main);
418int GB_info(GBDATA *gbd);
419long GB_number_of_subentries(GBDATA *gbd);
420
421#else
422#error ad_prot.h included twice
423#endif /* AD_PROT_H */
Note: See TracBrowser for help on using the repository browser.