X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gom%2Fgom.c;h=ed9d5e5f530011d73e5881280c4bb808ff68f053;hb=e5f86c3d527897be1f7e7135ffdfc023831aaebd;hp=cc388ee2be9dbd7484d4a5d55e9ed3b4a26eea72;hpb=998fcda019513849988a0aa5132c99426a08f810;p=gedcom-parse.git diff --git a/gom/gom.c b/gom/gom.c index cc388ee..ed9d5e5 100644 --- a/gom/gom.c +++ b/gom/gom.c @@ -115,6 +115,20 @@ int gom_new_model() return gedcom_new_model(); } +int gom_write_file(const char* file_name, int *total_conv_fails) +{ + Gedcom_write_hndl hndl; + int result = 1; + + hndl = gedcom_write_open(file_name); + if (hndl) { + result = write_header(hndl); + result |= gedcom_write_close(hndl, total_conv_fails); + } + + return result; +} + Gom_ctxt make_gom_ctxt(int ctxt_type, OBJ_TYPE obj_type, void *ctxt_ptr) { Gom_ctxt ctxt = (Gom_ctxt)malloc(sizeof(struct Gom_ctxt_struct));