~ricmm/+junk/unity-lens_music-sc

« back to all changes in this revision

Viewing changes to tests/unit/categories.c

  • Committer: Ricardo Mendoza
  • Date: 2012-09-05 14:20:15 UTC
  • Revision ID: ricardo.mendoza@canonical.com-20120905142015-prem6hiyfshwgm8q
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* categories.c generated by valac 0.16.1, the Vala compiler
 
2
 * generated from categories.vala, do not modify */
 
3
 
 
4
/*
 
5
 * Copyright (C) 2012 Canonical Ltd
 
6
 *
 
7
 * This program is free software: you can redistribute it and/or modify
 
8
 * it under the terms of the GNU 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 General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
 *
 
19
 * Authored by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
 
20
 *
 
21
 */
 
22
 
 
23
#include <glib.h>
 
24
#include <glib-object.h>
 
25
 
 
26
 
 
27
#define UNITY_MUSIC_LENS_TYPE_CATEGORY (unity_music_lens_category_get_type ())
 
28
 
 
29
typedef enum  {
 
30
        UNITY_MUSIC_LENS_CATEGORY_SONGS,
 
31
        UNITY_MUSIC_LENS_CATEGORY_ALBUMS,
 
32
        UNITY_MUSIC_LENS_CATEGORY_PURCHASE,
 
33
        UNITY_MUSIC_LENS_CATEGORY_MUSIC,
 
34
        UNITY_MUSIC_LENS_CATEGORY_RADIOS
 
35
} UnityMusicLensCategory;
 
36
 
 
37
 
 
38
 
 
39
GType unity_music_lens_category_get_type (void) G_GNUC_CONST;
 
40
 
 
41
 
 
42
GType unity_music_lens_category_get_type (void) {
 
43
        static volatile gsize unity_music_lens_category_type_id__volatile = 0;
 
44
        if (g_once_init_enter (&unity_music_lens_category_type_id__volatile)) {
 
45
                static const GEnumValue values[] = {{UNITY_MUSIC_LENS_CATEGORY_SONGS, "UNITY_MUSIC_LENS_CATEGORY_SONGS", "songs"}, {UNITY_MUSIC_LENS_CATEGORY_ALBUMS, "UNITY_MUSIC_LENS_CATEGORY_ALBUMS", "albums"}, {UNITY_MUSIC_LENS_CATEGORY_PURCHASE, "UNITY_MUSIC_LENS_CATEGORY_PURCHASE", "purchase"}, {UNITY_MUSIC_LENS_CATEGORY_MUSIC, "UNITY_MUSIC_LENS_CATEGORY_MUSIC", "music"}, {UNITY_MUSIC_LENS_CATEGORY_RADIOS, "UNITY_MUSIC_LENS_CATEGORY_RADIOS", "radios"}, {0, NULL, NULL}};
 
46
                GType unity_music_lens_category_type_id;
 
47
                unity_music_lens_category_type_id = g_enum_register_static ("UnityMusicLensCategory", values);
 
48
                g_once_init_leave (&unity_music_lens_category_type_id__volatile, unity_music_lens_category_type_id);
 
49
        }
 
50
        return unity_music_lens_category_type_id__volatile;
 
51
}
 
52
 
 
53
 
 
54