diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2016-01-15 16:16:10 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2016-01-15 16:16:10 +0000 |
commit | 58fe28b650dfcdd3efe78fb0559cab5b7e811bb5 (patch) | |
tree | 73d290727b720e39b36c8165e1ea9202374726f3 /src/loader.h | |
parent | efa33ab844a09f05907a5de2d66ed7331c4f8ec9 (diff) | |
parent | 1ae8a7fe6030771352e347e7564639ea181802ba (diff) | |
download | imv-58fe28b650dfcdd3efe78fb0559cab5b7e811bb5.tar.gz |
Merge pull request #76 from czarkoff/loader
Loading image data from standard input
Diffstat (limited to 'src/loader.h')
-rw-r--r-- | src/loader.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/loader.h b/src/loader.h index 65c8689..6e20349 100644 --- a/src/loader.h +++ b/src/loader.h @@ -28,6 +28,9 @@ struct imv_loader { pthread_mutex_t lock; pthread_t bg_thread; char *path; + BYTE *buffer; + size_t buffer_size; + FIMEMORY *fi_buffer; FIBITMAP *out_bmp; int out_is_new_image; char *out_err; @@ -48,7 +51,8 @@ void imv_init_loader(struct imv_loader *img); void imv_destroy_loader(struct imv_loader *img); /* Asynchronously load the given file */ -void imv_loader_load_path(struct imv_loader *ldr, const char *path); +void imv_loader_load(struct imv_loader *ldr, const char *path, + const void *buffer, const size_t buffer_size); /* Returns 1 if image data is available. 0 if not. Caller is responsible for * cleaning up the data returned. Each image is only returned once. |