summaryrefslogtreecommitdiffstats
path: root/utils/samsungtools/samsung.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-06 12:16:57 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-06 12:17:50 +0100
commitfb43a137e72d1f428efef00047a416497463edfb (patch)
tree5d933a0240418967cf85e17da48949d4ec24748b /utils/samsungtools/samsung.h
parent8666e83aaadfa7f334431da697b82963d649acc6 (diff)
downloadrockbox-fb43a137e72d1f428efef00047a416497463edfb.tar.gz
rockbox-fb43a137e72d1f428efef00047a416497463edfb.tar.bz2
rockbox-fb43a137e72d1f428efef00047a416497463edfb.zip
samsungtool: allow firmware creation
The new tool fwcrypt can create a firmware image with a specified model, version, region and so on. Change-Id: I0e90e9ab905398a3e7ae3f4fb8b8bbfb2d12d703
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
SAMSUNG_READ_ERROR = -1,
SAMSUNG_FORMAT_ERROR = -2,
SAMSUNG_MD5_ERROR = -3,
+ SAMSUNG_WRITE_ERROR = -4,
};
typedef int (*samsung_read_t)(void *user, int offset, void *buffer, int size);
+typedef int (*samsung_write_t)(void *user, int offset, void *buffer, int size);
typedef void (*samsung_printf_t)(void *user, bool error, const char *fmt, ...);
struct samsung_firmware_t *samsung_read(samsung_read_t read,
samsung_printf_t printf, void *user, enum samsung_error_t *err);
+enum samsung_error_t samsung_write(samsung_write_t write, samsung_printf_t printf,
+ void *user, struct samsung_firmware_t *fw);
void samsung_free(struct samsung_firmware_t *fw);
#endif /* __SAMSUNG_H__ */