summaryrefslogtreecommitdiff
path: root/utils/samsungtools/samsung.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/samsungtools/samsung.h')
-rw-r--r--utils/samsungtools/samsung.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/samsungtools/samsung.h b/utils/samsungtools/samsung.h
index 4336e02651..70ac9c770c 100644
--- a/utils/samsungtools/samsung.h
+++ b/utils/samsungtools/samsung.h
@@ -66,13 +66,17 @@ enum samsung_error_t
66 SAMSUNG_READ_ERROR = -1, 66 SAMSUNG_READ_ERROR = -1,
67 SAMSUNG_FORMAT_ERROR = -2, 67 SAMSUNG_FORMAT_ERROR = -2,
68 SAMSUNG_MD5_ERROR = -3, 68 SAMSUNG_MD5_ERROR = -3,
69 SAMSUNG_WRITE_ERROR = -4,
69}; 70};
70 71
71typedef int (*samsung_read_t)(void *user, int offset, void *buffer, int size); 72typedef int (*samsung_read_t)(void *user, int offset, void *buffer, int size);
73typedef int (*samsung_write_t)(void *user, int offset, void *buffer, int size);
72typedef void (*samsung_printf_t)(void *user, bool error, const char *fmt, ...); 74typedef void (*samsung_printf_t)(void *user, bool error, const char *fmt, ...);
73 75
74struct samsung_firmware_t *samsung_read(samsung_read_t read, 76struct samsung_firmware_t *samsung_read(samsung_read_t read,
75 samsung_printf_t printf, void *user, enum samsung_error_t *err); 77 samsung_printf_t printf, void *user, enum samsung_error_t *err);
78enum samsung_error_t samsung_write(samsung_write_t write, samsung_printf_t printf,
79 void *user, struct samsung_firmware_t *fw);
76void samsung_free(struct samsung_firmware_t *fw); 80void samsung_free(struct samsung_firmware_t *fw);
77 81
78#endif /* __SAMSUNG_H__ */ 82#endif /* __SAMSUNG_H__ */