# HG changeset patch # User William Pitcock # Date 1235777830 21600 # Node ID d8228a5f042e250cfcfab9d211ab86daf13e3c9c # Parent 732f392b887b3fb3276089133b9980430f1a2654 Add OutputPluginInitStatus. diff -r 732f392b887b -r d8228a5f042e src/audlegacy/plugin.h --- a/src/audlegacy/plugin.h Wed Feb 18 12:07:46 2009 +0200 +++ b/src/audlegacy/plugin.h Fri Feb 27 17:37:10 2009 -0600 @@ -1064,8 +1064,21 @@ PLUGIN_COMMON_FIELDS }; +typedef enum { + OUTPUT_PLUGIN_INIT_OK, + OUTPUT_PLUGIN_INIT_FAIL, + OUTPUT_PLUGIN_INIT_NO_DEVICES +} OutputPluginInitStatus; + struct _OutputPlugin { - PLUGIN_COMMON_FIELDS + gpointer handle; + gchar *filename; + gchar *description; + OutputPluginInitStatus (*init) (void); + void (*cleanup) (void); + void (*about) (void); + void (*configure) (void); + gboolean enabled; void (*get_volume) (gint * l, gint * r); void (*set_volume) (gint l, gint r);