--- /dev/null
+/* Source code for modifying the gedcom object model.
+ Copyright (C) 2002 The Genes Development Team
+ This file is part of the Gedcom parser library.
+ Contributed by Peter Verthez <Peter.Verthez@advalvas.be>, 2002.
+
+ The Gedcom parser library is free software; you can redistribute it
+ and/or modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The Gedcom parser library is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the Gedcom parser library; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+/* $Id$ */
+/* $Name$ */
+
+#include <stdlib.h>
+#include <string.h>
+#include "utf8-locale.h"
+#include "gom.h"
+#include "gom_internal.h"
+
+void gom_set_unknown(const char* unknown)
+{
+ convert_set_unknown(unknown);
+}
+
+char* gom_get_string(char* data)
+{
+ return data;
+}
+
+char* gom_get_string_locale(char* data, int* conversion_failures)
+{
+ return convert_utf8_to_locale(gom_get_string(data), conversion_failures);
+}
+
+char* gom_set_string(char** data, const char* utf8_value)
+{
+ char* result = NULL;
+ char* newptr = strdup(utf8_value);
+
+ if (!newptr)
+ MEMORY_ERROR;
+ else {
+ if (*data) free(*data);
+ *data = newptr;
+ result = *data;
+ }
+
+ return result;
+}
+
+char* gom_set_string_locale(char** data, const char* locale_value)
+{
+ return gom_set_string(data, convert_locale_to_utf8(locale_value));
+}
struct user_rec* gom_get_first_user_rec();
struct user_rec* gom_get_user_rec_by_xref(const char *xref);
+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);
+
__END_DECLS
#endif /* __GEDCOM_GOM_H */