aboutsummaryrefslogtreecommitdiff
path: root/src/sie.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sie.h')
-rw-r--r--src/sie.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/sie.h b/src/sie.h
new file mode 100644
index 0000000..16a9cb5
--- /dev/null
+++ b/src/sie.h
@@ -0,0 +1,18 @@
+#ifndef BOKF_SIE_H
+#define BOKF_SIE_H
+
+#include <sqlite3.h>
+#include <stddef.h>
+#include <stdint.h>
+
+int sie_export_file(sqlite3 *db, int64_t org_id, int64_t fy_id,
+ const char *path, char **err);
+
+/* Imports SIE 4 content (CP437 or ASCII bytes). On dry_run everything is
+ executed and rolled back. */
+int sie_import_content(sqlite3 *db, int64_t org_id, int64_t user_id,
+ const unsigned char *data, size_t len, int dry_run,
+ int64_t *out_fy_id, int64_t *out_vouchers,
+ int64_t *out_accounts, char **err);
+
+#endif