|
xine-lib
1.2.9
|
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <fcntl.h>#include <string.h>#include <ctype.h>#include <errno.h>#include <sys/time.h>#include <xine/xine_internal.h>#include <xine/xineutils.h>#include <xine/input_plugin.h>#include "net_buf_ctrl.h"#include "group_network.h"#include "http_helper.h"Data Structures | |
| struct | http_input_plugin_t |
| struct | http_input_class_t |
Macros | |
| #define | LOG_MODULE "input_http" |
| #define | LOG_VERBOSE |
| #define | BUFSIZE 1024 |
| #define | DEFAULT_HTTP_PORT 80 |
| #define | TAG_ICY_NAME "icy-name:" |
| #define | TAG_ICY_GENRE "icy-genre:" |
| #define | TAG_ICY_NOTICE1 "icy-notice1:" |
| #define | TAG_ICY_NOTICE2 "icy-notice2:" |
| #define | TAG_ICY_METAINT "icy-metaint:" |
| #define | TAG_CONTENT_TYPE "Content-Type:" |
| #define | TAG_LASTFM_SERVER "Server: last.fm " |
Functions | |
| static void | proxy_host_change_cb (void *this_gen, xine_cfg_entry_t *cfg) |
| static void | proxy_port_change_cb (void *this_gen, xine_cfg_entry_t *cfg) |
| static void | proxy_user_change_cb (void *this_gen, xine_cfg_entry_t *cfg) |
| static void | proxy_password_change_cb (void *this_gen, xine_cfg_entry_t *cfg) |
| static void | no_proxy_list_change_cb (void *this_gen, xine_cfg_entry_t *cfg) |
| static int | _x_use_proxy (http_input_class_t *this, const char *host) |
| static void | http_plugin_basicauth (const char *user, const char *password, char **dest) |
| static int | http_plugin_read_metainf (http_input_plugin_t *this) |
| static off_t | http_plugin_read_int (http_input_plugin_t *this, char *buf, off_t total) |
| static off_t | http_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t nlen) |
| static int | resync_nsv (http_input_plugin_t *this) |
| static buf_element_t * | http_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo) |
| static off_t | http_plugin_get_length (input_plugin_t *this_gen) |
| static uint32_t | http_plugin_get_capabilities (input_plugin_t *this_gen) |
| static uint32_t | http_plugin_get_blocksize (input_plugin_t *this_gen) |
| static off_t | http_plugin_get_current_pos (input_plugin_t *this_gen) |
| static off_t | http_plugin_seek (input_plugin_t *this_gen, off_t offset, int origin) |
| static const char * | http_plugin_get_mrl (input_plugin_t *this_gen) |
| static int | http_plugin_get_optional_data (input_plugin_t *this_gen, void *const data, int data_type) |
| static void | http_plugin_dispose (input_plugin_t *this_gen) |
| static void | report_progress (xine_stream_t *stream, int p) |
| static int | http_plugin_open (input_plugin_t *this_gen) |
| static input_plugin_t * | http_class_get_instance (input_class_t *cls_gen, xine_stream_t *stream, const char *mrl) |
| static void | http_class_dispose (input_class_t *this_gen) |
| void * | input_http_init_class (xine_t *xine, void *data) |
| #define BUFSIZE 1024 |
Referenced by http_plugin_open(), and http_plugin_seek().
| #define DEFAULT_HTTP_PORT 80 |
Referenced by http_plugin_open(), and input_http_init_class().
| #define LOG_MODULE "input_http" |
| #define LOG_VERBOSE |
| #define TAG_CONTENT_TYPE "Content-Type:" |
Referenced by http_plugin_open().
| #define TAG_ICY_GENRE "icy-genre:" |
Referenced by http_plugin_open().
| #define TAG_ICY_METAINT "icy-metaint:" |
Referenced by http_plugin_open().
| #define TAG_ICY_NAME "icy-name:" |
Referenced by http_plugin_open().
| #define TAG_ICY_NOTICE1 "icy-notice1:" |
| #define TAG_ICY_NOTICE2 "icy-notice2:" |
Referenced by http_plugin_open().
| #define TAG_LASTFM_SERVER "Server: last.fm " |
Referenced by http_plugin_open().
|
static |
References _, lprintf, NULL, xine_log(), and XINE_LOG_MSG.
Referenced by http_plugin_open().
|
static |
References _x_freep(), and config_values_s::unregister_callback.
Referenced by input_http_init_class().
|
static |
References _x_asprintf(), _x_url_user_agent(), http_plugin_dispose(), http_plugin_get_blocksize(), http_plugin_get_capabilities(), http_plugin_get_current_pos(), http_plugin_get_length(), http_plugin_get_mrl(), http_plugin_get_optional_data(), http_plugin_open(), http_plugin_read(), http_plugin_read_block(), http_plugin_seek(), nbc_init(), and NULL.
Referenced by input_http_init_class().
|
static |
References xine_base64_encode().
Referenced by http_plugin_open().
|
static |
References _x_freep(), nbc_close(), and NULL.
Referenced by http_class_get_instance().
|
static |
Referenced by http_class_get_instance().
|
static |
References INPUT_CAP_PREVIEW, and INPUT_CAP_RIP_FORBIDDEN.
Referenced by http_class_get_instance().
|
static |
Referenced by http_class_get_instance().
|
static |
Referenced by http_class_get_instance().
|
static |
Referenced by http_class_get_instance().
|
static |
|
static |
References _, _x_canonicalise_url(), _x_io_select(), _x_io_tcp_connect(), _x_io_tcp_read(), _x_io_tcp_write(), _x_message(), _x_meta_info_set(), _x_parse_url(), _x_use_proxy(), BUFSIZE, DEFAULT_HTTP_PORT, http_plugin_basicauth(), http_plugin_read_int(), http_input_class_t::input_class, lprintf, MAX_PREVIEW_SIZE, NULL, xine_cfg_entry_s::num_value, http_input_class_t::proxyhost, http_input_class_t::proxypassword, http_input_class_t::proxyport, http_input_class_t::proxyuser, report_progress(), resync_nsv(), TAG_CONTENT_TYPE, TAG_ICY_GENRE, TAG_ICY_METAINT, TAG_ICY_NAME, TAG_ICY_NOTICE2, TAG_LASTFM_SERVER, VERSION, http_input_class_t::xine, xine_config_lookup_entry(), xine_log(), XINE_LOG_MSG, XINE_META_INFO_ALBUM, XINE_META_INFO_COMMENT, XINE_META_INFO_GENRE, XINE_META_INFO_TITLE, XINE_MSG_AUTHENTICATION_NEEDED, XINE_MSG_CONNECTION_REFUSED, XINE_MSG_FILE_NOT_FOUND, XINE_MSG_GENERAL_WARNING, XINE_MSG_NETWORK_UNREACHABLE, XINE_MSG_PERMISSION_ERROR, XINE_VERBOSITY_DEBUG, XIO_READY, XIO_TIMEOUT, XIO_WRITE_READY, and xprintf.
Referenced by http_class_get_instance().
|
static |
References http_plugin_read_int(), lprintf, and read_bytes().
Referenced by http_class_get_instance(), and http_plugin_read_block().
|
static |
|
static |
References _, _x_action_pending(), _x_io_tcp_read(), _x_message(), http_plugin_read_metainf(), lprintf, NULL, read_bytes(), xine_event_t::type, xine_event_send(), XINE_EVENT_UI_CHANNELS_CHANGED, xine_log(), XINE_LOG_MSG, and XINE_MSG_READ_ERROR.
Referenced by http_plugin_open(), http_plugin_read(), and resync_nsv().
|
static |
References _x_io_tcp_read(), _x_meta_info_get(), _x_meta_info_set(), xine_event_t::data, xine_event_t::data_length, lprintf, xine_ui_data_t::str, xine_ui_data_t::str_len, xine_event_t::stream, xine_event_t::type, xine_event_send(), XINE_EVENT_UI_SET_TITLE, XINE_META_INFO_ALBUM, and XINE_META_INFO_TITLE.
Referenced by http_plugin_read_int().
|
static |
References BUFSIZE, input_plugin_s::read, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by http_class_get_instance().
| void* input_http_init_class | ( | xine_t * | xine, |
| void * | data | ||
| ) |
References _, xine_s::config, DEFAULT_HTTP_PORT, http_class_dispose(), http_class_get_instance(), N_, no_proxy_list_change_cb(), NULL, proxy_host_change_cb(), proxy_password_change_cb(), proxy_port_change_cb(), proxy_user_change_cb(), config_values_s::register_num, config_values_s::register_string, config_values_s::update_num, and config_values_s::update_string.
|
static |
References xine_cfg_entry_s::str_value.
Referenced by input_http_init_class().
|
static |
References xine_cfg_entry_s::str_value.
Referenced by input_http_init_class().
|
static |
References xine_cfg_entry_s::str_value.
Referenced by input_http_init_class().
|
static |
References xine_cfg_entry_s::num_value.
Referenced by input_http_init_class().
|
static |
References xine_cfg_entry_s::str_value.
Referenced by input_http_init_class().
|
static |
References _, xine_progress_data_t::description, xine_progress_data_t::percent, XINE_EVENT_PROGRESS, and xine_event_send().
Referenced by http_plugin_open().
|
static |
References http_plugin_read_int(), lprintf, read_bytes(), XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by http_plugin_open().
1.8.14