Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Functions | Variables
genre.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensGenre
struct  _UnityMusicLensGenreClass

Defines

#define UNITY_MUSIC_LENS_TYPE_GENRE   (unity_music_lens_genre_get_type ())
#define UNITY_MUSIC_LENS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))
#define UNITY_MUSIC_LENS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define UNITY_MUSIC_LENS_IS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_IS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_GENRE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define UNITY_MUSIC_LENS_GENRE_BLUES_ID   "blues"
#define UNITY_MUSIC_LENS_GENRE_CLASSIC_ID   "classic"
#define UNITY_MUSIC_LENS_GENRE_COUNTRY_ID   "country"
#define UNITY_MUSIC_LENS_GENRE_DISCO_ID   "disco"
#define UNITY_MUSIC_LENS_GENRE_FUNK_ID   "funk"
#define UNITY_MUSIC_LENS_GENRE_ROCK_ID   "rock"
#define UNITY_MUSIC_LENS_GENRE_METAL_ID   "metal"
#define UNITY_MUSIC_LENS_GENRE_HIPHOP_ID   "hip-hop"
#define UNITY_MUSIC_LENS_GENRE_HOUSE_ID   "house"
#define UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID   "new-wave"
#define UNITY_MUSIC_LENS_GENRE_RANDB_ID   "r-and-b"
#define UNITY_MUSIC_LENS_GENRE_PUNK_ID   "punk"
#define UNITY_MUSIC_LENS_GENRE_JAZZ_ID   "jazz"
#define UNITY_MUSIC_LENS_GENRE_POP_ID   "pop"
#define UNITY_MUSIC_LENS_GENRE_REGGAE_ID   "reggae"
#define UNITY_MUSIC_LENS_GENRE_SOUL_ID   "soul"
#define UNITY_MUSIC_LENS_GENRE_TECHNO_ID   "techno"
#define UNITY_MUSIC_LENS_GENRE_OTHER_ID   "other"

Typedefs

typedef struct _UnityMusicLensGenre
typedef struct _UnityMusicLensGenreClass
typedef struct _UnityMusicLensGenrePrivate

Functions

GType unity_music_lens_genre_get_type (void)
GeeCollection * unity_music_lens_genre_get_genre_synonyms (UnityMusicLensGenre *self, const gchar *genre_id)
gchar * unity_music_lens_genre_get_id_for_genre (UnityMusicLensGenre *self, const gchar *genre)
UnityMusicLensGenre * unity_music_lens_genre_new (void)
UnityMusicLensGenre * unity_music_lens_genre_construct (GType object_type)
static void unity_music_lens_genre_finalize (GObject *obj)
static void unity_music_lens_genre_class_init (UnityMusicLensGenreClass *klass)
static void unity_music_lens_genre_instance_init (UnityMusicLensGenre *self)

Variables

static gpointer unity_music_lens_genre_parent_class = NULL
static GeeTreeMultiMap * unity_music_lens_genre_map = NULL
static GeeMap * unity_music_lens_genre_inverted_map = NULL

Class Documentation

struct _UnityMusicLensGenre

Definition at line 43 of file genre.c.

Class Members
GObject parent_instance
UnityMusicLensGenrePrivate * priv
struct _UnityMusicLensGenreClass

Definition at line 48 of file genre.c.

Class Members
GObjectClass parent_class

Define Documentation

#define _g_free0 (   var)    (var = (g_free (var), NULL))

Definition at line 40 of file genre.c.

#define _g_object_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Definition at line 41 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))

Definition at line 31 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_BLUES_ID   "blues"

Definition at line 63 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))

Definition at line 32 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_CLASSIC_ID   "classic"

Definition at line 64 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_COUNTRY_ID   "country"

Definition at line 65 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_DISCO_ID   "disco"

Definition at line 66 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_FUNK_ID   "funk"

Definition at line 67 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))

Definition at line 35 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_HIPHOP_ID   "hip-hop"

Definition at line 70 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_HOUSE_ID   "house"

Definition at line 71 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_JAZZ_ID   "jazz"

Definition at line 75 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_METAL_ID   "metal"

Definition at line 69 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID   "new-wave"

Definition at line 72 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_OTHER_ID   "other"

Definition at line 80 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_POP_ID   "pop"

Definition at line 76 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_PUNK_ID   "punk"

Definition at line 74 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_RANDB_ID   "r-and-b"

Definition at line 73 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_REGGAE_ID   "reggae"

Definition at line 77 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_ROCK_ID   "rock"

Definition at line 68 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_SOUL_ID   "soul"

Definition at line 78 of file genre.c.

#define UNITY_MUSIC_LENS_GENRE_TECHNO_ID   "techno"

Definition at line 79 of file genre.c.

#define UNITY_MUSIC_LENS_IS_GENRE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))

Definition at line 33 of file genre.c.

#define UNITY_MUSIC_LENS_IS_GENRE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))

Definition at line 34 of file genre.c.

Definition at line 30 of file genre.c.


Typedef Documentation

typedef struct _UnityMusicLensGenre

Definition at line 37 of file genre.c.

typedef struct _UnityMusicLensGenreClass

Definition at line 38 of file genre.c.

Definition at line 39 of file genre.c.


Function Documentation

static void unity_music_lens_genre_class_init ( UnityMusicLensGenreClass *  klass) [static]

Definition at line 152 of file genre.c.

                                                                                 {
       GeeTreeMultiMap* _tmp0_;
       GeeTreeMultiMap* _tmp1_;
       GeeTreeMultiMap* _tmp2_;
       GeeTreeMultiMap* _tmp3_;
       GeeTreeMultiMap* _tmp4_;
       GeeTreeMultiMap* _tmp5_;
       GeeTreeMultiMap* _tmp6_;
       GeeTreeMultiMap* _tmp7_;
       GeeTreeMultiMap* _tmp8_;
       GeeTreeMultiMap* _tmp9_;
       GeeTreeMultiMap* _tmp10_;
       GeeTreeMultiMap* _tmp11_;
       GeeTreeMultiMap* _tmp12_;
       GeeTreeMultiMap* _tmp13_;
       GeeTreeMultiMap* _tmp14_;
       GeeTreeMultiMap* _tmp15_;
       GeeTreeMultiMap* _tmp16_;
       GeeTreeMultiMap* _tmp17_;
       GeeTreeMultiMap* _tmp18_;
       GeeTreeMultiMap* _tmp19_;
       GeeTreeMultiMap* _tmp20_;
       GeeTreeMultiMap* _tmp21_;
       GeeTreeMultiMap* _tmp22_;
       GeeTreeMultiMap* _tmp23_;
       GeeTreeMultiMap* _tmp24_;
       GeeTreeMultiMap* _tmp25_;
       GeeTreeMultiMap* _tmp26_;
       GeeTreeMultiMap* _tmp27_;
       GeeTreeMultiMap* _tmp28_;
       GeeTreeMultiMap* _tmp29_;
       GeeTreeMultiMap* _tmp30_;
       GeeTreeMultiMap* _tmp31_;
       GeeTreeMultiMap* _tmp32_;
       GeeTreeMultiMap* _tmp33_;
       GeeTreeMultiMap* _tmp34_;
       GeeTreeMultiMap* _tmp35_;
       GeeTreeMultiMap* _tmp36_;
       GeeTreeMultiMap* _tmp37_;
       GeeTreeMultiMap* _tmp38_;
       GeeTreeMultiMap* _tmp39_;
       GeeTreeMultiMap* _tmp40_;
       GeeTreeMultiMap* _tmp41_;
       GeeTreeMultiMap* _tmp42_;
       GeeTreeMultiMap* _tmp43_;
       GeeTreeMultiMap* _tmp44_;
       GeeTreeMultiMap* _tmp45_;
       GeeTreeMultiMap* _tmp46_;
       GeeTreeMultiMap* _tmp47_;
       GeeTreeMultiMap* _tmp48_;
       GeeTreeMultiMap* _tmp49_;
       GeeTreeMultiMap* _tmp50_;
       GeeTreeMultiMap* _tmp51_;
       GeeTreeMultiMap* _tmp52_;
       GeeTreeMultiMap* _tmp53_;
       GeeTreeMultiMap* _tmp54_;
       GeeTreeMultiMap* _tmp55_;
       GeeTreeMultiMap* _tmp56_;
       GeeHashMap* _tmp57_;
       unity_music_lens_genre_parent_class = g_type_class_peek_parent (klass);
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_genre_finalize;
       _tmp0_ = gee_tree_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
       _g_object_unref0 (unity_music_lens_genre_map);
       unity_music_lens_genre_map = _tmp0_;
       _tmp1_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp1_, UNITY_MUSIC_LENS_GENRE_BLUES_ID, "blues");
       _tmp2_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp2_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "classic");
       _tmp3_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp3_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "classical");
       _tmp4_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp4_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "opera");
       _tmp5_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp5_, UNITY_MUSIC_LENS_GENRE_COUNTRY_ID, "country");
       _tmp6_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp6_, UNITY_MUSIC_LENS_GENRE_DISCO_ID, "disco");
       _tmp7_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp7_, UNITY_MUSIC_LENS_GENRE_FUNK_ID, "funk");
       _tmp8_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp8_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "rock");
       _tmp9_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp9_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "heavy");
       _tmp10_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp10_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "hard");
       _tmp11_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp11_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "rock and roll");
       _tmp12_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp12_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "metal");
       _tmp13_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp13_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "heavy");
       _tmp14_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp14_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "heavy metal");
       _tmp15_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp15_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "hip-hop");
       _tmp16_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp16_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "rap");
       _tmp17_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp17_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "rap & hip hop");
       _tmp18_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp18_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "house");
       _tmp19_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp19_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "chillout");
       _tmp20_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp20_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "minimal");
       _tmp21_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp21_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "hard");
       _tmp22_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp22_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "electronic");
       _tmp23_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp23_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "dance");
       _tmp24_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp24_, UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID, "new-wave");
       _tmp25_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp25_, UNITY_MUSIC_LENS_GENRE_RANDB_ID, "r-and-b");
       _tmp26_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp26_, UNITY_MUSIC_LENS_GENRE_RANDB_ID, "r&b");
       _tmp27_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp27_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "punk");
       _tmp28_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp28_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "punk rock");
       _tmp29_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp29_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "hardcore");
       _tmp30_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp30_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "heavy");
       _tmp31_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp31_, UNITY_MUSIC_LENS_GENRE_JAZZ_ID, "jazz");
       _tmp32_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp32_, UNITY_MUSIC_LENS_GENRE_POP_ID, "pop");
       _tmp33_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp33_, UNITY_MUSIC_LENS_GENRE_REGGAE_ID, "reggae");
       _tmp34_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp34_, UNITY_MUSIC_LENS_GENRE_SOUL_ID, "soul");
       _tmp35_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp35_, UNITY_MUSIC_LENS_GENRE_SOUL_ID, "gospel");
       _tmp36_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp36_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "techno");
       _tmp37_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp37_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "minimal");
       _tmp38_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp38_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "trance");
       _tmp39_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp39_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "chillout");
       _tmp40_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp40_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "electronic");
       _tmp41_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp41_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "electronica");
       _tmp42_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp42_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "dance");
       _tmp43_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp43_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "other");
       _tmp44_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp44_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "african");
       _tmp45_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp45_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "alternative");
       _tmp46_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp46_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "ambient");
       _tmp47_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp47_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "asian");
       _tmp48_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp48_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "brazilian");
       _tmp49_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp49_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "celtic");
       _tmp50_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp50_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "christmas");
       _tmp51_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp51_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "folk");
       _tmp52_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp52_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "latin");
       _tmp53_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp53_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "oldies");
       _tmp54_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp54_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "soundtrack");
       _tmp55_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp55_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "traditional");
       _tmp56_ = unity_music_lens_genre_map;
       gee_multi_map_set ((GeeMultiMap*) _tmp56_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "world");
       _tmp57_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
       _g_object_unref0 (unity_music_lens_genre_inverted_map);
       unity_music_lens_genre_inverted_map = (GeeMap*) _tmp57_;
       {
              GeeTreeMultiMap* _tmp58_;
              GeeSet* _tmp59_ = NULL;
              GeeSet* _tmp60_;
              GeeIterator* _tmp61_ = NULL;
              GeeIterator* _tmp62_;
              GeeIterator* _key_it;
              _tmp58_ = unity_music_lens_genre_map;
              _tmp59_ = gee_multi_map_get_keys ((GeeMultiMap*) _tmp58_);
              _tmp60_ = _tmp59_;
              _tmp61_ = gee_iterable_iterator ((GeeIterable*) _tmp60_);
              _tmp62_ = _tmp61_;
              _g_object_unref0 (_tmp60_);
              _key_it = _tmp62_;
              while (TRUE) {
                     GeeIterator* _tmp63_;
                     gboolean _tmp64_ = FALSE;
                     GeeIterator* _tmp65_;
                     gpointer _tmp66_ = NULL;
                     gchar* key;
                     GeeTreeMultiMap* _tmp67_;
                     const gchar* _tmp68_;
                     GeeCollection* _tmp69_ = NULL;
                     GeeCollection* values_collection;
                     _tmp63_ = _key_it;
                     _tmp64_ = gee_iterator_next (_tmp63_);
                     if (!_tmp64_) {
                            break;
                     }
                     _tmp65_ = _key_it;
                     _tmp66_ = gee_iterator_get (_tmp65_);
                     key = (gchar*) _tmp66_;
                     _tmp67_ = unity_music_lens_genre_map;
                     _tmp68_ = key;
                     _tmp69_ = gee_multi_map_get ((GeeMultiMap*) _tmp67_, _tmp68_);
                     values_collection = _tmp69_;
                     {
                            GeeCollection* _tmp70_;
                            GeeIterator* _tmp71_ = NULL;
                            GeeIterator* _val_it;
                            _tmp70_ = values_collection;
                            _tmp71_ = gee_iterable_iterator ((GeeIterable*) _tmp70_);
                            _val_it = _tmp71_;
                            while (TRUE) {
                                   GeeIterator* _tmp72_;
                                   gboolean _tmp73_ = FALSE;
                                   GeeIterator* _tmp74_;
                                   gpointer _tmp75_ = NULL;
                                   gchar* val;
                                   GeeMap* _tmp76_;
                                   const gchar* _tmp77_;
                                   const gchar* _tmp78_;
                                   _tmp72_ = _val_it;
                                   _tmp73_ = gee_iterator_next (_tmp72_);
                                   if (!_tmp73_) {
                                          break;
                                   }
                                   _tmp74_ = _val_it;
                                   _tmp75_ = gee_iterator_get (_tmp74_);
                                   val = (gchar*) _tmp75_;
                                   _tmp76_ = unity_music_lens_genre_inverted_map;
                                   _tmp77_ = val;
                                   _tmp78_ = key;
                                   gee_map_set (_tmp76_, _tmp77_, _tmp78_);
                                   _g_free0 (val);
                            }
                            _g_object_unref0 (_val_it);
                     }
                     _g_object_unref0 (values_collection);
                     _g_free0 (key);
              }
              _g_object_unref0 (_key_it);
       }
}

Here is the call graph for this function:

UnityMusicLensGenre* unity_music_lens_genre_construct ( GType  object_type)

Definition at line 140 of file genre.c.

                                                                          {
       UnityMusicLensGenre * self = NULL;
       self = (UnityMusicLensGenre*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

static void unity_music_lens_genre_finalize ( GObject *  obj) [static]

Definition at line 411 of file genre.c.

                                                           {
       UnityMusicLensGenre * self;
       self = UNITY_MUSIC_LENS_GENRE (obj);
       G_OBJECT_CLASS (unity_music_lens_genre_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

GeeCollection * unity_music_lens_genre_get_genre_synonyms ( UnityMusicLensGenre *  self,
const gchar *  genre_id 
)

Definition at line 88 of file genre.c.

                                                                                                            {
       GeeCollection* result = NULL;
       GeeTreeMultiMap* _tmp0_;
       const gchar* _tmp1_;
       gboolean _tmp2_ = FALSE;
       GeeLinkedList* _tmp6_;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (genre_id != NULL, NULL);
       _tmp0_ = unity_music_lens_genre_map;
       _tmp1_ = genre_id;
       _tmp2_ = gee_multi_map_contains ((GeeMultiMap*) _tmp0_, _tmp1_);
       if (_tmp2_) {
              GeeTreeMultiMap* _tmp3_;
              const gchar* _tmp4_;
              GeeCollection* _tmp5_ = NULL;
              _tmp3_ = unity_music_lens_genre_map;
              _tmp4_ = genre_id;
              _tmp5_ = gee_multi_map_get ((GeeMultiMap*) _tmp3_, _tmp4_);
              result = _tmp5_;
              return result;
       }
       _tmp6_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
       result = (GeeCollection*) _tmp6_;
       return result;
}

Here is the caller graph for this function:

gchar * unity_music_lens_genre_get_id_for_genre ( UnityMusicLensGenre *  self,
const gchar *  genre 
)

Definition at line 115 of file genre.c.

                                                                                               {
       gchar* result = NULL;
       GeeMap* _tmp0_;
       const gchar* _tmp1_;
       gpointer _tmp2_ = NULL;
       gchar* _tmp3_;
       const gchar* _tmp4_;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (genre != NULL, NULL);
       _tmp0_ = unity_music_lens_genre_inverted_map;
       _tmp1_ = genre;
       _tmp2_ = gee_map_get (_tmp0_, _tmp1_);
       _tmp3_ = (gchar*) _tmp2_;
       _tmp4_ = _tmp3_;
       if (_tmp4_ == NULL) {
              gchar* _tmp5_;
              _tmp5_ = g_strdup (UNITY_MUSIC_LENS_GENRE_OTHER_ID);
              _g_free0 (_tmp3_);
              _tmp3_ = _tmp5_;
       }
       result = _tmp3_;
       return result;
}

Here is the caller graph for this function:

Definition at line 59 of file genre.c.

      {
       UNITY_MUSIC_LENS_GENRE_DUMMY_PROPERTY
};
static void unity_music_lens_genre_instance_init ( UnityMusicLensGenre *  self) [static]

Definition at line 407 of file genre.c.

                                                                              {
}
UnityMusicLensGenre* unity_music_lens_genre_new ( void  )

Definition at line 147 of file genre.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

static GeeMap * unity_music_lens_genre_inverted_map = NULL [static]

Definition at line 56 of file genre.c.

static GeeTreeMultiMap * unity_music_lens_genre_map = NULL [static]

Definition at line 54 of file genre.c.

gpointer unity_music_lens_genre_parent_class = NULL [static]

Definition at line 53 of file genre.c.