diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-23 20:13:14 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-12-23 20:13:14 +0000 |
commit | 80ec40c8fb0aff8b19cfbb76045fb20f7e0ef024 (patch) | |
tree | e676ee2c3ffe1fb8682681fdc7a33bdc181c6406 /include | |
parent | 67180e39b0537df772143d277b54d295b6d67f9e (diff) |
- Convert the list of URI handlers to use the linked list macros. While doing
this, implementing locking of this list to make it thread-safe.
- Add a "redirect" option to http.conf that allows redirecting one URI to
another. I was inspired to do this while playing with the Asterisk GUI. I
got tired of typing this URL to get to the GUI:
http://localhost:8088/asterisk/static/config/cfgadvanced.html
So, now I have the following line in http.conf:
redirect=/=/asterisk/static/config/cfgadvanced.html
Now, I can type the following into my browser and go to the GUI:
http://localhost:8088
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/http.h b/include/asterisk/http.h index c3e2ba0fa..a48883931 100644 --- a/include/asterisk/http.h +++ b/include/asterisk/http.h @@ -147,7 +147,7 @@ int ssl_setup(struct tls_config *cfg); typedef struct ast_str *(*ast_http_callback)(struct sockaddr_in *requestor, const char *uri, struct ast_variable *params, int *status, char **title, int *contentlength); struct ast_http_uri { - struct ast_http_uri *next; + AST_LIST_ENTRY(ast_http_uri) entry; const char *description; const char *uri; int has_subtree; |