Added getter for arbitrary environment variables
[strongswan.git] / src / libfast / request.h
index 9ca74a9..c9c1f13 100644 (file)
@@ -86,6 +86,14 @@ struct request_t {
        char* (*get_query_data)(request_t *this, char *name);
 
        /**
+        * Get an arbitrary environment variable.
+        *
+        * @param name          name of the environment variable
+        * @return                      value, NULL if not found
+        */
+       char* (*get_env_var)(request_t *this, char *name);
+
+       /**
         * Read raw POST/PUT data from HTTP request.
         *
         * @param buf           buffer to read data into