summaryrefslogtreecommitdiff
path: root/include/crc_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crc_util.h')
-rw-r--r--include/crc_util.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/crc_util.h b/include/crc_util.h
index 5670cdb..41ffc40 100644
--- a/include/crc_util.h
+++ b/include/crc_util.h
@@ -33,9 +33,24 @@ struct PNG_FILE_STRUCT {
struct PNG_IDAT_FILE_STRUCT png_idat_data;
};
+struct EMBED_THREAD_STRUCT {
+ pthread_mutex_t mutex_lock;
+ pthread_t thread_id;
+ int *searching;
+ unsigned char *data;
+ unsigned int data_len;
+ size_t uncom_data_len;
+ size_t cur_offset;
+ size_t cur_iteration;
+ int width;
+ int color_range;
+ unsigned int win_size;
+ char *message;
+};
+
extern const long png_signature[8];
-int check_header_length(unsigned char *addr, long offset);
+unsigned long check_header_length(unsigned char *addr, long offset);
int check_file_header(char *addr);
int create_cc_file(unsigned char *addr, unsigned long file_length);
unsigned char* file_to_char_array(FILE *in_file, size_t* size);