diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-17 19:55:36 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-17 19:55:36 +0200 |
| commit | 380195f7cd5e57acf2c1cf2bc41069e6b0b979ed (patch) | |
| tree | 32a88fb22a7fbe8f1fd5c105156d1f928c93950d /src/sie.h | |
| download | bokf-0.1.0.tar.gz bokf-0.1.0.zip | |
Initial commit: daemon, clients, docs, Docker deploy pipelinev0.1.0
Diffstat (limited to 'src/sie.h')
| -rw-r--r-- | src/sie.h | 18 |
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 |
