X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=include%2Fgom.h;h=5e33076404b26e914615bef67033328fc3179e8b;hb=e660d72f378df5439cc383a57d0e45a1f25fbc88;hp=0af1ee5753be930c359dcb5177891b87d781ae18;hpb=4c445928c8f7d30731a66522ffb9747fe13a3243;p=gedcom-parse.git diff --git a/include/gom.h b/include/gom.h index 0af1ee5..5e33076 100644 --- a/include/gom.h +++ b/include/gom.h @@ -26,7 +26,9 @@ #include "gedcom.h" -__BEGIN_DECLS +#ifdef __cplusplus +extern "C" { +#endif /* Sub-structures */ @@ -414,6 +416,7 @@ struct user_rec { /* Functions */ int gom_parse_file(const char *file_name); +int gom_new_model(); struct header* gom_get_header(); struct submission* gom_get_submission(); @@ -442,6 +445,15 @@ struct submitter* gom_get_submitter_by_xref(const char *xref); struct user_rec* gom_get_first_user_rec(); struct user_rec* gom_get_user_rec_by_xref(const char *xref); -__END_DECLS +char* gom_get_string(char* data); +char* gom_set_string(char** data, const char* utf8_value); + +char* gom_get_string_locale(char* data, int* conversion_failures); +char* gom_set_string_locale(char** data, const char* locale_value); +void gom_set_unknown(const char* unknown); + +#ifdef __cplusplus +} +#endif #endif /* __GEDCOM_GOM_H */