From 73506bb7c0bd3fd267017e19a9e8e85303582b8d Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sat, 1 Jul 2023 22:40:20 +0300 Subject: [PATCH] update ops for jpeg_data_t. --- include/exijpeg.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/exijpeg.h b/include/exijpeg.h index f74ca14..4bdf326 100644 --- a/include/exijpeg.h +++ b/include/exijpeg.h @@ -50,6 +50,13 @@ exijpeg_data_t *exijpeg_data_alloc(void); void exijpeg_data_free(exijpeg_data_t *); +/* adds a segment to jpeg_data_t */ int exijpeg_data_add_segment(exijpeg_data_t *, unsigned char *, unsigned long); +/* loads a file to jpeg structure */ +int exijpeg_data_loadfile(exijpeg_data_t *, const char *); + +/* release any resources allocated from the system during open file proc */ +int exijpeg_data_release(exijpeg_data_t *); + #endif