XMMS2
|
00001 /* XMMS2 - X Music Multiplexer System 00002 * Copyright (C) 2003-2011 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 #define XMMS_STREAM_TYPE_BEGIN "placeholder" 00029 00030 typedef enum xmms_stream_type_key_E { 00031 XMMS_STREAM_TYPE_END, 00032 XMMS_STREAM_TYPE_MIMETYPE, 00033 XMMS_STREAM_TYPE_URL, 00034 XMMS_STREAM_TYPE_FMT_FORMAT, 00035 XMMS_STREAM_TYPE_FMT_CHANNELS, 00036 XMMS_STREAM_TYPE_FMT_SAMPLERATE, 00037 XMMS_STREAM_TYPE_PRIORITY, 00038 XMMS_STREAM_TYPE_NAME 00039 } xmms_stream_type_key_t; 00040 00041 struct xmms_stream_type_St; 00042 typedef struct xmms_stream_type_St xmms_stream_type_t; 00043 00044 #define XMMS_STREAM_TYPE_PRIORITY_FALLBACK 40 00045 #define XMMS_STREAM_TYPE_PRIORITY_DEFAULT 50 00046 00047 const char *xmms_stream_type_get_str (const xmms_stream_type_t *st, xmms_stream_type_key_t key); 00048 gint xmms_stream_type_get_int (const xmms_stream_type_t *st, xmms_stream_type_key_t key); 00049 00050 G_END_DECLS 00051 00052 #endif