aboutsummaryrefslogtreecommitdiff
path: root/src/sru.h
blob: 7b5a57a50dbbb18c46941d0e5781644d82ec6007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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