X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=blobdiff_plain;f=cups%2Farray.h;h=47d28b93089f60c31dce984665cb7b96577d3f32;hp=6756a100a349b3aff3e5c0919941dcfff906f8b5;hb=b94498cfba64422f0f21181b0c51cc0bed7c7d92;hpb=323c5de1e804061e344172cc9a9551bb0ee71005 diff --git a/cups/array.h b/cups/array.h index 6756a100a..47d28b930 100644 --- a/cups/array.h +++ b/cups/array.h @@ -1,9 +1,9 @@ /* - * "$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 @@ -51,6 +51,9 @@ 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 ****/ +typedef int (*cups_ahash_func_t)(void *element, void *data); + /**** Array hash function ****/ + /* * Functions... @@ -70,6 +73,8 @@ extern void *cupsArrayIndex(cups_array_t *a, int n); 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); @@ -83,5 +88,5 @@ extern void *cupsArrayUserData(cups_array_t *a); #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 $". */