diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-10 16:16:31 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-10 16:16:31 +0200 |
commit | d798ba3ec3e2905ef90b72925e3a933209e4da51 (patch) | |
tree | e72e67ef98615587b7d13781d897a12363ffc938 | |
parent | db5fd298c748e237df4f871769108d204671beba (diff) | |
download | xine-lib-d798ba3ec3e2905ef90b72925e3a933209e4da51.tar.gz xine-lib-d798ba3ec3e2905ef90b72925e3a933209e4da51.tar.bz2 |
Reorder fields and make use of bitmask for boolean values.
-rw-r--r-- | src/input/input_http.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/input/input_http.c b/src/input/input_http.c index a5dff4a8a..5673a74b2 100644 --- a/src/input/input_http.c +++ b/src/input/input_http.c @@ -71,7 +71,6 @@ typedef struct { xine_stream_t *stream; - int fh; char *mrl; nbc_t *nbc; @@ -85,26 +84,26 @@ typedef struct { char auth[BUFSIZE]; char proxyauth[BUFSIZE]; + char preview[MAX_PREVIEW_SIZE]; + off_t preview_size; + char *proto; char *user; char *password; char *host; - int port; char *uri; - - char preview[MAX_PREVIEW_SIZE]; - off_t preview_size; - - /* 2 spare bytes here */ + int port; - /* NSV */ - unsigned char is_nsv; /* bool */ + int fh; - /* Last.FM streaming server */ - unsigned char is_lastfm; + /** Set to 1 if the stream is a NSV stream. */ + int is_nsv:1; + /** Set to 1 if the stream comes from last.fm. */ + int is_lastfm:1; + /** Set to 1 if the stream is ShoutCast. */ + int shoutcast_mode:1; /* ShoutCast */ - unsigned char shoutcast_mode; /* bool */ int shoutcast_metaint; off_t shoutcast_pos; char *shoutcast_songtitle; |