summaryrefslogtreecommitdiff
path: root/libmatemixer/matemixer-stream-toggle.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-10 11:28:44 +0100
committerMichal Ratajsky <[email protected]>2014-11-10 11:28:44 +0100
commit6c1be9a4ad08f84235d4a1fcd4597bff910f59c4 (patch)
tree779944fba11c918cbbf960cc23f0479b3baf890c /libmatemixer/matemixer-stream-toggle.h
parent44f3cd7ba3b672e67a91358fb0f6e3370c62301a (diff)
downloadlibmatemixer-6c1be9a4ad08f84235d4a1fcd4597bff910f59c4.tar.bz2
libmatemixer-6c1be9a4ad08f84235d4a1fcd4597bff910f59c4.tar.xz
Change MateMixerToggle into MateMixerStreamToggle and adapt ALSA
Diffstat (limited to 'libmatemixer/matemixer-stream-toggle.h')
-rw-r--r--libmatemixer/matemixer-stream-toggle.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/libmatemixer/matemixer-stream-toggle.h b/libmatemixer/matemixer-stream-toggle.h
new file mode 100644
index 0000000..7417568
--- /dev/null
+++ b/libmatemixer/matemixer-stream-toggle.h
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2014 Michal Ratajsky <[email protected]>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the licence, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef MATEMIXER_STREAM_TOGGLE_H
+#define MATEMIXER_STREAM_TOGGLE_H
+
+#include <glib.h>
+#include <glib-object.h>
+
+#include <libmatemixer/matemixer-stream-switch.h>
+#include <libmatemixer/matemixer-types.h>
+
+G_BEGIN_DECLS
+
+#define MATE_MIXER_TYPE_STREAM_TOGGLE \
+ (mate_mixer_stream_toggle_get_type ())
+#define MATE_MIXER_STREAM_TOGGLE(o) \
+ (G_TYPE_CHECK_INSTANCE_CAST ((o), MATE_MIXER_TYPE_STREAM_TOGGLE, MateMixerStreamToggle))
+#define MATE_MIXER_IS_STREAM_TOGGLE(o) \
+ (G_TYPE_CHECK_INSTANCE_TYPE ((o), MATE_MIXER_TYPE_STREAM_TOGGLE))
+#define MATE_MIXER_STREAM_TOGGLE_CLASS(k) \
+ (G_TYPE_CHECK_CLASS_CAST ((k), MATE_MIXER_TYPE_STREAM_TOGGLE, MateMixerStreamToggleClass))
+#define MATE_MIXER_IS_STREAM_TOGGLE_CLASS(k) \
+ (G_TYPE_CHECK_CLASS_TYPE ((k), MATE_MIXER_TYPE_STREAM_TOGGLE))
+#define MATE_MIXER_STREAM_TOGGLE_GET_CLASS(o) \
+ (G_TYPE_INSTANCE_GET_CLASS ((o), MATE_MIXER_TYPE_STREAM_TOGGLE, MateMixerStreamToggleClass))
+
+typedef struct _MateMixerStreamToggleClass MateMixerStreamToggleClass;
+typedef struct _MateMixerStreamTogglePrivate MateMixerStreamTogglePrivate;
+
+/**
+ * MateMixerStreamToggle:
+ *
+ * The #MateMixerStreamToggle structure contains only private data and should only
+ * be accessed using the provided API.
+ */
+struct _MateMixerStreamToggle
+{
+ MateMixerStreamSwitch object;
+
+ /*< private >*/
+ MateMixerStreamTogglePrivate *priv;
+};
+
+/**
+ * MateMixerStreamToggleClass:
+ * @parent_class: The parent class.
+ *
+ * The class structure for #MateMixerStreamToggle.
+ */
+struct _MateMixerStreamToggleClass
+{
+ MateMixerStreamSwitchClass parent_class;
+};
+
+GType mate_mixer_stream_toggle_get_type (void) G_GNUC_CONST;
+
+gboolean mate_mixer_stream_toggle_get_state (MateMixerStreamToggle *toggle);
+gboolean mate_mixer_stream_toggle_set_state (MateMixerStreamToggle *toggle,
+ gboolean state);
+
+MateMixerSwitchOption *mate_mixer_stream_toggle_get_state_option (MateMixerStreamToggle *toggle,
+ gboolean state);
+
+G_END_DECLS
+
+#endif /* MATEMIXER_STREAM_TOGGLE_H */