summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
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