flush
[m6w6/ext-psi] / idl / old / validator.h
diff --git a/idl/old/validator.h b/idl/old/validator.h
new file mode 100644 (file)
index 0000000..0b8a279
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef _PSI_VALIDATOR_H
+#define _PSI_VALIDATOR_H
+
+#include "types.h"
+#include "lexer.h"
+
+typedef struct PSI_Validator {
+       decl_typedefs *defs;
+       decls *decls;
+       impls *impls;
+       char *lib;
+       char *fn;
+       void *dlopened;
+} PSI_Validator;
+
+PSI_Validator *PSI_ValidatorInit(PSI_Validator *V, PSI_Lexer *L);
+int PSI_ValidatorValidate(PSI_Validator *V);
+void PSI_ValidatorDtor(PSI_Validator *V);
+void PSI_ValidatorFree(PSI_Validator **V);
+
+#endif