]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cgi-bin/cgi.h
Online help fixes.
[thirdparty/cups.git] / cgi-bin / cgi.h
index 9f462dd20614c8f275b9342f3b2599de20b5c107..70a0edca5323c92ccc1ba5f38390b351189984f5 100644 (file)
@@ -1,16 +1,10 @@
 /*
- * "$Id: cgi.h 6649 2007-07-11 21:46:42Z mike $"
+ * CGI support library definitions for CUPS.
  *
- *   CGI support library definitions.
+ * Copyright 2007-2010 by Apple Inc.
+ * Copyright 1997-2006 by Easy Software Products.
  *
- *   Copyright 2007 by Apple Inc.
- *   Copyright 1997-2006 by Easy Software Products.
- *
- *   These coded instructions, statements, and computer programs are the
- *   property of Apple Inc. and are protected by Federal copyright
- *   law.  Distribution and use rights are outlined in the file "LICENSE.txt"
- *   which should have been included with this file.  If this file is
- *   file is missing or damaged, see the license at "http://www.cups.org/".
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
  */
 
 #ifndef _CUPS_CGI_H_
 #  include "help-index.h"
 
 
+/*
+ * C++ magic...
+ */
+
+#  ifdef __cplusplus
+extern "C" {
+#  endif /* __cplusplus */
+
 /*
  * Types...
  */
@@ -54,16 +56,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 char            *cgiFormEncode(char *dst, const char *src, size_t dstsize);
+extern void            cgiEndMultipart(void);
+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);
@@ -72,6 +77,8 @@ extern const char     *cgiGetVariable(const char *name);
 extern int             cgiInitialize(void);
 extern int             cgiIsPOST(void);
 extern void            cgiMoveJobs(http_t *http, const char *dest, int job_id);
+extern void            cgiPrintCommand(http_t *http, const char *dest,
+                                       const char *command, const char *title);
 extern void            cgiPrintTestPage(http_t *http, const char *dest);
 extern char            *cgiRewriteURL(const char *uri, char *url, int urlsize,
                                       const char *newresource);
@@ -91,10 +98,12 @@ extern void         cgiSetVariable(const char *name, const char *value);
 extern void            cgiShowIPPError(const char *message);
 extern void            cgiShowJobs(http_t *http, const char *dest);
 extern void            cgiStartHTML(const char *title);
+extern void            cgiStartMultipart(void);
+extern int             cgiSupportsMultipart(void);
 extern const char      *cgiText(const char *message);
 
-#endif /* !_CUPS_CGI_H_ */
+#  ifdef __cplusplus
+}
+#  endif /* __cplusplus */
 
-/*
- * End of "$Id: cgi.h 6649 2007-07-11 21:46:42Z mike $".
- */
+#endif /* !_CUPS_CGI_H_ */