]> wimlib.net Git - wimlib/blob - include/wimlib/callback.h
Re-visit SHA-1 code
[wimlib] / include / wimlib / callback.h
1 #ifndef _WIMLIB_CALLBACK_H
2 #define _WIMLIB_CALLBACK_H
3
4 #include <stddef.h>
5
6 /* Callback for processing a chunk of data.  Returns 0 on success, or an error
7  * code on failure.  */
8 typedef int (*consume_data_callback_t)(const void *chunk, size_t size, void *ctx);
9
10 #endif