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 
20 #include "xmms/xmms_xformplugin.h"
21 #include "xmms/xmms_medialib.h"
23 #include "xmmspriv/xmms_plugin.h"
24 
25 typedef struct xmms_xform_object_St xmms_xform_object_t;
26 
28 
29 xmms_xform_t *xmms_xform_new (xmms_xform_plugin_t *plugin, xmms_xform_t *prev, xmms_medialib_entry_t entry, GList *goal_hints);
33 
35 gboolean xmms_xform_plugin_verify (xmms_plugin_t *plugin);
36 
37 xmms_xform_t *xmms_xform_chain_setup (xmms_medialib_entry_t entry, GList *goal_formats, gboolean rehash);
38 xmms_xform_t *xmms_xform_chain_setup_url (xmms_medialib_entry_t entry, const gchar *url, GList *goal_formats, gboolean rehash);
39 
40 gint64 xmms_xform_this_seek (xmms_xform_t *xform, gint64 offset, xmms_xform_seek_mode_t whence, xmms_error_t *err);
41 int xmms_xform_this_read (xmms_xform_t *xform, gpointer buf, int siz, xmms_error_t *err);
42 gboolean xmms_xform_iseos (xmms_xform_t *xform);
43 
44 const GList *xmms_xform_goal_hints_get (xmms_xform_t *xform);
46 
48 GList *xmms_xform_browse (const gchar *url, xmms_error_t *error);
49 GList *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
enum xmms_stream_type_key_E xmms_stream_type_key_t
G_BEGIN_DECLS typedef gint32 xmms_medialib_entry_t
Definition: xmms_medialib.h:86
xmms_stream_type_t * xmms_xform_intype_get(xmms_xform_t *xform)
Definition: xform.c:490
const char * xmms_xform_indata_find_str(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition: xform.c:459
struct xmms_xform_plugin_St xmms_xform_plugin_t
Xform plugin.
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
xmms_plugin_t * xmms_xform_plugin_new(void)
Definition: xform_plugin.c:43
struct xmms_stream_type_St xmms_stream_type_t
GList * xmms_xform_browse_method(xmms_xform_t *xform, const gchar *url, xmms_error_t *error)
Definition: xform.c:257
struct xmms_xform_St xmms_xform_t
int xmms_xform_this_read(xmms_xform_t *xform, gpointer buf, int siz, xmms_error_t *err)
xmms_stream_type_t * xmms_xform_outtype_get(xmms_xform_t *xform)
Definition: xform.c:484
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
gboolean xmms_xform_plugin_verify(xmms_plugin_t *plugin)
Definition: xform_plugin.c:66
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
enum xmms_xform_seek_mode_E xmms_xform_seek_mode_t
Seek direction argument.
struct xmms_xform_object_St xmms_xform_object_t
Definition: xmms_xform.h:25
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
gint xmms_xform_outtype_get_int(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition: xform.c:504
void xmms_xform_outdata_type_set(xmms_xform_t *xform, xmms_stream_type_t *type)
Definition: xform.c:445
GList * xmms_xform_browse(const gchar *url, xmms_error_t *error)
Definition: xform.c:277
const GList * xmms_xform_goal_hints_get(xmms_xform_t *xform)
Definition: xform.c:1223
const gchar * xmms_xform_outtype_get_str(xmms_xform_t *xform, xmms_stream_type_key_t key)
Definition: xform.c:498
G_BEGIN_DECLS struct xmms_error_St xmms_error_t
gboolean xmms_xform_iseos(xmms_xform_t *xform)
Definition: xform.c:1205