diff options
author | Michal Ratajsky <[email protected]> | 2014-08-18 20:49:17 +0200 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-08-18 20:49:17 +0200 |
commit | 5f20ab328add9442082277a57c23273a3a2125ed (patch) | |
tree | fb458ba63f25db35de6b5a9c9acf0f967020107f /backends/pulse/pulse-device-switch.h | |
parent | 94d24482d8b1013947c0e2dac7330180b6ae02f6 (diff) | |
download | libmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.bz2 libmatemixer-5f20ab328add9442082277a57c23273a3a2125ed.tar.xz |
Global update
Diffstat (limited to 'backends/pulse/pulse-device-switch.h')
-rw-r--r-- | backends/pulse/pulse-device-switch.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/backends/pulse/pulse-device-switch.h b/backends/pulse/pulse-device-switch.h new file mode 100644 index 0000000..50f4a68 --- /dev/null +++ b/backends/pulse/pulse-device-switch.h @@ -0,0 +1,77 @@ +/* + * 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 PULSE_DEVICE_SWITCH_H +#define PULSE_DEVICE_SWITCH_H + +#include <glib.h> +#include <glib-object.h> +#include <libmatemixer/matemixer.h> + +#include "pulse-types.h" + +G_BEGIN_DECLS + +#define PULSE_TYPE_DEVICE_SWITCH \ + (pulse_device_switch_get_type ()) +#define PULSE_DEVICE_SWITCH(o) \ + (G_TYPE_CHECK_INSTANCE_CAST ((o), PULSE_TYPE_DEVICE_SWITCH, PulseDeviceSwitch)) +#define PULSE_IS_DEVICE_SWITCH(o) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((o), PULSE_TYPE_DEVICE_SWITCH)) +#define PULSE_DEVICE_SWITCH_CLASS(k) \ + (G_TYPE_CHECK_CLASS_CAST ((k), PULSE_TYPE_DEVICE_SWITCH, PulseDeviceSwitchClass)) +#define PULSE_IS_DEVICE_SWITCH_CLASS(k) \ + (G_TYPE_CHECK_CLASS_TYPE ((k), PULSE_TYPE_DEVICE_SWITCH)) +#define PULSE_DEVICE_SWITCH_GET_CLASS(o) \ + (G_TYPE_INSTANCE_GET_CLASS ((o), PULSE_TYPE_DEVICE_SWITCH, PulseDeviceSwitchClass)) + +typedef struct _PulseDeviceSwitchClass PulseDeviceSwitchClass; +typedef struct _PulseDeviceSwitchPrivate PulseDeviceSwitchPrivate; + +struct _PulseDeviceSwitch +{ + MateMixerSwitch parent; + + /*< private >*/ + PulseDeviceSwitchPrivate *priv; +}; + +struct _PulseDeviceSwitchClass +{ + MateMixerSwitchClass parent_class; +}; + +GType pulse_device_switch_get_type (void) G_GNUC_CONST; + +PulseDeviceSwitch *pulse_device_switch_new (const gchar *name, + const gchar *label, + PulseDevice *device); + +PulseDevice * pulse_device_switch_get_device (PulseDeviceSwitch *swtch); + +void pulse_device_switch_add_profile (PulseDeviceSwitch *swtch, + PulseDeviceProfile *profile); + +void pulse_device_switch_set_active_profile (PulseDeviceSwitch *swtch, + PulseDeviceProfile *profile); + +void pulse_device_switch_set_active_profile_by_name (PulseDeviceSwitch *swtch, + const gchar *name); + +G_END_DECLS + +#endif /* PULSE_DEVICE_SWITCH_H */ |