summaryrefslogtreecommitdiff
path: root/types.c
blob: 0bb63d341cfa51b7ce623131ab728cecbf106af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <glib-object.h>
#include "types.h"

GType
cfm_radio_output_get_type(void)
{
    static GType etype = 0;

    if (etype == 0) {
        static const GEnumValue values[] = {
            { CFM_RADIO_OUTPUT_MUTE, "CFM_RADIO_OUTPUT_MUTE", "mute" },
			{ CFM_RADIO_OUTPUT_SYSTEM, "CFM_RADIO_OUTPUT_SYSTEM", "system" },
            { CFM_RADIO_OUTPUT_SPEAKER, "CFM_RADIO_OUTPUT_SPEAKER", "speaker" },
            { CFM_RADIO_OUTPUT_HEADPHONES, "CFM_RADIO_OUTPUT_HEADPHONES", "headphones" },
            { 0, NULL, NULL }
        };
        etype = g_enum_register_static("CFmRadioOutput", values);
    }
    return etype;
}