XMMS2

src/include/xmms/xmms_streamtype.h

Go to the documentation of this file.
00001 /*  XMMS2 - X Music Multiplexer System
00002  *  Copyright (C) 2003-2009 XMMS2 Team
00003  *
00004  *  PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Lesser General Public
00008  *  License as published by the Free Software Foundation; either
00009  *  version 2.1 of the License, or (at your option) any later version.
00010  *
00011  *  This library is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  Lesser General Public License for more details.
00015  */
00016 
00017 
00018 
00019 
00020 #ifndef __XMMS_STREAMTYPE_H__
00021 #define __XMMS_STREAMTYPE_H__
00022 
00023 #include <glib.h>
00024 #include <string.h>
00025 
00026 G_BEGIN_DECLS
00027 
00028 typedef enum xmms_stream_type_key_E {
00029     XMMS_STREAM_TYPE_END,
00030     XMMS_STREAM_TYPE_MIMETYPE,
00031     XMMS_STREAM_TYPE_URL,
00032     XMMS_STREAM_TYPE_FMT_FORMAT,
00033     XMMS_STREAM_TYPE_FMT_CHANNELS,
00034     XMMS_STREAM_TYPE_FMT_SAMPLERATE,
00035     XMMS_STREAM_TYPE_PRIORITY,
00036     XMMS_STREAM_TYPE_NAME
00037 } xmms_stream_type_key_t;
00038 
00039 struct xmms_stream_type_St;
00040 typedef struct xmms_stream_type_St xmms_stream_type_t;
00041 
00042 #define XMMS_STREAM_TYPE_PRIORITY_FALLBACK 40
00043 #define XMMS_STREAM_TYPE_PRIORITY_DEFAULT 50
00044 
00045 const char *xmms_stream_type_get_str (const xmms_stream_type_t *st, xmms_stream_type_key_t key);
00046 gint xmms_stream_type_get_int (const xmms_stream_type_t *st, xmms_stream_type_key_t key);
00047 
00048 G_END_DECLS
00049 
00050 #endif