1
/*** BEGIN file-header ***/
4
* This file is part of the Ubuntu TV Media Scanner
5
* Copyright (C) 2012-2013 Canonical Ltd.
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License version 3 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
* Contact: Jim Hodapp <jim.hodapp@canonical.com>
20
* Authored By: Mathias Hasselmann <mathias@openismus.com>
22
#include "grlmediascanner/enums.h"
23
#include "grlmediascanner/mediasource.h"
25
/*** END file-header ***/
27
/*** BEGIN value-header ***/
28
GType @enum_name@_get_type() {
29
static volatile GType static_type_id = G_TYPE_INVALID;
31
if (g_once_init_enter(&static_type_id)) {
34
static const GEnumValue values[] = {
35
/*** END value-header ***/
37
/*** BEGIN value-production ***/
38
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
39
/*** END value-production ***/
41
/*** BEGIN value-tail ***/
45
type_id = g_enum_register_static("@EnumName@", values);
46
g_once_init_leave(&static_type_id, type_id);
49
return static_type_id;
52
/*** END value-tail ***/