]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cgi-bin/cgi.h
Add PPD test.
[thirdparty/cups.git] / cgi-bin / cgi.h
index 5546d7ac5c12c3c3e7973987c91875f3ea45af22..61eb7fc754918032c50e1a172760415803f9c6b6 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: cgi.h 6649 2007-07-11 21:46:42Z mike $"
+ * "$Id$"
  *
- *   CGI support library definitions.
+ *   CGI support library definitions for CUPS.
  *
- *   Copyright 2007-2009 by Apple Inc.
+ *   Copyright 2007-2010 by Apple Inc.
  *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
 #  include "help-index.h"
 
 
+/*
+ * C++ magic...
+ */
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif /* __cplusplus */
+
 /*
  * Types...
  */
@@ -54,17 +62,19 @@ typedef struct cgi_file_s           /**** Uploaded file data ****/
 extern void            cgiAbort(const char *title, const char *stylesheet,
                                 const char *format, ...);
 extern int             cgiCheckVariables(const char *names);
+extern void            cgiClearVariables(void);
 extern void            *cgiCompileSearch(const char *query);
 extern void            cgiCopyTemplateFile(FILE *out, const char *tmpl);
 extern void            cgiCopyTemplateLang(const char *tmpl);
 extern int             cgiDoSearch(void *search, const char *text);
 extern void            cgiEndHTML(void);
 extern void            cgiEndMultipart(void);
-extern char            *cgiFormEncode(char *dst, const char *src, size_t dstsize);
+extern char            *cgiFormEncode(char *dst, const char *src,
+                                      size_t dstsize);
 extern void            cgiFreeSearch(void *search);
 extern const char      *cgiGetArray(const char *name, int element);
 extern void            cgiGetAttributes(ipp_t *request, const char *tmpl);
-extern char            *cgiGetCookie(const char *name, char *buf, int buflen);
+extern const char      *cgiGetCookie(const char *name);
 extern const cgi_file_t        *cgiGetFile(void);
 extern cups_array_t    *cgiGetIPPObjects(ipp_t *response, void *search);
 extern int             cgiGetSize(const char *name);
@@ -98,8 +108,12 @@ extern void         cgiStartMultipart(void);
 extern int             cgiSupportsMultipart(void);
 extern const char      *cgiText(const char *message);
 
+#  ifdef __cplusplus
+}
+#  endif /* __cplusplus */
+
 #endif /* !_CUPS_CGI_H_ */
 
 /*
- * End of "$Id: cgi.h 6649 2007-07-11 21:46:42Z mike $".
+ * End of "$Id$".
  */