aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/http.h
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-03 18:38:28 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-03 18:38:28 +0000
commit22b2e50bf4ef72ec04bd56c86fd29219cf42fce2 (patch)
treeafb4584869389fffd0515f15a9323ea83c40b2cd /include/asterisk/http.h
parentc73aef25da863bbf6806117358870aefdcf19369 (diff)
- Doxygen additions
- Formatting fixes (read guidelines :-) ) - Removing compilation warnings git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17105 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/http.h')
-rw-r--r--include/asterisk/http.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/include/asterisk/http.h b/include/asterisk/http.h
index 9156db0c4..055116324 100644
--- a/include/asterisk/http.h
+++ b/include/asterisk/http.h
@@ -16,10 +16,6 @@
* at the top of the source tree.
*/
-/*
- * DNS SRV record support
- */
-
#ifndef _ASTERISK_HTTP_H
#define _ASTERISK_HTTP_H
@@ -30,9 +26,10 @@
\brief Support for Private Asterisk HTTP Servers.
\note Note: The Asterisk HTTP servers are extremely simple and minimal and
only support the "GET" method.
+ \author Mark Spencer <markster@digium.com>
*/
-/* HTTP Callbacks take the socket, the method and the path as arguments and should
+/*! \brief HTTP Callbacks take the socket, the method and the path as arguments and should
return the content, allocated with malloc(). Status should be changed to reflect
the status of the request if it isn't 200 and title may be set to a malloc()'d string
to an appropriate title for non-200 responses. Content length may also be specified.
@@ -49,16 +46,16 @@ struct ast_http_uri {
ast_http_callback callback;
};
-/* Link into the Asterisk HTTP server */
+/*! \brief Link into the Asterisk HTTP server */
int ast_http_uri_link(struct ast_http_uri *urihandler);
-/* Return a malloc()'d string containing an HTTP error message */
+/*! \brief Return a malloc()'d string containing an HTTP error message */
char *ast_http_error(int status, const char *title, const char *extra_header, const char *text);
-/* Destroy an HTTP server */
+/*! \brief Destroy an HTTP server */
void ast_http_uri_unlink(struct ast_http_uri *urihandler);
-char *ast_http_setcookie(const char *var, const char *val, int expires, char *buf, int buflen);
+char *ast_http_setcookie(const char *var, const char *val, int expires, char *buf, size_t buflen);
int ast_http_init(void);
int ast_http_reload(void);