mod_musicindex  1.4.1
http.h File Reference
#include "mod_musicindex.h"

Go to the source code of this file.

Functions

void treat_get_args (request_rec *r)
 Treats the GET arguments.
void treat_post_args (request_rec *r)
 Treats the POST arguments.
void cookie_and_stream_work (request_rec *r)

Function Documentation

void treat_get_args ( request_rec *  r)

Treats the GET arguments.

This function searches for keywords passed as URL arguments (with "?xxx") and sets the handler options accordingly.

Parameters
rApache request_rec struct to handle connection details.

Definition at line 75 of file http.c.

References mu_config::custom_list, MI_ALLOWSTREAM, MI_ALLOWTARBALL, MI_DWNLDALL, MI_PODCAST, MI_QUICKPL, MI_RANDOMDIR, MI_RECURSIVE, MI_RSS, MI_STREAMALL, musicindex_module, mu_config::options, mu_config::order, mu_config::rss_items, SB_DEFAULT, SB_DIR, SB_MAX, SB_MTIME, SB_RANDOM, and SB_URI.

Referenced by handle_musicindex().

void treat_post_args ( request_rec *  r)

Treats the POST arguments.

This function searches for keywords in arguments sent in a POST request. It only sets option flags and the search string when they are needed.

Warning
This function is fairly inefficient as-is. It does a lot of useless checks and string comparisons, because it will only deal with 1 action at a time, so as soon as we have one hit, we could give up. We could add 'return's everywhere but it's pretty ugly as well.
Parameters
rApache request_rec struct to handle connection details.

Definition at line 170 of file http.c.

References apr_pstrcat, apr_pstrdup, mu_config::cache, mu_config::custom_list, MAX_STRING, MI_ALLOWSEARCH, MI_ALLOWSTREAM, MI_ALLOWTARBALL, MI_COOKIEADDALL, MI_COOKIEADDLST, MI_COOKIEDELLST, MI_COOKIEDWNLD, MI_COOKIEOP, MI_COOKIEPURGE, MI_COOKIESTREAM, MI_DWNLDALL, MI_DWNLDLST, MI_QUICKPL, MI_RECURSIVE, MI_STREAMALL, MI_STREAMLST, musicindex_module, mu_config::options, mu_config::order, SB_DEFAULT, SB_DIR, SB_MAX, SB_RANDOM, SB_URI, and mu_config::search.

Referenced by handle_musicindex().