~ubuntu-branches/ubuntu/trusty/mediascanner/trusty-proposed

« back to all changes in this revision

Viewing changes to src/grlmediascanner/enums.c.in

  • Committer: Package Import Robot
  • Author(s): Łukasz 'sil2100' Zemczak
  • Date: 2013-08-13 18:47:34 UTC
  • Revision ID: package-import@ubuntu.com-20130813184734-u3lyvu2u1hgybryc
Tags: upstream-0.3.93
Import upstream version 0.3.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*** BEGIN file-header ***/
 
2
 
 
3
/*
 
4
 * This file is part of the Ubuntu TV Media Scanner
 
5
 * Copyright (C) 2012-2013 Canonical Ltd.
 
6
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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/>.
 
18
 *
 
19
 * Contact: Jim Hodapp <jim.hodapp@canonical.com>
 
20
 * Authored By: Mathias Hasselmann <mathias@openismus.com>
 
21
 */
 
22
#include "grlmediascanner/enums.h"
 
23
#include "grlmediascanner/mediasource.h"
 
24
 
 
25
/*** END file-header ***/
 
26
 
 
27
/*** BEGIN value-header ***/
 
28
GType @enum_name@_get_type() {
 
29
    static volatile GType static_type_id = G_TYPE_INVALID;
 
30
 
 
31
    if (g_once_init_enter(&static_type_id)) {
 
32
        GType type_id;
 
33
 
 
34
        static const GEnumValue values[] = {
 
35
/*** END value-header ***/
 
36
 
 
37
/*** BEGIN value-production ***/
 
38
    { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
 
39
/*** END value-production ***/
 
40
 
 
41
/*** BEGIN value-tail ***/
 
42
            { 0, NULL, NULL }
 
43
        };
 
44
 
 
45
        type_id = g_enum_register_static("@EnumName@", values);
 
46
        g_once_init_leave(&static_type_id, type_id);
 
47
    }
 
48
 
 
49
    return static_type_id;
 
50
}
 
51
 
 
52
/*** END value-tail ***/