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