Move function prototype to patch.c

This commit is contained in:
twinaphex 2016-02-07 01:46:20 +01:00
parent d9b3412922
commit 0e89523fa8
2 changed files with 3 additions and 3 deletions

View File

@ -52,6 +52,9 @@ struct bps_data
size_t source_relative_offset, target_relative_offset, output_offset;
};
typedef patch_error_t (*patch_func_t)(const uint8_t*, size_t,
const uint8_t*, size_t, uint8_t*, size_t*);
static uint8_t bps_read(struct bps_data *bps)
{
uint8_t data = bps->modify_data[bps->modify_offset++];

View File

@ -39,9 +39,6 @@ typedef enum
PATCH_PATCH_CHECKSUM_INVALID
} patch_error_t;
typedef patch_error_t (*patch_func_t)(const uint8_t*, size_t,
const uint8_t*, size_t, uint8_t*, size_t*);
/**
* patch_content:
* @buf : buffer of the content file.