summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-29 22:27:31 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:24 -0500
commitfd0662520d453add386b48b4e0cc6cd6b566590c (patch)
tree7bad6c7a8e0920c83016176ee4ab2000df325148 /include
parent379519e6def59e4eea6d3a59fc539b34a1c76e60 (diff)
downloadapimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.bz2
apimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.xz
driver: added --std support.
Diffstat (limited to 'include')
-rw-r--r--include/apimagic/apimagic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/apimagic/apimagic.h b/include/apimagic/apimagic.h
index f2e7bf5..7d17211 100644
--- a/include/apimagic/apimagic.h
+++ b/include/apimagic/apimagic.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdio.h>
+#include <cparser/driver/c_driver.h>
#include <cparser/driver/driver_t.h>
#include "apimagic_api.h"
@@ -51,6 +52,7 @@ struct amgc_common_ctx {
uint64_t actflags;
uint64_t fmtflags;
struct compilation_env_t * ccenv;
+ enum lang_standard_t std;
};
struct amgc_driver_ctx {
@@ -84,6 +86,9 @@ amgc_api void amgc_free_unit_ctx (struct amgc_unit_ctx *);
amgc_api int amgc_map_input (int fd, const char * path, int prot, struct amgc_input *);
amgc_api int amgc_unmap_input (struct amgc_input *);
+/* driver helper api */
+amgc_api int amgc_lang_std_from_string (const char * std);
+
/* utility api */
#ifdef __cplusplus