]> wimlib.net Git - wimlib/blobdiff - include/wimlib/callback.h
Cleanup and add more comments
[wimlib] / include / wimlib / callback.h
index a805f551f403c674a8930f6b1353cfa68115740b..e83ff68fa3b90152ae4feb9717134d8a9d60e5d6 100644 (file)
@@ -3,6 +3,8 @@
 
 #include <stddef.h>
 
-typedef int (*consume_data_callback_t)(const void *buf, size_t len, void *ctx);
+/* Callback for processing a chunk of data.  Returns 0 on success, or an error
+ * code on failure.  */
+typedef int (*consume_data_callback_t)(const void *chunk, size_t size, void *ctx);
 
 #endif