summaryrefslogtreecommitdiff
path: root/src/sie.h
blob: 16a9cb5b3dedc7636aad2700cc597fc0476b0fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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