summaryrefslogtreecommitdiff
path: root/src/sru.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sru.h')
-rw-r--r--src/sru.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sru.h b/src/sru.h
new file mode 100644
index 0000000..7b5a57a
--- /dev/null
+++ b/src/sru.h
@@ -0,0 +1,15 @@
+#ifndef BOKF_SRU_H
+#define BOKF_SRU_H
+
+#include <sqlite3.h>
+#include <stdint.h>
+
+#include "yyjson.h"
+
+/* Builds Skatteverket's SRU files (INFO.SRU + BLANKETTER.SRU with INK2,
+ INK2R and INK2S) for a fiscal year. Returns a result object with both
+ files base64-encoded, or NULL with *err set. */
+yyjson_mut_val *sru_export(yyjson_mut_doc *doc, sqlite3 *db, int64_t org_id,
+ int64_t fy_id, yyjson_val *args, char **err);
+
+#endif