2016-10-08 21:16:40 +00:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2023-01-17 19:25:40 +00:00
|
|
|
#ifndef EVENT_H
|
|
|
|
#define EVENT_H
|
2016-10-08 21:16:40 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2016-10-12 09:27:10 +00:00
|
|
|
void event_call (const u32 id, hashcat_ctx_t *hashcat_ctx, const void *buf, const size_t len);
|
2016-10-08 21:16:40 +00:00
|
|
|
|
2016-10-12 09:27:10 +00:00
|
|
|
#define EVENT(id) event_call ((id), hashcat_ctx, NULL, 0)
|
|
|
|
#define EVENT_DATA(id,buf,len) event_call ((id), hashcat_ctx, (buf), (len))
|
2016-10-08 21:16:40 +00:00
|
|
|
|
2017-03-25 19:50:37 +00:00
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_advice_nn (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_info_nn (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_warning_nn (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_error_nn (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_advice (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_info (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_warning (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
|
|
|
__attribute__ ((format (printf, 2, 3))) size_t event_log_error (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...);
|
2016-10-08 21:16:40 +00:00
|
|
|
|
|
|
|
int event_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
void event_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
|
|
|
|
2023-01-17 19:25:40 +00:00
|
|
|
#endif // EVENT_H
|