changeset 4824:d8228a5f042e

Add OutputPluginInitStatus.
author William Pitcock <nenolod@atheme.org>
date Fri, 27 Feb 2009 17:37:10 -0600
parents 732f392b887b
children 7b771ae623eb
files src/audlegacy/plugin.h
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);