summaryrefslogtreecommitdiff
path: root/libmatemixer/matemixer-backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmatemixer/matemixer-backend.h')
-rw-r--r--libmatemixer/matemixer-backend.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/libmatemixer/matemixer-backend.h b/libmatemixer/matemixer-backend.h
index 1a5418f..559f256 100644
--- a/libmatemixer/matemixer-backend.h
+++ b/libmatemixer/matemixer-backend.h
@@ -21,6 +21,7 @@
#include <glib.h>
#include <glib-object.h>
+#include "matemixer-enums.h"
#include "matemixer-stream.h"
G_BEGIN_DECLS
@@ -48,22 +49,24 @@ typedef struct _MateMixerBackendInterface MateMixerBackendInterface;
struct _MateMixerBackendInterface
{
- GTypeInterface parent;
+ GTypeInterface parent_iface;
- /* Required */
- gboolean (*open) (MateMixerBackend *backend);
- MateMixerState (*get_state) (MateMixerBackend *backend);
-
- /* Optional */
+ /*< private >*/
void (*set_data) (MateMixerBackend *backend,
const MateMixerBackendData *data);
+ gboolean (*open) (MateMixerBackend *backend);
void (*close) (MateMixerBackend *backend);
+
+ MateMixerState (*get_state) (MateMixerBackend *backend);
+
GList *(*list_devices) (MateMixerBackend *backend);
GList *(*list_streams) (MateMixerBackend *backend);
+
MateMixerStream *(*get_default_input_stream) (MateMixerBackend *backend);
gboolean (*set_default_input_stream) (MateMixerBackend *backend,
MateMixerStream *stream);
+
MateMixerStream *(*get_default_output_stream) (MateMixerBackend *backend);
gboolean (*set_default_output_stream) (MateMixerBackend *backend,
MateMixerStream *stream);