summaryrefslogtreecommitdiff
path: root/aoview/aoview.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-05-20 09:44:55 -0700
committerKeith Packard <keithp@keithp.com>2009-05-20 09:44:55 -0700
commitaa6d87aeb616dd62f0debaded297232022b4f8bd (patch)
tree3fb8b12bcb2796fdcf7ce1dd16c45fd44176937d /aoview/aoview.h
parentb730c8bcbce649cdddba935e1112aaae538bc526 (diff)
Make file handling more general so it can be reused.
The log file handling stuff will be useful for saving eeprom data, so pull it out of the real-time log handling code and make a general interface. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'aoview/aoview.h')
-rw-r--r--aoview/aoview.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/aoview/aoview.h b/aoview/aoview.h
index 4abbde88..7b5f0de5 100644
--- a/aoview/aoview.h
+++ b/aoview/aoview.h
@@ -170,4 +170,33 @@ aoview_table_init(GladeXML *xml);
void
aoview_table_clear(void);
+struct aoview_file;
+
+void
+aoview_file_finish(struct aoview_file *file);
+
+gboolean
+aoview_file_start(struct aoview_file *file);
+
+void
+aoview_file_set_serial(struct aoview_file *file, int serial);
+
+int
+aoview_file_get_serial(struct aoview_file *file);
+
+void
+aoview_file_printf(struct aoview_file *file, char *format, ...);
+
+void
+aoview_file_vprintf(struct aoview_file *file, char *format, va_list ap);
+
+struct aoview_file *
+aoview_file_new(char *ext);
+
+void
+aoview_file_destroy(struct aoview_file *file);
+
+void
+aoview_file_init(GladeXML *xml);
+
#endif /* _AOVIEW_H_ */