]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/array.c
Load cups into easysw/current.
[thirdparty/cups.git] / cups / array.c
index 65003b8aaef9c2c8a58e3b60350ef46835c43c05..f301b5c2458060153bcf0518c2be7ba36621a693 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: array.c 5119 2006-02-16 15:52:06Z mike $"
+ * "$Id: array.c 5258 2006-03-09 15:40:56Z mike $"
  *
  *   Sorted array routines for the Common UNIX Printing System (CUPS).
  *
  *
  * Contents:
  *
- *   cupsArrayAdd()     - Add an element to the array.
- *   cupsArrayClear()   - Clear the array.
- *   cupsArrayCount()   - Get the number of elements in the array.
- *   cupsArrayCurrent() - Return the current element in the array.
- *   cupsArrayDelete()  - Free all memory used by the array.
- *   cupsArrayDup()     - Duplicate the array.
- *   cupsArrayFind()    - Find an element in the array.
- *   cupsArrayFirst()   - Get the first element in the array.
- *   cupsArrayIndex()   - Get the N-th element in the array.
- *   cupsArrayInsert()  - Insert an element in the array.
- *   cupsArrayLast()    - Get the last element in the array.
- *   cupsArrayNew()     - Create a new array.
- *   cupsArrayNext()    - Get the next element in the array.
- *   cupsArrayPrev()    - Get the previous element in the array.
- *   cupsArrayRemove()  - Remove an element from the array.
- *   cupsArrayRestore() - Reset the current element to the last cupsArraySave.
- *   cupsArraySave()    - Mark the current element for a later cupsArrayRestore.
- *   cups_array_find()  - Find an element in the array...
+ *   cupsArrayAdd()      - Add an element to the array.
+ *   cupsArrayClear()    - Clear the array.
+ *   cupsArrayCount()    - Get the number of elements in the array.
+ *   cupsArrayCurrent()  - Return the current element in the array.
+ *   cupsArrayDelete()   - Free all memory used by the array.
+ *   cupsArrayDup()      - Duplicate the array.
+ *   cupsArrayFind()     - Find an element in the array.
+ *   cupsArrayFirst()    - Get the first element in the array.
+ *   cupsArrayIndex()    - Get the N-th element in the array.
+ *   cupsArrayInsert()   - Insert an element in the array.
+ *   cupsArrayLast()     - Get the last element in the array.
+ *   cupsArrayNew()      - Create a new array.
+ *   cupsArrayNext()     - Get the next element in the array.
+ *   cupsArrayPrev()     - Get the previous element in the array.
+ *   cupsArrayRemove()   - Remove an element from the array.
+ *   cupsArrayRestore()  - Reset the current element to the last cupsArraySave.
+ *   cupsArraySave()     - Mark the current element for a later
+ *                         cupsArrayRestore.
+ *   cupsArrayUserData() - Return the user data for an array.
+ *   cups_array_add()    - Insert or append an element to the array...
+ *   cups_array_find()   - Find an element in the array...
  */
 
 /*
@@ -638,6 +641,20 @@ cupsArraySave(cups_array_t *a)             /* I - Array */
 }
 
 
+/*
+ * 'cupsArrayUserData()' - Return the user data for an array.
+ */
+
+void *                                 /* O - User data */
+cupsArrayUserData(cups_array_t *a)     /* I - Array */
+{
+  if (a)
+    return (a->data);
+  else
+    return (NULL);
+}
+
+
 /*
  * 'cups_array_add()' - Insert or append an element to the array...
  */
@@ -942,5 +959,5 @@ cups_array_find(cups_array_t *a,    /* I - Array */
 
 
 /*
- * End of "$Id: array.c 5119 2006-02-16 15:52:06Z mike $".
+ * End of "$Id: array.c 5258 2006-03-09 15:40:56Z mike $".
  */