875fe9f717d3e839f49acdef7bee2a6ea53f9f5b
kent
  Fri Apr 5 02:23:01 2013 -0700
Adding cgiParsedVars - something that makes it easier to use the cgi var parser.
diff --git src/inc/cheapcgi.h src/inc/cheapcgi.h
index e339b86..8042b45 100644
--- src/inc/cheapcgi.h
+++ src/inc/cheapcgi.h
@@ -499,16 +499,31 @@
  * execution.  No effect if state has not yet been initialized. */
 
 void cgiDown(float lines);
 // Drop down a certain number of lines (may be fractional)
 
 char *commonCssStyles();
 /* Returns a string of common CSS styles */
 
 char *javaScriptLiteralEncode(char *inString);
 /* Use backslash escaping on newline
  * and quote chars, backslash and others.
  * Intended that the encoded string will be
  * put between quotes at a higher level and
  * then interpreted by Javascript. */
 
+struct cgiParsedVars
+/* A parsed out cgi variable string */
+    {
+    struct tagsFromCgi *next;	/* In case want to make a list of these. */
+    char *stringBuf;		/* Holds strings inside vars. */
+    struct cgiVar *list;    /* List of variables. */
+    struct hash *hash;	    /* Keyed by varName, value is just value, not cgiVar. */
+    };
+
+struct cgiParsedVars *cgiParsedVarsNew(char *cgiString);
+/* Build structure containing parsed out cgiString */
+
+void cgiParsedVarsFree(struct cgiParsedVars **pTags);
+/* Free up memory associated with cgiParsedVars */
+
 #endif /* CHEAPCGI_H */