]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/string.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / string.h
index 5d2e778f0dae135608fea994c2d95e220834e975..124cc7edea70e88652266d816f72a23e85ac79c4 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: string.h 4683 2005-09-21 22:17:44Z mike $"
+ * "$Id: string.h 5047 2006-02-02 05:14:15Z mike $"
  *
  *   String definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2005 by Easy Software Products.
+ *   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
@@ -69,6 +69,17 @@ extern "C" {
 #  endif /* __cplusplus */
 
 
+/*
+ * String pool structures...
+ */
+
+typedef struct _cups_sp_item_s         /**** String Pool Item ****/
+{
+  char         *str;                   /* String */
+  unsigned int ref_count;              /* Reference count */
+} _cups_sp_item_t;
+
+
 /*
  * Prototypes...
  */
@@ -114,6 +125,14 @@ extern int _cups_vsnprintf(char *, size_t, const char *, va_list);
 #    define vsnprintf _cups_vsnprintf
 #  endif /* !HAVE_VSNPRINTF */
 
+/*
+ * String pool functions...
+ */
+
+extern char    *_cups_sp_alloc(const char *s);
+extern void    _cups_sp_free(const char *s);
+extern size_t  _cups_sp_statistics(size_t *alloc_bytes, size_t *total_bytes);
+
 
 /*
  * C++ magic...
@@ -126,5 +145,5 @@ extern int  _cups_vsnprintf(char *, size_t, const char *, va_list);
 #endif /* !_CUPS_STRING_H_ */
 
 /*
- * End of "$Id: string.h 4683 2005-09-21 22:17:44Z mike $".
+ * End of "$Id: string.h 5047 2006-02-02 05:14:15Z mike $".
  */