X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ferror.h;h=3f64f1ffe6c8ce6072854baba89cbc5de214a158;hp=2c66d88f1f8762f030f86e98053a014b171e0170;hb=35ae2559447092572209f8b237460ceb551293ff;hpb=2f5af21b263403997e154658635d6b6e6eaab453 diff --git a/src/error.h b/src/error.h index 2c66d88..3f64f1f 100644 --- a/src/error.h +++ b/src/error.h @@ -28,15 +28,16 @@ #include -#include "token.h" - #define PSI_ERROR 16 #define PSI_WARNING 32 -typedef void (*psi_error_cb)(void *context, struct psi_token *token, int type, const char *msg, ...); +struct psi_data; +struct psi_token; + +typedef void (*psi_error_cb)(struct psi_data *context, struct psi_token *token, int type, const char *msg, ...); -void psi_error_wrapper(void *context, struct psi_token *t, int type, const char *msg, ...); +void psi_error_wrapper(struct psi_data *context, struct psi_token *t, int type, const char *msg, ...); void psi_error(int type, const char *fn, unsigned ln, const char *msg, ...); void psi_verror(int type, const char *fn, unsigned ln, const char *msg, va_list argv); -#endif /* EXT_PSI_SRC_ERROR_H */ +#endif /* PSI_ERROR_H */