comparison lib/apic.h @ 19:de4bf839b565

misc: revamp SQL
author David Demelier <markand@malikania.fr>
date Fri, 15 Jul 2022 11:11:48 +0200
parents
children f98ea578b1ef
comparison
equal deleted inserted replaced
18:600204c31bf0 19:de4bf839b565
1 #ifndef SCI_APIC_H
2 #define SCI_APIC_H
3
4 #include <jansson.h>
5
6 #define APIC_ERR_MAX 128
7
8 struct apicreq {
9 json_t *doc;
10 char error[APIC_ERR_MAX];
11 long status;
12 };
13
14 int
15 apic_get(struct apicreq *req, const char *url, ...);
16
17 int
18 apic_post(struct apicreq *req, const json_t *body, const char *url, ...);
19
20 #endif /* !SCI_APIC_H */