mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-09-29 04:25:55 -04:00
80078cce1d
You can now use the Shoutcast DSP as a source client. The connection protocol is a bit odd, and we had to handle it separately, and thus we've added a new config option (<shoutcast-compat>) that is set at the listener port level. * support for NSV (and the nsvscsrc source client). After adding support for the connection protocol of the shoutcast DSP, adding NSV was just a simple of a few special handling cases. * removed all traces of the earlier attempt at the shoutcast DSP connection protocol * Due to the growing complexity of the config files, I've also created a few alternate config files, namely one for a "shoutcast compat" setup as well as a "minimal" one for quick basic configurations. svn path=/icecast/trunk/icecast/; revision=8191
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/* Icecast
|
|
*
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
* A copy of this license is included with this source.
|
|
*
|
|
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
|
|
* Michael Smith <msmith@xiph.org>,
|
|
* oddsock <oddsock@xiph.org>,
|
|
* Karl Heyes <karl@xiph.org>
|
|
* and others (see AUTHORS for details).
|
|
*/
|
|
|
|
#ifndef __UTIL_H__
|
|
#define __UTIL_H__
|
|
|
|
#define XSLT_CONTENT 1
|
|
#define HTML_CONTENT 2
|
|
|
|
#define READ_ENTIRE_HEADER 1
|
|
#define READ_LINE 0
|
|
|
|
int util_timed_wait_for_fd(int fd, int timeout);
|
|
int util_read_header(int sock, char *buff, unsigned long len, int entire);
|
|
int util_check_valid_extension(char *uri);
|
|
char *util_get_extension(char *path);
|
|
char *util_get_path_from_uri(char *uri);
|
|
char *util_get_path_from_normalised_uri(char *uri);
|
|
char *util_normalise_uri(char *uri);
|
|
char *util_base64_encode(char *data);
|
|
char *util_base64_decode(unsigned char *input);
|
|
char *util_bin_to_hex(unsigned char *data, int len);
|
|
|
|
char *util_url_unescape(char *src);
|
|
char *util_url_escape(char *src);
|
|
|
|
/* String dictionary type, without support for NULL keys, or multiple
|
|
* instances of the same key */
|
|
typedef struct _util_dict {
|
|
char *key;
|
|
char *val;
|
|
struct _util_dict *next;
|
|
} util_dict;
|
|
|
|
util_dict *util_dict_new(void);
|
|
void util_dict_free(util_dict *dict);
|
|
/* dict, key must not be NULL. */
|
|
int util_dict_set(util_dict *dict, const char *key, const char *val);
|
|
const char *util_dict_get(util_dict *dict, const char *key);
|
|
char *util_dict_urlencode(util_dict *dict, char delim);
|
|
|
|
#ifndef HAVE_LOCALTIME_R
|
|
struct tm *localtime_r (const time_t *timep, struct tm *result);
|
|
#endif
|
|
|
|
#endif /* __UTIL_H__ */
|