XMMS2
xmms_xform.h
Go to the documentation of this file.
1/* XMMS2 - X Music Multiplexer System
2 * Copyright (C) 2003-2011 XMMS2 Team
3 *
4 * PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 */
16
17#ifndef __XMMS_PRIV_XFORM_H__
18#define __XMMS_PRIV_XFORM_H__
19
21#include "xmms/xmms_medialib.h"
24
25typedef struct xmms_xform_object_St xmms_xform_object_t;
26
28
29xmms_xform_t *xmms_xform_new (xmms_xform_plugin_t *plugin, xmms_xform_t *prev, xmms_medialib_entry_t entry, GList *goal_hints);
33
36
37xmms_xform_t *xmms_xform_chain_setup (xmms_medialib_entry_t entry, GList *goal_formats, gboolean rehash);
38xmms_xform_t *xmms_xform_chain_setup_url (xmms_medialib_entry_t entry, const gchar *url, GList *goal_formats, gboolean rehash);
39
40gint64 xmms_xform_this_seek (xmms_xform_t *xform, gint64 offset, xmms_xform_seek_mode_t whence, xmms_error_t *err);
41int xmms_xform_this_read (xmms_xform_t *xform, gpointer buf, int siz, xmms_error_t *err);
42gboolean xmms_xform_iseos (xmms_xform_t *xform);
43
44const GList *xmms_xform_goal_hints_get (xmms_xform_t *xform);
46
48GList *xmms_xform_browse (const gchar *url, xmms_error_t *error);
49GList *xmms_xform_browse_method (xmms_xform_t *xform, const gchar *url, xmms_error_t *error);
50
52
53#define XMMS_XFORM_BUILTIN(shname, name, ver, desc, setupfunc) XMMS_BUILTIN(XMMS_PLUGIN_TYPE_XFORM, XMMS_XFORM_API_VERSION, shname, name, ver, desc, (gboolean (*)(gpointer))setupfunc)
54
55#endif
struct xmms_xform_plugin_St xmms_xform_plugin_t
Xform plugin.
struct xmms_xform_St xmms_xform_t
enum xmms_xform_seek_mode_E xmms_xform_seek_mode_t
Seek direction argument.
gboolean xmms_xform_iseos(xmms_xform_t *xform)
Definition xform.c:1205
G_BEGIN_DECLS typedef gint32 xmms_medialib_entry_t
enum xmms_stream_type_key_E xmms_stream_type_key_t
struct xmms_stream_type_St xmms_stream_type_t
G_BEGIN_DECLS struct xmms_error_St xmms_error_t
struct xmms_xform_object_St xmms_xform_object_t
Definition xmms_xform.h:25
GList * xmms_xform_browse(const gchar *url, xmms_error_t *error)
Definition xform.c:277
void xmms_xform_outdata_type_set(xmms_xform_t *xform, xmms_stream_type_t *type)
Definition xform.c:445
xmms_xform_t * xmms_xform_chain_setup(xmms_medialib_entry_t entry, GList *goal_formats, gboolean rehash)
Definition xform.c:1388
xmms_xform_object_t * xmms_xform_object_init(void)
Definition xform.c:331
gint xmms_xform_outtype_get_int(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition xform.c:504
xmms_xform_t * xmms_xform_chain_setup_url(xmms_medialib_entry_t entry, const gchar *url, GList *goal_formats, gboolean rehash)
Definition xform.c:1405
xmms_stream_type_t * xmms_xform_outtype_get(xmms_xform_t *xform)
Definition xform.c:484
const gchar * xmms_xform_outtype_get_str(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition xform.c:498
const char * xmms_xform_indata_find_str(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition xform.c:459
int xmms_xform_this_read(xmms_xform_t *xform, gpointer buf, int siz, xmms_error_t *err)
xmms_xform_t * xmms_xform_new(xmms_xform_plugin_t *plugin, xmms_xform_t *prev, xmms_medialib_entry_t entry, GList *goal_hints)
Definition xform.c:375
gboolean xmms_xform_plugin_verify(xmms_plugin_t *plugin)
xmms_plugin_t * xmms_xform_plugin_new(void)
const GList * xmms_xform_goal_hints_get(xmms_xform_t *xform)
Definition xform.c:1223
GList * xmms_xform_browse_method(xmms_xform_t *xform, const gchar *url, xmms_error_t *error)
Definition xform.c:257
gint64 xmms_xform_this_seek(xmms_xform_t *xform, gint64 offset, xmms_xform_seek_mode_t whence, xmms_error_t *err)
Definition xform.c:1021
xmms_stream_type_t * xmms_xform_intype_get(xmms_xform_t *xform)
Definition xform.c:490