src/xmms/xform.c File Reference

xforms More...

#include <string.h>
#include "xmmspriv/xmms_plugin.h"
#include "xmmspriv/xmms_xform.h"
#include "xmmspriv/xmms_streamtype.h"
#include "xmmspriv/xmms_medialib.h"
#include "xmmspriv/xmms_utils.h"
#include "xmms/xmms_ipc.h"
#include "xmms/xmms_log.h"
#include "xmms/xmms_object.h"
#include "xform_ipc.c"

Go to the source code of this file.

Defines

#define READ_CHUNK   4096

Typedefs

typedef struct
xmms_xform_hotspot_St 
xmms_xform_hotspot_t
typedef struct match_state_St match_state_t

Functions

xmms_xform_txmms_xform_find (xmms_xform_t *prev, xmms_medialib_entry_t entry, GList *goal_hints)
const char * xmms_xform_shortname (xmms_xform_t *xform)
void xmms_xform_browse_add_entry_property_str (xmms_xform_t *xform, const gchar *key, const gchar *value)
void xmms_xform_browse_add_entry_property_int (xmms_xform_t *xform, const gchar *key, gint value)
void xmms_xform_browse_add_symlink_args (xmms_xform_t *xform, const gchar *basename, const gchar *url, gint nargs, gchar **args)
void xmms_xform_browse_add_symlink (xmms_xform_t *xform, const gchar *basename, const gchar *url)
void xmms_xform_browse_add_entry_property (xmms_xform_t *xform, const gchar *key, xmmsv_t *val)
void xmms_xform_browse_add_entry (xmms_xform_t *xform, const gchar *filename, guint32 flags)
GList * xmms_xform_browse_method (xmms_xform_t *xform, const gchar *url, xmms_error_t *error)
GList * xmms_xform_browse (const gchar *url, xmms_error_t *error)
xmms_xform_object_txmms_xform_object_init (void)
xmms_xform_txmms_xform_new (xmms_xform_plugin_t *plugin, xmms_xform_t *prev, xmms_medialib_entry_t entry, GList *goal_hints)
xmms_medialib_entry_t xmms_xform_entry_get (xmms_xform_t *xform)
 Get the medialib entry played by this xform.
gpointer xmms_xform_private_data_get (xmms_xform_t *xform)
 Get private data for this xform.
void xmms_xform_private_data_set (xmms_xform_t *xform, gpointer data)
 Set private data for this xform.
void xmms_xform_outdata_type_add (xmms_xform_t *xform,...)
void xmms_xform_outdata_type_set (xmms_xform_t *xform, xmms_stream_type_t *type)
void xmms_xform_outdata_type_copy (xmms_xform_t *xform)
const char * xmms_xform_indata_find_str (xmms_xform_t *xform, xmms_stream_type_key_t key)
const char * xmms_xform_indata_get_str (xmms_xform_t *xform, xmms_stream_type_key_t key)
gint xmms_xform_indata_get_int (xmms_xform_t *xform, xmms_stream_type_key_t key)
xmms_stream_type_txmms_xform_outtype_get (xmms_xform_t *xform)
xmms_stream_type_txmms_xform_intype_get (xmms_xform_t *xform)
const char * xmms_xform_outtype_get_str (xmms_xform_t *xform, xmms_stream_type_key_t key)
gint xmms_xform_outtype_get_int (xmms_xform_t *xform, xmms_stream_type_key_t key)
void xmms_xform_metadata_set_int (xmms_xform_t *xform, const char *key, int val)
void xmms_xform_metadata_set_str (xmms_xform_t *xform, const char *key, const char *val)
gboolean xmms_xform_metadata_has_val (xmms_xform_t *xform, const gchar *key)
gboolean xmms_xform_metadata_get_int (xmms_xform_t *xform, const char *key, gint32 *val)
gboolean xmms_xform_metadata_get_str (xmms_xform_t *xform, const char *key, const gchar **val)
void xmms_xform_volatile_set_int (xmms_xform_t *xform, const char *key, int val)
void xmms_xform_volatile_set_str (xmms_xform_t *xform, const char *key, const char *val)
gboolean xmms_xform_volatile_has_val (xmms_xform_t *xform, const gchar *key)
gboolean xmms_xform_volatile_get_int (xmms_xform_t *xform, const char *key, gint32 *val)
gboolean xmms_xform_volatile_get_str (xmms_xform_t *xform, const char *key, const gchar **val)
void xmms_xform_auxdata_barrier (xmms_xform_t *xform)
void xmms_xform_auxdata_set_int (xmms_xform_t *xform, const char *key, int intval)
void xmms_xform_auxdata_set_str (xmms_xform_t *xform, const gchar *key, const gchar *strval)
void xmms_xform_auxdata_set_bin (xmms_xform_t *xform, const gchar *key, gpointer data, gssize len)
gboolean xmms_xform_auxdata_has_val (xmms_xform_t *xform, const gchar *key)
gboolean xmms_xform_auxdata_get_int (xmms_xform_t *xform, const gchar *key, gint32 *val)
gboolean xmms_xform_auxdata_get_str (xmms_xform_t *xform, const gchar *key, const gchar **val)
gboolean xmms_xform_auxdata_get_bin (xmms_xform_t *xform, const gchar *key, const guchar **data, gsize *datalen)
gint xmms_xform_this_read (xmms_xform_t *xform, gpointer buf, gint siz, xmms_error_t *err)
gint64 xmms_xform_this_seek (xmms_xform_t *xform, gint64 offset, xmms_xform_seek_mode_t whence, xmms_error_t *err)
gint xmms_xform_peek (xmms_xform_t *xform, gpointer buf, gint siz, xmms_error_t *err)
 Preview data from previous xform.
gchar * xmms_xform_read_line (xmms_xform_t *xform, gchar *line, xmms_error_t *err)
 Read one line from previous xform.
gint xmms_xform_read (xmms_xform_t *xform, gpointer buf, gint siz, xmms_error_t *err)
 Read data from previous xform.
gint64 xmms_xform_seek (xmms_xform_t *xform, gint64 offset, xmms_xform_seek_mode_t whence, xmms_error_t *err)
 Change offset in stream.
const gchar * xmms_xform_get_url (xmms_xform_t *xform)
xmms_plugin_txmms_xform_plugin_new (void)
void xmms_xform_plugin_methods_set (xmms_xform_plugin_t *plugin, xmms_xform_methods_t *methods)
 Should be called _once_ from the plugin's setupfunc.
gboolean xmms_xform_plugin_verify (xmms_plugin_t *_plugin)
void xmms_xform_plugin_indata_add (xmms_xform_plugin_t *plugin,...)
 Add a valid input type to the plugin.
gboolean xmms_xform_iseos (xmms_xform_t *xform)
const xmms_stream_type_txmms_xform_get_out_stream_type (xmms_xform_t *xform)
const GList * xmms_xform_goal_hints_get (xmms_xform_t *xform)
xmms_xform_txmms_xform_chain_setup (xmms_medialib_entry_t entry, GList *goal_formats, gboolean rehash)
xmms_xform_txmms_xform_chain_setup_url (xmms_medialib_entry_t entry, const gchar *url, GList *goal_formats, gboolean rehash)
xmms_config_property_txmms_xform_plugin_config_property_register (xmms_xform_plugin_t *xform_plugin, const gchar *name, const gchar *default_value, xmms_object_handler_t cb, gpointer userdata)
xmms_config_property_txmms_xform_config_lookup (xmms_xform_t *xform, const gchar *path)

Detailed Description

xforms

Definition in file xform.c.


Define Documentation

#define READ_CHUNK   4096

Definition at line 85 of file xform.c.

Referenced by xmms_xform_new().


Typedef Documentation

typedef struct match_state_St match_state_t
typedef struct xmms_xform_hotspot_St xmms_xform_hotspot_t

Function Documentation

void xmms_xform_auxdata_set_int ( xmms_xform_t xform,
const char *  key,
int  intval 
)

Definition at line 846 of file xform.c.

GList* xmms_xform_browse ( const gchar *  url,
xmms_error_t error 
)

Definition at line 284 of file xform.c.

void xmms_xform_browse_add_symlink_args ( xmms_xform_t xform,
const gchar *  basename,
const gchar *  url,
gint  nargs,
gchar **  args 
)

Definition at line 134 of file xform.c.

Referenced by xmms_xform_browse_add_symlink().

GList* xmms_xform_browse_method ( xmms_xform_t xform,
const gchar *  url,
xmms_error_t error 
)

Definition at line 264 of file xform.c.

Referenced by xmms_xform_browse().

xmms_xform_t* xmms_xform_chain_setup ( xmms_medialib_entry_t  entry,
GList *  goal_formats,
gboolean  rehash 
)

Definition at line 1586 of file xform.c.

xmms_xform_t* xmms_xform_chain_setup_url ( xmms_medialib_entry_t  entry,
const gchar *  url,
GList *  goal_formats,
gboolean  rehash 
)

Definition at line 1603 of file xform.c.

Referenced by xmms_xform_chain_setup().

xmms_xform_t * xmms_xform_find ( xmms_xform_t prev,
xmms_medialib_entry_t  entry,
GList *  goal_hints 
)

Definition at line 1381 of file xform.c.

Referenced by xmms_xform_browse().

const GList* xmms_xform_goal_hints_get ( xmms_xform_t xform  ) 

Definition at line 1421 of file xform.c.

const char* xmms_xform_indata_find_str ( xmms_xform_t xform,
xmms_stream_type_key_t  key 
)

Definition at line 466 of file xform.c.

Referenced by xmms_xform_indata_find_str().

xmms_stream_type_t* xmms_xform_intype_get ( xmms_xform_t xform  ) 

Definition at line 497 of file xform.c.

gboolean xmms_xform_metadata_get_int ( xmms_xform_t xform,
const char *  key,
gint32 *  val 
)

Definition at line 571 of file xform.c.

gboolean xmms_xform_metadata_get_str ( xmms_xform_t xform,
const char *  key,
const gchar **  val 
)

Definition at line 587 of file xform.c.

Referenced by xmms_xform_metadata_set_str().

void xmms_xform_metadata_set_int ( xmms_xform_t xform,
const char *  key,
int  val 
)

Definition at line 518 of file xform.c.

void xmms_xform_metadata_set_str ( xmms_xform_t xform,
const char *  key,
const char *  val 
)

Definition at line 527 of file xform.c.

xmms_xform_t* xmms_xform_new ( xmms_xform_plugin_t plugin,
xmms_xform_t prev,
xmms_medialib_entry_t  entry,
GList *  goal_hints 
)

Definition at line 380 of file xform.c.

Referenced by xmms_xform_browse(), and xmms_xform_find().

xmms_xform_object_t* xmms_xform_object_init ( void   ) 

Definition at line 338 of file xform.c.

Referenced by main().

void xmms_xform_outdata_type_set ( xmms_xform_t xform,
xmms_stream_type_t type 
)

Definition at line 452 of file xform.c.

xmms_stream_type_t* xmms_xform_outtype_get ( xmms_xform_t xform  ) 

Definition at line 491 of file xform.c.

Referenced by xmms_xform_intype_get().

gint xmms_xform_outtype_get_int ( xmms_xform_t xform,
xmms_stream_type_key_t  key 
)

Definition at line 511 of file xform.c.

const char* xmms_xform_outtype_get_str ( xmms_xform_t xform,
xmms_stream_type_key_t  key 
)

Definition at line 505 of file xform.c.

xmms_plugin_t* xmms_xform_plugin_new ( void   ) 

Definition at line 1249 of file xform.c.

gboolean xmms_xform_plugin_verify ( xmms_plugin_t _plugin  ) 

Definition at line 1273 of file xform.c.

const char * xmms_xform_shortname ( xmms_xform_t xform  ) 
gint xmms_xform_this_read ( xmms_xform_t xform,
gpointer  buf,
gint  siz,
xmms_error_t err 
)

Definition at line 1034 of file xform.c.

Referenced by xmms_xform_read().

gint64 xmms_xform_this_seek ( xmms_xform_t xform,
gint64  offset,
xmms_xform_seek_mode_t  whence,
xmms_error_t err 
)

Definition at line 1112 of file xform.c.

Referenced by xmms_xform_seek().

gboolean xmms_xform_volatile_get_int ( xmms_xform_t xform,
const char *  key,
gint32 *  val 
)

Definition at line 654 of file xform.c.

gboolean xmms_xform_volatile_get_str ( xmms_xform_t xform,
const char *  key,
const gchar **  val 
)

Definition at line 670 of file xform.c.

Referenced by xmms_xform_volatile_set_str().

gboolean xmms_xform_volatile_has_val ( xmms_xform_t xform,
const gchar *  key 
)

Definition at line 648 of file xform.c.

void xmms_xform_volatile_set_int ( xmms_xform_t xform,
const char *  key,
int  val 
)

Definition at line 603 of file xform.c.

void xmms_xform_volatile_set_str ( xmms_xform_t xform,
const char *  key,
const char *  val 
)

Definition at line 611 of file xform.c.


Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1