diff options
author | Michal Ratajsky <[email protected]> | 2014-06-20 00:12:40 +0200 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-06-20 00:12:40 +0200 |
commit | 6be9a89195e0d3bf8408cea661f22cb97b638f24 (patch) | |
tree | 745cfec763facc62b6c3bc51cd246e5cad4d9f68 /backends/null/null-backend.c | |
parent | a2290d5e13ccee88fd9ae66a3895eb4da646f81f (diff) | |
download | libmatemixer-6be9a89195e0d3bf8408cea661f22cb97b638f24.tar.bz2 libmatemixer-6be9a89195e0d3bf8408cea661f22cb97b638f24.tar.xz |
Pulse and API updates, fixes
Diffstat (limited to 'backends/null/null-backend.c')
-rw-r--r-- | backends/null/null-backend.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/backends/null/null-backend.c b/backends/null/null-backend.c index f8c22c8..46c5fbf 100644 --- a/backends/null/null-backend.c +++ b/backends/null/null-backend.c @@ -15,11 +15,14 @@ * License along with this library; if not, see <http://www.gnu.org/licenses/>. */ +// XXX implement properties from MateMixerBackend + #include <glib.h> #include <glib-object.h> #include <libmatemixer/matemixer-backend.h> #include <libmatemixer/matemixer-backend-module.h> +#include <libmatemixer/matemixer-enums.h> #include "null-backend.h" @@ -28,17 +31,17 @@ static void mate_mixer_backend_interface_init (MateMixerBackendInterface *iface); +static void null_backend_class_init (NullBackendClass *klass); +static void null_backend_class_finalize (NullBackendClass *klass); +static void null_backend_init (NullBackend *null); + G_DEFINE_DYNAMIC_TYPE_EXTENDED (NullBackend, null_backend, G_TYPE_OBJECT, 0, G_IMPLEMENT_INTERFACE_DYNAMIC (MATE_MIXER_TYPE_BACKEND, mate_mixer_backend_interface_init)) -static void null_backend_class_init (NullBackendClass *klass); -static void null_backend_class_finalize (NullBackendClass *klass); -static void null_backend_init (NullBackend *null); - -static gboolean backend_open (MateMixerBackend *backend); -static MateMixerState backend_get_state (MateMixerBackend *backend); +static gboolean backend_open (MateMixerBackend *backend); +static MateMixerState backend_get_state (MateMixerBackend *backend); static MateMixerBackendInfo info; @@ -69,7 +72,6 @@ mate_mixer_backend_interface_init (MateMixerBackendInterface *iface) static void null_backend_class_init (NullBackendClass *klass) { - // XXX is it needed to have this function? shouldn't it call parent method if empty? } /* Called in the code generated by G_DEFINE_DYNAMIC_TYPE_EXTENDED() */ |