/* * Copyright (C) 2014 Michal Ratajsky * * 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 . */ #include "matemixer-enum-types.h" #include "matemixer-enums.h" /* * GTypes are not generated by glib-mkenums, see: * https://bugzilla.gnome.org/show_bug.cgi?id=621942 */ GType mate_mixer_backend_type_get_type (void) { static GType etype = 0; if (etype == 0) { static const GEnumValue values[] = { { MATE_MIXER_BACKEND_TYPE_UNKNOWN, "MATE_MIXER_BACKEND_TYPE_UNKNOWN", "unknown" }, { MATE_MIXER_BACKEND_TYPE_PULSE, "MATE_MIXER_BACKEND_TYPE_PULSE", "pulse" }, { MATE_MIXER_BACKEND_TYPE_NULL, "MATE_MIXER_BACKEND_TYPE_NULL", "null" }, { 0, NULL, NULL } }; etype = g_enum_register_static ( g_intern_static_string ("MateMixerBackendType"), values); } return etype; } GType mate_mixer_device_port_direction_get_type (void) { static GType etype = 0; if (etype == 0) { static const GFlagsValue values[] = { { MATE_MIXER_DEVICE_PORT_DIRECTION_INPUT, "MATE_MIXER_DEVICE_PORT_DIRECTION_INPUT", "input" }, { MATE_MIXER_DEVICE_PORT_DIRECTION_OUTPUT, "MATE_MIXER_DEVICE_PORT_DIRECTION_OUTPUT", "output" }, { 0, NULL, NULL } }; etype = g_flags_register_static ( g_intern_static_string ("MateMixerDevicePortDirection"), values); } return etype; } GType mate_mixer_device_port_status_get_type (void) { static GType etype = 0; if (etype == 0) { static const GFlagsValue values[] = { { MATE_MIXER_DEVICE_PORT_STATUS_AVAILABLE, "MATE_MIXER_DEVICE_PORT_STATUS_AVAILABLE", "available" }, { 0, NULL, NULL } }; etype = g_flags_register_static ( g_intern_static_string ("MateMixerDevicePortStatus"), values); } return etype; }