aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pillow/py3/libImaging/QuantHeap.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/Pillow/py3/libImaging/QuantHeap.h')
-rw-r--r--contrib/python/Pillow/py3/libImaging/QuantHeap.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/python/Pillow/py3/libImaging/QuantHeap.h b/contrib/python/Pillow/py3/libImaging/QuantHeap.h
new file mode 100644
index 0000000000..c5286dff2b
--- /dev/null
+++ b/contrib/python/Pillow/py3/libImaging/QuantHeap.h
@@ -0,0 +1,31 @@
+/*
+ * The Python Imaging Library
+ * $Id$
+ *
+ * image quantizer
+ *
+ * Written by Toby J Sargeant <tjs@longford.cs.monash.edu.au>.
+ *
+ * See the README file for information on usage and redistribution.
+ */
+
+#ifndef __QUANTHEAP_H__
+#define __QUANTHEAP_H__
+
+#include "QuantTypes.h"
+
+typedef struct _Heap Heap;
+
+typedef int (*HeapCmpFunc)(const Heap *, const void *, const void *);
+
+void
+ImagingQuantHeapFree(Heap *);
+int
+ImagingQuantHeapRemove(Heap *, void **);
+int
+ImagingQuantHeapAdd(Heap *, void *);
+int
+ImagingQuantHeapTop(Heap *, void **);
+Heap *ImagingQuantHeapNew(HeapCmpFunc);
+
+#endif // __QUANTHEAP_H__