summaryrefslogtreecommitdiffstats
path: root/rbutil/chinachippatcher/chinachip.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/chinachippatcher/chinachip.h')
-rw-r--r--rbutil/chinachippatcher/chinachip.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/rbutil/chinachippatcher/chinachip.h b/rbutil/chinachippatcher/chinachip.h
index 2f8ba9e18a..b92066bb8b 100644
--- a/rbutil/chinachippatcher/chinachip.h
+++ b/rbutil/chinachippatcher/chinachip.h
@@ -26,11 +26,24 @@
extern "C" {
#endif
-int chinachip_patch(const char* firmware, const char* bootloader,
- const char* output, const char* ccpmp_backup,
- void (*info)(void*, char*, ...),
- void (*err)(void*, char*, ...),
- void* userdata);
+enum cc_error {
+ E_OK,
+ E_OPEN_FIRMWARE,
+ E_OPEN_BOOTLOADER,
+ E_MEMALLOC,
+ E_LOAD_FIRMWARE,
+ E_INVALID_FILE,
+ E_NO_CCPMP,
+ E_OPEN_BACKUP,
+ E_WRITE_BACKUP,
+ E_LOAD_BOOTLOADER,
+ E_GET_TIME,
+ E_OPEN_OUTFILE,
+ E_WRITE_OUTFILE,
+};
+
+enum cc_error chinachip_patch(const char* firmware, const char* bootloader,
+ const char* output, const char* ccpmp_backup);
#ifdef __cplusplus
}