From: Peter Verthez Date: Sun, 5 Jan 2003 17:40:58 +0000 (+0000) Subject: New interface functions. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=014380ce86886f223f0c5f560c8770cbf4830502;p=gedcom-parse.git New interface functions. --- diff --git a/include/gom.h b/include/gom.h index 7424143..7feb725 100644 --- a/include/gom.h +++ b/include/gom.h @@ -428,46 +428,55 @@ int gom_header_update_timestamp(time_t t); struct submission* gom_get_submission(); struct submission* gom_add_submission(const char* xrefstr); int gom_delete_submission(); +struct xref_value* gom_make_submission_link(struct submission* obj); struct family* gom_get_first_family(); struct family* gom_get_family_by_xref(const char *xref); struct family* gom_add_family(const char* xrefstr); int gom_delete_family(struct family* obj); +struct xref_value* gom_make_family_link(struct family* obj); struct individual* gom_get_first_individual(); struct individual* gom_get_individual_by_xref(const char *xref); struct individual* gom_add_individual(const char* xrefstr); int gom_delete_individual(struct individual* obj); +struct xref_value* gom_make_individual_link(struct individual* obj); struct multimedia* gom_get_first_multimedia(); struct multimedia* gom_get_multimedia_by_xref(const char *xref); struct multimedia* gom_add_multimedia(const char* xrefstr); int gom_delete_multimedia(struct multimedia* obj); +struct xref_value* gom_make_multimedia_link(struct multimedia* obj); struct note* gom_get_first_note(); struct note* gom_get_note_by_xref(const char *xref); struct note* gom_add_note(const char* xrefstr); int gom_delete_note(struct note* obj); +struct xref_value* gom_make_note_link(struct note* obj); struct repository* gom_get_first_repository(); struct repository* gom_get_repository_by_xref(const char *xref); struct repository* gom_add_repository(const char* xrefstr); int gom_delete_repository(struct repository* obj); +struct xref_value* gom_make_repository_link(struct repository* obj); struct source* gom_get_first_source(); struct source* gom_get_source_by_xref(const char *xref); struct source* gom_add_source(const char* xrefstr); int gom_delete_source(struct source* obj); +struct xref_value* gom_make_source_link(struct source* obj); struct submitter* gom_get_first_submitter(); struct submitter* gom_get_submitter_by_xref(const char *xref); struct submitter* gom_add_submitter(const char* xrefstr); int gom_delete_submitter(struct submitter* obj); +struct xref_value* gom_make_submitter_link(struct submitter* obj); struct user_rec* gom_get_first_user_rec(); struct user_rec* gom_get_user_rec_by_xref(const char *xref); struct user_rec* gom_add_user_rec(const char* xrefstr, const char* tag); int gom_delete_user_rec(struct user_rec* obj); +struct xref_value* gom_make_user_rec_link(struct user_rec* obj); char* gom_get_string(char* data); char* gom_set_string(char** data, const char* utf8_str); @@ -476,6 +485,15 @@ char* gom_get_string_for_locale(char* data, int* conversion_failures); char* gom_set_string_for_locale(char** data, const char* locale_str); void gom_set_unknown(const char* unknown); +struct xref_value* gom_set_xref_value(struct xref_value** data, + struct xref_value* newval); + +struct address* gom_add_address(struct address** obj); +int gom_delete_address(struct address** obj); + +struct place* gom_add_place(struct place** obj); +int gom_delete_place(struct place** obj); + struct change_date* gom_add_change_date(struct change_date** obj); int gom_delete_change_date(struct change_date** obj); int gom_update_timestamp(struct change_date** obj, time_t t);