/*
- * "$Id: array.h 6123 2006-11-21 15:36:04Z mike $"
+ * "$Id: array.h 6477 2007-04-25 19:55:45Z mike $"
*
* Sorted array definitions for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2006 by Easy Software Products.
+ * Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
/**** CUPS array type ****/
typedef int (*cups_array_func_t)(void *first, void *second, void *data);
/**** Array comparison function ****/
+typedef int (*cups_ahash_func_t)(void *element, void *data);
+ /**** Array hash function ****/
+
/*
* Functions...
extern int cupsArrayInsert(cups_array_t *a, void *e);
extern void *cupsArrayLast(cups_array_t *a);
extern cups_array_t *cupsArrayNew(cups_array_func_t f, void *d);
+extern cups_array_t *cupsArrayNew2(cups_array_func_t f, void *d,
+ cups_ahash_func_t h, int hsize);
extern void *cupsArrayNext(cups_array_t *a);
extern void *cupsArrayPrev(cups_array_t *a);
extern int cupsArrayRemove(cups_array_t *a, void *e);
#endif /* !_CUPS_ARRAY_H_ */
/*
- * End of "$Id: array.h 6123 2006-11-21 15:36:04Z mike $".
+ * End of "$Id: array.h 6477 2007-04-25 19:55:45Z mike $".
*/