r6998: - added support for application[] data, which is global to all clients using...
[samba.git] / source4 / web_server / esp / esp.h
index 5d343db96ef829e465fc2f3a845bd6cc7b701409..9e58bdf066fd0f508ad376c276cdad77a485c394 100644 (file)
@@ -96,13 +96,13 @@ typedef struct Esp {
        int             maxScriptSize;
        void    (*createSession)(EspHandle handle, int timeout);
        void    (*destroySession)(EspHandle handle);
-       char    *(*getSessionId)(EspHandle handle);
+       const char *(*getSessionId)(EspHandle handle);
        int             (*mapToStorage)(EspHandle handle, char *path, int len, const char *uri,
                                int flags);
        int             (*readFile)(EspHandle handle, char **buf, int *len, const char *path);
        void    (*redirect)(EspHandle handle, int code, char *url);
-       void    (*setCookie)(EspHandle handle, char *name, char *value, 
-                               int lifetime, char *path, bool secure);
+       void    (*setCookie)(EspHandle handle, const char *name, const char *value, 
+                               int lifetime, const char *path, bool secure);
        void    (*setHeader)(EspHandle handle, const char *value, bool allowMultiple);
        void    (*setResponseCode)(EspHandle handle, int code);
        int             (*writeBlock)(EspHandle handle, char *buf, int size);