X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=idl%2Fold%2Fvalidator.h;fp=idl%2Fold%2Fvalidator.h;h=0b8a2793df4160f2d5c422b15ebc4f398dc34977;hp=0000000000000000000000000000000000000000;hb=69008ba2a7733358974c8985caa2e5bcb1182fe1;hpb=c6d07b29eac45a9dc6f121b6a636ff32bc7609a3 diff --git a/idl/old/validator.h b/idl/old/validator.h new file mode 100644 index 0000000..0b8a279 --- /dev/null +++ b/idl/old/validator.h @@ -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