summaryrefslogtreecommitdiff
path: root/media-plugins/imlib2_loaders/files/imlib2_loaders-1.7.1-loader-api.patch
blob: 981b1ce1e9b1b38f1417c71e7e6c7d6129f99499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff '--color=auto' -Naurd imlib2_loaders-1.7.1.orig/src/modules/loaders/loader_common.h imlib2_loaders-1.7.1/src/modules/loaders/loader_common.h
--- imlib2_loaders-1.7.1.orig/src/modules/loaders/loader_common.h	2020-05-21 06:49:09.000000000 +0300
+++ imlib2_loaders-1.7.1/src/modules/loaders/loader_common.h	2021-01-16 15:11:53.229675567 +0300
@@ -4,6 +4,7 @@
 #include "config.h"
 #include "common.h"
 #include "image.h"
+#include "loaders.h"
 
 __EXPORT__ char     load(ImlibImage * im, ImlibProgressFunction progress,
                          char progress_granularity, char load_data);
diff '--color=auto' -Naurd imlib2_loaders-1.7.1.orig/src/modules/loaders/loaders.h imlib2_loaders-1.7.1/src/modules/loaders/loaders.h
--- imlib2_loaders-1.7.1.orig/src/modules/loaders/loaders.h	1970-01-01 03:00:00.000000000 +0300
+++ imlib2_loaders-1.7.1/src/modules/loaders/loaders.h	2020-07-28 21:13:51.000000000 +0300
@@ -0,0 +1,21 @@
+#ifndef __LOADERS
+#define __LOADERS 1
+
+#include "image.h"
+
+struct _imlibloader {
+   char               *file;
+   int                 num_formats;
+   char              **formats;
+   void               *handle;
+   char                (*load)(ImlibImage * im,
+                               ImlibProgressFunction progress,
+                               char progress_granularity, char load_data);
+   char                (*save)(ImlibImage * im,
+                               ImlibProgressFunction progress,
+                               char progress_granularity);
+   ImlibLoader        *next;
+   int                 (*load2)(ImlibImage * im, int load_data);
+};
+
+#endif /* __LOADERS */