]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/array.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / array.h
diff --git a/cups/array.h b/cups/array.h
new file mode 100644 (file)
index 0000000..1043121
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+ * "$Id: array.h 4921 2006-01-12 21:26:26Z mike $"
+ *
+ *   Sorted array definitions for the Common UNIX Printing System (CUPS).
+ *
+ *   Copyright 1997-2006 by Easy Software Products.
+ *
+ *   These coded instructions, statements, and computer programs are the
+ *   property of Easy Software Products and are protected by Federal
+ *   copyright law.  Distribution and use rights are outlined in the file
+ *   "LICENSE.txt" which should have been included with this file.  If this
+ *   file is missing or damaged please contact Easy Software Products
+ *   at:
+ *
+ *       Attn: CUPS Licensing Information
+ *       Easy Software Products
+ *       44141 Airport View Drive, Suite 204
+ *       Hollywood, Maryland 20636 USA
+ *
+ *       Voice: (301) 373-9600
+ *       EMail: cups-info@cups.org
+ *         WWW: http://www.cups.org
+ *
+ *   This file is subject to the Apple OS-Developed Software exception.
+ */
+
+#ifndef _CUPS_ARRAY_H_
+#  define _CUPS_ARRAY_H_
+
+/*
+ * Include necessary headers...
+ */
+
+#  include <stdlib.h>
+
+
+/*
+ * C++ magic...
+ */
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif /* __cplusplus */
+
+
+/*
+ * Types and structures...
+ */
+
+typedef struct _cups_array_s cups_array_t;
+                                       /**** CUPS array type ****/
+typedef int (*cups_array_func_t)(void *first, void *second, void *data);
+                                       /**** Array comparison function ****/
+
+/*
+ * Functions...
+ */
+
+extern int             cupsArrayAdd(cups_array_t *a, void *e);
+extern void            cupsArrayClear(cups_array_t *a);
+extern int             cupsArrayCount(cups_array_t *a);
+extern void            *cupsArrayCurrent(cups_array_t *a);
+extern void            cupsArrayDelete(cups_array_t *a);
+extern cups_array_t    *cupsArrayDup(cups_array_t *a);
+extern void            *cupsArrayFind(cups_array_t *a, void *e);
+extern void            *cupsArrayFirst(cups_array_t *a);
+extern void            *cupsArrayIndex(cups_array_t *a, int n);
+extern void            *cupsArrayLast(cups_array_t *a);
+extern cups_array_t    *cupsArrayNew(cups_array_func_t f, void *d);
+extern void            *cupsArrayNext(cups_array_t *a);
+extern void            *cupsArrayPrev(cups_array_t *a);
+extern int             cupsArrayRemove(cups_array_t *a, void *e);
+extern void            *cupsArrayRestore(cups_array_t *a);
+extern int             cupsArraySave(cups_array_t *a);
+
+#  ifdef __cplusplus
+}
+#  endif /* __cplusplus */
+#endif /* !_CUPS_ARRAY_H_ */
+
+/*
+ * End of "$Id: array.h 4921 2006-01-12 21:26:26Z mike $".
+ */