summaryrefslogtreecommitdiff
path: root/libmatemixer/matemixer-switch.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-08-18 20:49:17 +0200
committerMichal Ratajsky <[email protected]>2014-08-18 20:49:17 +0200
commit5f20ab328add9442082277a57c23273a3a2125ed (patch)
treefb458ba63f25db35de6b5a9c9acf0f967020107f /libmatemixer/matemixer-switch.h
parent94d24482d8b1013947c0e2dac7330180b6ae02f6 (diff)
downloadlibmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.bz2
libmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.xz
Global update
Diffstat (limited to 'libmatemixer/matemixer-switch.h')
-rw-r--r--libmatemixer/matemixer-switch.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/libmatemixer/matemixer-switch.h b/libmatemixer/matemixer-switch.h
index 3035607..7f0109f 100644
--- a/libmatemixer/matemixer-switch.h
+++ b/libmatemixer/matemixer-switch.h
@@ -21,6 +21,7 @@
#include <glib.h>
#include <glib-object.h>
+#include <libmatemixer/matemixer-enums.h>
#include <libmatemixer/matemixer-types.h>
G_BEGIN_DECLS
@@ -41,6 +42,12 @@ G_BEGIN_DECLS
typedef struct _MateMixerSwitchClass MateMixerSwitchClass;
typedef struct _MateMixerSwitchPrivate MateMixerSwitchPrivate;
+/**
+ * MateMixerSwitch:
+ *
+ * The #MateMixerSwitch structure contains only private data and should only
+ * be accessed using the provided API.
+ */
struct _MateMixerSwitch
{
GObject object;
@@ -49,6 +56,11 @@ struct _MateMixerSwitch
MateMixerSwitchPrivate *priv;
};
+/**
+ * MateMixerSwitchClass:
+ *
+ * The class structure of #MateMixerSwitch.
+ */
struct _MateMixerSwitchClass
{
GObjectClass parent_class;
@@ -57,26 +69,28 @@ struct _MateMixerSwitchClass
MateMixerSwitchOption *(*get_option) (MateMixerSwitch *swtch,
const gchar *name);
+ const GList *(*list_options) (MateMixerSwitch *swtch);
+
gboolean (*set_active_option) (MateMixerSwitch *swtch,
MateMixerSwitchOption *option);
-
- GList *(*list_options) (MateMixerSwitch *swtch);
};
GType mate_mixer_switch_get_type (void) G_GNUC_CONST;
const gchar * mate_mixer_switch_get_name (MateMixerSwitch *swtch);
const gchar * mate_mixer_switch_get_label (MateMixerSwitch *swtch);
+MateMixerSwitchFlags mate_mixer_switch_get_flags (MateMixerSwitch *swtch);
+MateMixerSwitchRole mate_mixer_switch_get_role (MateMixerSwitch *swtch);
MateMixerSwitchOption *mate_mixer_switch_get_option (MateMixerSwitch *swtch,
const gchar *name);
+const GList * mate_mixer_switch_list_options (MateMixerSwitch *swtch);
+
MateMixerSwitchOption *mate_mixer_switch_get_active_option (MateMixerSwitch *swtch);
gboolean mate_mixer_switch_set_active_option (MateMixerSwitch *swtch,
MateMixerSwitchOption *option);
-const GList * mate_mixer_switch_list_options (MateMixerSwitch *swtch);
-
G_END_DECLS
#endif /* MATEMIXER_SWITCH_H */