X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=idl%2Fvalidator.h;fp=idl%2Fvalidator.h;h=630f9671141e1899b5464797e93b7edcbad525c1;hp=0000000000000000000000000000000000000000;hb=69008ba2a7733358974c8985caa2e5bcb1182fe1;hpb=c6d07b29eac45a9dc6f121b6a636ff32bc7609a3 diff --git a/idl/validator.h b/idl/validator.h new file mode 100644 index 0000000..630f967 --- /dev/null +++ b/idl/validator.h @@ -0,0 +1,20 @@ +#ifndef _PSI_VALIDATOR_H +#define _PSI_VALIDATOR_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_ValidatorFree(PSI_Validator **V); +void PSI_ValidatorDtor(PSI_Validator *V); + +#endif