| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | #ifndef _IOT_ROCK_IPL_H_
|
| 2 | #define _IOT_ROCK_IPL_H_
|
| 3 |
|
| 4 | void rock_trace(void* ctx, const char* fmt, ...);
|
| 5 | void rock_progress(void* ctx, int percent);
|
| 6 | int rock_read_block(void* ctx, unsigned char* dest, unsigned int start, unsigned int size);
|
| 7 | int rock_read_delta(void* ctx, unsigned char* dest, unsigned int offset, unsigned int size);
|
| 8 | int rock_write_block(void* ctx, unsigned char* src, unsigned int start, unsigned int size);
|
| 9 | int rock_process_block(void* ctx, unsigned char* data, unsigned int start, unsigned int size);
|
| 10 | int rock_get_blocksize(void* ctx);
|
| 11 |
|
| 12 | int rock_read_file(void* ctx, void* name, unsigned char* dest, unsigned int offset, unsigned int size);
|
| 13 | int rock_write_file(void* ctx, void* name, unsigned char* src, unsigned int offset, unsigned int size);
|
| 14 |
|
| 15 | int rock_delete_file(void* ctx, void* name);
|
| 16 |
|
| 17 | int rock_fatal(void* ctx, int error_code);
|
| 18 |
|
| 19 | int rock_mismatch(void* ctx, unsigned char* buf, unsigned int start, unsigned int size,
|
| 20 | unsigned int source_hash,unsigned int target_hash);
|
| 21 | #endif
|
| 22 |
|