aboutsummaryrefslogtreecommitdiff
path: root/src/generator.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-09-03 23:17:17 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-09-04 00:13:34 +0200
commit8d19acd91af9592d862ef2a7aa8e95eea4160152 (patch)
treefb2a422cf9446829c41e152415f128b47babe938 /src/generator.h
parentdd2bd04a07030f15e6eb6875041f95c74023dd35 (diff)
downloadtdv-8d19acd91af9592d862ef2a7aa8e95eea4160152.tar.gz
tdv-8d19acd91af9592d862ef2a7aa8e95eea4160152.tar.xz
tdv-8d19acd91af9592d862ef2a7aa8e95eea4160152.zip
Add a tool to transform dictionaries
Diffstat (limited to 'src/generator.h')
-rw-r--r--src/generator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/generator.h b/src/generator.h
index 554e7ed..ba19d58 100644
--- a/src/generator.h
+++ b/src/generator.h
@@ -4,7 +4,7 @@
* Nothing fancy. Just something moved out off the `stardict' test to be
* conveniently reused by the included tools.
*
- * Copyright (c) 2013, Přemysl Eric Janouch <p@janouch.name>
+ * Copyright (c) 2013 - 2020, Přemysl Eric Janouch <p@janouch.name>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted.
@@ -42,12 +42,15 @@ Generator *generator_new (const gchar *base, GError **error);
gboolean generator_finish (Generator *self, GError **error);
void generator_free (Generator *self);
-void generator_begin_entry (Generator *self);
gboolean generator_write_type (Generator *self, gchar type, GError **error);
gboolean generator_write_raw (Generator *self,
gpointer data, gsize data_size, gboolean mark_end, GError **error);
gboolean generator_write_string (Generator *self,
const gchar *s, gboolean mark_end, GError **error);
+
+void generator_begin_entry (Generator *self);
+gboolean generator_write_fields (Generator *self,
+ const GList *fields, GError **error);
gboolean generator_finish_entry (Generator *self,
const gchar *word, GError **error);