aboutsummaryrefslogtreecommitdiff
path: root/src/http_Content.h
diff options
context:
space:
mode:
authorgoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-17 13:02:27 +0000
committergoodale <goodale@1faa4e14-9dd3-4be0-9f0e-ffe519881164>2000-09-17 13:02:27 +0000
commit3911e5fe8ce0a87db2fbab4795bc03da5fe12556 (patch)
tree711e9c631912ef46c48cea3d0025770758726bc8 /src/http_Content.h
parent820f6dc61d99821a1e0b1abeb2910bc384869603 (diff)
Added authentification for setting parameters and a control page.
Unless one has previously authenticated by going to /control.html all paramters are read only. The default username and password are both "anon". I also added a hack so these don't get displayed on the web page - this should go away when we have parameter tags. Added http_Content.h which currently contains a function for registering a link to be displayed elsewhere. It takes the URL, the link name, a longer description line, and a flag. Currently the flag should be set to HTTP_QUICKLINK to get things displayed on the quicklinks on some pages. Still need to add a function which will allow other thorns access to this data. Tom git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@35 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/http_Content.h')
-rw-r--r--src/http_Content.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/http_Content.h b/src/http_Content.h
new file mode 100644
index 0000000..c0a620e
--- /dev/null
+++ b/src/http_Content.h
@@ -0,0 +1,30 @@
+ /*@@
+ @header http_Content.h
+ @date Sun Sep 17 14:19:23 2000
+ @author Tom Goodale
+ @desc
+ Routines exported by the Content stuff.
+ @enddesc
+ @version $Header$
+ @@*/
+
+#ifndef __HTTP_CONTENT_H__
+#define __HTTP_CONTENT_H__ 1
+
+#define HTTP_QUICKLINK 1
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+int HTTP_ContentLink(const char *URL,
+ const char *name,
+ const char *description,
+ int flags);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __HTTP_CONENT_H__ */