Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
test-rhythmbox-parser.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>

Go to the source code of this file.

Classes

struct  _Main
struct  _MainClass
struct  _ParamSpecMain

Defines

#define TYPE_MAIN   (main_get_type ())
#define MAIN(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MAIN, Main))
#define MAIN_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MAIN, MainClass))
#define IS_MAIN(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MAIN))
#define IS_MAIN_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MAIN))
#define MAIN_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MAIN, MainClass))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER   (unity_music_lens_rhythmbox_collection_xml_parser_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParser))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_IS_XML_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_IS_XML_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))
#define UNITY_MUSIC_LENS_TYPE_TRACK   (unity_music_lens_track_get_type ())
#define UNITY_MUSIC_LENS_TRACK(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrack))
#define UNITY_MUSIC_LENS_TRACK_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))
#define UNITY_MUSIC_LENS_IS_TRACK(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_TRACK))
#define UNITY_MUSIC_LENS_IS_TRACK_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_TRACK))
#define UNITY_MUSIC_LENS_TRACK_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))
#define UNITY_MUSIC_LENS_TYPE_TRACK_TYPE   (unity_music_lens_track_type_get_type ())
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Typedefs

typedef struct _Main
typedef struct _MainClass
typedef struct _MainPrivate
typedef struct _UnityMusicLensRhythmboxCollectionXmlParser
typedef struct _UnityMusicLensRhythmboxCollectionXmlParserClass
typedef struct _UnityMusicLensTrack
typedef struct _UnityMusicLensTrackClass
typedef struct _ParamSpecMain

Enumerations

enum  UnityMusicLensTrackType {
  UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO, UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO,
  UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO
}

Functions

gpointer main_ref (gpointer instance)
void main_unref (gpointer instance)
GParamSpec * param_spec_main (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags)
void value_set_main (GValue *value, gpointer v_object)
void value_take_main (GValue *value, gpointer v_object)
gpointer value_get_main (const GValue *value)
GType main_get_type (void)
gint main_main (gchar **args, int args_length1)
static void main_test_radios (void)
static void _main_test_radios_gtest_data_func (gpointer self)
static void main_test_songs (void)
static void _main_test_songs_gtest_data_func (gpointer self)
static void main_test_lazy_load (void)
static void _main_test_lazy_load_gtest_data_func (gpointer self)
static void main_test_invalid_songload (void)
static void _main_test_invalid_songload_gtest_data_func (gpointer self)
UnityMusicLensRhythmboxCollectionXmlParser * unity_music_lens_rhythmbox_collection_xml_parser_new (void)
UnityMusicLensRhythmboxCollectionXmlParser * unity_music_lens_rhythmbox_collection_xml_parser_construct (GType object_type)
GType unity_music_lens_rhythmbox_collection_xml_parser_get_type (void)
int main (int argc, char **argv)
static void __lambda7_ (UnityMusicLensTrack *track)
static void ___lambda7__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready (UnityMusicLensRhythmboxCollectionXmlParser *_sender, UnityMusicLensTrack *track, gpointer self)
static void __lambda8_ (UnityMusicLensTrack *track)
static void ___lambda8__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready (UnityMusicLensRhythmboxCollectionXmlParser *_sender, UnityMusicLensTrack *track, gpointer self)
static void __lambda9_ (UnityMusicLensTrack *track)
static void ___lambda9__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready (UnityMusicLensRhythmboxCollectionXmlParser *_sender, UnityMusicLensTrack *track, gpointer self)
static void __lambda10_ (UnityMusicLensTrack *track)
static void ___lambda10__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready (UnityMusicLensRhythmboxCollectionXmlParser *_sender, UnityMusicLensTrack *track, gpointer self)
Main * main_construct (GType object_type)
Main * main_new (void)
static void value_main_init (GValue *value)
static void value_main_free_value (GValue *value)
static void value_main_copy_value (const GValue *src_value, GValue *dest_value)
static gpointer value_main_peek_pointer (const GValue *value)
static gchar * value_main_collect_value (GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static gchar * value_main_lcopy_value (const GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static void main_class_init (MainClass *klass)
static void main_instance_init (Main *self)
static void main_finalize (Main *obj)

Variables

static gpointer main_parent_class = NULL

Class Documentation

struct _Main

Definition at line 66 of file test-rhythmbox-parser.c.

Class Members
GTypeInstance parent_instance
MainPrivate * priv
volatile int ref_count
struct _ParamSpecMain

Definition at line 82 of file test-rhythmbox-parser.c.

Class Members
GParamSpec parent_instance

Define Documentation

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

Definition at line 62 of file test-rhythmbox-parser.c.

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

Definition at line 63 of file test-rhythmbox-parser.c.

#define IS_MAIN (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MAIN))

Definition at line 33 of file test-rhythmbox-parser.c.

#define IS_MAIN_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MAIN))

Definition at line 34 of file test-rhythmbox-parser.c.

#define MAIN (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MAIN, Main))

Definition at line 31 of file test-rhythmbox-parser.c.

#define MAIN_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MAIN, MainClass))

Definition at line 32 of file test-rhythmbox-parser.c.

#define MAIN_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MAIN, MainClass))

Definition at line 35 of file test-rhythmbox-parser.c.

#define TYPE_MAIN   (main_get_type ())

Definition at line 30 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_IS_TRACK (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_TRACK))

Definition at line 54 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_IS_TRACK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_TRACK))

Definition at line 55 of file test-rhythmbox-parser.c.

Definition at line 44 of file test-rhythmbox-parser.c.

Definition at line 45 of file test-rhythmbox-parser.c.

Definition at line 41 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParser))

Definition at line 42 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))

Definition at line 43 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))

Definition at line 46 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_TRACK (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrack))

Definition at line 52 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_TRACK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))

Definition at line 53 of file test-rhythmbox-parser.c.

#define UNITY_MUSIC_LENS_TRACK_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))

Definition at line 56 of file test-rhythmbox-parser.c.

Definition at line 51 of file test-rhythmbox-parser.c.

Definition at line 61 of file test-rhythmbox-parser.c.


Typedef Documentation

typedef struct _Main

Definition at line 37 of file test-rhythmbox-parser.c.

typedef struct _MainClass

Definition at line 38 of file test-rhythmbox-parser.c.

typedef struct _MainPrivate

Definition at line 39 of file test-rhythmbox-parser.c.

typedef struct _ParamSpecMain

Definition at line 64 of file test-rhythmbox-parser.c.

Definition at line 48 of file test-rhythmbox-parser.c.

Definition at line 49 of file test-rhythmbox-parser.c.

typedef struct _UnityMusicLensTrack

Definition at line 58 of file test-rhythmbox-parser.c.

typedef struct _UnityMusicLensTrackClass

Definition at line 59 of file test-rhythmbox-parser.c.


Enumeration Type Documentation

Enumerator:
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 

Definition at line 77 of file test-rhythmbox-parser.c.


Function Documentation

static void ___lambda10__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready ( UnityMusicLensRhythmboxCollectionXmlParser *  _sender,
UnityMusicLensTrack *  track,
gpointer  self 
) [static]

Definition at line 515 of file test-rhythmbox-parser.c.

                                                                                                                                                                                            {
       __lambda10_ (track);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda7__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready ( UnityMusicLensRhythmboxCollectionXmlParser *  _sender,
UnityMusicLensTrack *  track,
gpointer  self 
) [static]

Definition at line 228 of file test-rhythmbox-parser.c.

                                                                                                                                                                                           {
       __lambda7_ (track);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda8__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready ( UnityMusicLensRhythmboxCollectionXmlParser *  _sender,
UnityMusicLensTrack *  track,
gpointer  self 
) [static]

Definition at line 337 of file test-rhythmbox-parser.c.

                                                                                                                                                                                           {
       __lambda8_ (track);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda9__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready ( UnityMusicLensRhythmboxCollectionXmlParser *  _sender,
UnityMusicLensTrack *  track,
gpointer  self 
) [static]

Definition at line 415 of file test-rhythmbox-parser.c.

                                                                                                                                                                                           {
       __lambda9_ (track);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda10_ ( UnityMusicLensTrack *  track) [static]

Definition at line 496 of file test-rhythmbox-parser.c.

                                                     {
       UnityMusicLensTrack* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       UnityMusicLensTrack* _tmp3_;
       UnityMusicLensTrackType _tmp4_;
       UnityMusicLensTrackType _tmp5_;
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_title (_tmp0_);
       _tmp2_ = _tmp1_;
       g_assert_cmpstr (_tmp2_, ==, "le poisson");
       _tmp3_ = track;
       _tmp4_ = unity_music_lens_track_get_type_track (_tmp3_);
       _tmp5_ = _tmp4_;
       g_assert (_tmp5_ == UNITY_MUSIC_LENS_TRACK_TYPE_SONG);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda7_ ( UnityMusicLensTrack *  track) [static]

Definition at line 174 of file test-rhythmbox-parser.c.

                                                    {
       UnityMusicLensTrack* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       UnityMusicLensTrack* _tmp3_;
       const gchar* _tmp4_;
       const gchar* _tmp5_;
       UnityMusicLensTrack* _tmp6_;
       const gchar* _tmp7_;
       const gchar* _tmp8_;
       UnityMusicLensTrack* _tmp9_;
       const gchar* _tmp10_;
       const gchar* _tmp11_;
       UnityMusicLensTrack* _tmp12_;
       const gchar* _tmp13_;
       const gchar* _tmp14_;
       UnityMusicLensTrack* _tmp15_;
       gint _tmp16_;
       gint _tmp17_;
       UnityMusicLensTrack* _tmp18_;
       UnityMusicLensTrackType _tmp19_;
       UnityMusicLensTrackType _tmp20_;
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_title (_tmp0_);
       _tmp2_ = _tmp1_;
       g_assert_cmpstr (_tmp2_, ==, "Absolute Radio 80s (Modem)");
       _tmp3_ = track;
       _tmp4_ = unity_music_lens_track_get_genre (_tmp3_);
       _tmp5_ = _tmp4_;
       g_assert_cmpstr (_tmp5_, ==, "other");
       _tmp6_ = track;
       _tmp7_ = unity_music_lens_track_get_artist (_tmp6_);
       _tmp8_ = _tmp7_;
       g_assert_cmpstr (_tmp8_, ==, "");
       _tmp9_ = track;
       _tmp10_ = unity_music_lens_track_get_album (_tmp9_);
       _tmp11_ = _tmp10_;
       g_assert_cmpstr (_tmp11_, ==, "");
       _tmp12_ = track;
       _tmp13_ = unity_music_lens_track_get_uri (_tmp12_);
       _tmp14_ = _tmp13_;
       g_assert_cmpstr (_tmp14_, ==, "http://network.absoluteradio.co.uk/core/audio/ogg/live.pls?service=a8");
       _tmp15_ = track;
       _tmp16_ = unity_music_lens_track_get_year (_tmp15_);
       _tmp17_ = _tmp16_;
       g_assert_cmpint (_tmp17_, ==, 0);
       _tmp18_ = track;
       _tmp19_ = unity_music_lens_track_get_type_track (_tmp18_);
       _tmp20_ = _tmp19_;
       g_assert (_tmp20_ == UNITY_MUSIC_LENS_TRACK_TYPE_RADIO);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda8_ ( UnityMusicLensTrack *  track) [static]

Definition at line 276 of file test-rhythmbox-parser.c.

                                                    {
       UnityMusicLensTrack* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       UnityMusicLensTrack* _tmp3_;
       const gchar* _tmp4_;
       const gchar* _tmp5_;
       UnityMusicLensTrack* _tmp6_;
       const gchar* _tmp7_;
       const gchar* _tmp8_;
       UnityMusicLensTrack* _tmp9_;
       const gchar* _tmp10_;
       const gchar* _tmp11_;
       UnityMusicLensTrack* _tmp12_;
       const gchar* _tmp13_;
       const gchar* _tmp14_;
       UnityMusicLensTrack* _tmp15_;
       gint _tmp16_;
       gint _tmp17_;
       UnityMusicLensTrack* _tmp18_;
       const gchar* _tmp19_;
       const gchar* _tmp20_;
       UnityMusicLensTrack* _tmp21_;
       UnityMusicLensTrackType _tmp22_;
       UnityMusicLensTrackType _tmp23_;
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_title (_tmp0_);
       _tmp2_ = _tmp1_;
       g_assert_cmpstr (_tmp2_, ==, "LA PASSION");
       _tmp3_ = track;
       _tmp4_ = unity_music_lens_track_get_genre (_tmp3_);
       _tmp5_ = _tmp4_;
       g_assert_cmpstr (_tmp5_, ==, "techno");
       _tmp6_ = track;
       _tmp7_ = unity_music_lens_track_get_artist (_tmp6_);
       _tmp8_ = _tmp7_;
       g_assert_cmpstr (_tmp8_, ==, "GIGI D'AGOSTINO");
       _tmp9_ = track;
       _tmp10_ = unity_music_lens_track_get_album (_tmp9_);
       _tmp11_ = _tmp10_;
       g_assert_cmpstr (_tmp11_, ==, "Loulou 007");
       _tmp12_ = track;
       _tmp13_ = unity_music_lens_track_get_uri (_tmp12_);
       _tmp14_ = _tmp13_;
       g_assert_cmpstr (_tmp14_, ==, "file:///home/moi/Gigi%20d'agostino%20Passion.mp3");
       _tmp15_ = track;
       _tmp16_ = unity_music_lens_track_get_year (_tmp15_);
       _tmp17_ = _tmp16_;
       g_assert_cmpint (_tmp17_, ==, 2000);
       _tmp18_ = track;
       _tmp19_ = unity_music_lens_track_get_mime_type (_tmp18_);
       _tmp20_ = _tmp19_;
       g_assert_cmpstr (_tmp20_, ==, "audio/mpeg");
       _tmp21_ = track;
       _tmp22_ = unity_music_lens_track_get_type_track (_tmp21_);
       _tmp23_ = _tmp22_;
       g_assert (_tmp23_ == UNITY_MUSIC_LENS_TRACK_TYPE_SONG);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda9_ ( UnityMusicLensTrack *  track) [static]

Definition at line 389 of file test-rhythmbox-parser.c.

                                                    {
       UnityMusicLensTrack* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       UnityMusicLensTrack* _tmp3_;
       const gchar* _tmp4_;
       const gchar* _tmp5_;
       UnityMusicLensTrack* _tmp6_;
       UnityMusicLensTrackType _tmp7_;
       UnityMusicLensTrackType _tmp8_;
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_title (_tmp0_);
       _tmp2_ = _tmp1_;
       g_assert_cmpstr (_tmp2_, ==, "LA PASSION");
       _tmp3_ = track;
       _tmp4_ = unity_music_lens_track_get_album (_tmp3_);
       _tmp5_ = _tmp4_;
       g_assert_cmpstr (_tmp5_, ==, "Loulou 007");
       _tmp6_ = track;
       _tmp7_ = unity_music_lens_track_get_type_track (_tmp6_);
       _tmp8_ = _tmp7_;
       g_assert (_tmp8_ == UNITY_MUSIC_LENS_TRACK_TYPE_SONG);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _main_test_invalid_songload_gtest_data_func ( gpointer  self) [static]

Definition at line 150 of file test-rhythmbox-parser.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _main_test_lazy_load_gtest_data_func ( gpointer  self) [static]

Definition at line 145 of file test-rhythmbox-parser.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void _main_test_radios_gtest_data_func ( gpointer  self) [static]

Here is the caller graph for this function:

static void _main_test_songs_gtest_data_func ( gpointer  self) [static]

Definition at line 140 of file test-rhythmbox-parser.c.

                                                             {
       main_test_songs ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 168 of file test-rhythmbox-parser.c.

                                  {
       g_type_init ();
       return main_main (argv, argc);
}

Here is the call graph for this function:

static void main_class_init ( MainClass *  klass) [static]

Definition at line 678 of file test-rhythmbox-parser.c.

                                                {
       main_parent_class = g_type_class_peek_parent (klass);
       MAIN_CLASS (klass)->finalize = main_finalize;
}

Here is the call graph for this function:

Main* main_construct ( GType  object_type)

Definition at line 556 of file test-rhythmbox-parser.c.

                                         {
       Main* self = NULL;
       self = (Main*) g_type_create_instance (object_type);
       return self;
}

Here is the caller graph for this function:

static void main_finalize ( Main *  obj) [static]

Definition at line 689 of file test-rhythmbox-parser.c.

                                      {
       Main * self;
       self = MAIN (obj);
}

Here is the caller graph for this function:

GType main_get_type ( void  )

Definition at line 95 of file test-rhythmbox-parser.c.

      {
       MAIN_DUMMY_PROPERTY
};
static void main_instance_init ( Main *  self) [static]

Definition at line 684 of file test-rhythmbox-parser.c.

                                             {
       self->ref_count = 1;
}
gint main_main ( gchar **  args,
int  args_length1 
)

Definition at line 155 of file test-rhythmbox-parser.c.

                                                {
       gint result = 0;
       g_test_init (&args_length1, &args, NULL);
       g_test_add_data_func ("/Unit/ParserChecker/Radios", NULL, _main_test_radios_gtest_data_func);
       g_test_add_data_func ("/Unit/ParserChecker/Songs", NULL, _main_test_songs_gtest_data_func);
       g_test_add_data_func ("/Unit/ParserChecker/LazyLoad", NULL, _main_test_lazy_load_gtest_data_func);
       g_test_add_data_func ("/Unit/ParserChecker/LazyLoad", NULL, _main_test_invalid_songload_gtest_data_func);
       g_test_run ();
       result = 0;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Main* main_new ( void  )

Definition at line 563 of file test-rhythmbox-parser.c.

                      {
       return main_construct (TYPE_MAIN);
}

Here is the call graph for this function:

gpointer main_ref ( gpointer  instance)

Definition at line 709 of file test-rhythmbox-parser.c.

                                      {
       Main* self;
       self = instance;
       g_atomic_int_inc (&self->ref_count);
       return instance;
}

Here is the caller graph for this function:

static void main_test_invalid_songload ( void  ) [static]

Definition at line 520 of file test-rhythmbox-parser.c.

                                              {
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp0_;
       UnityMusicLensRhythmboxCollectionXmlParser* parser;
       gchar* _tmp1_;
       gchar* collection_to_parse_chunk;
       gint _tmp2_;
       gint _tmp3_;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_music_lens_rhythmbox_collection_xml_parser_new ();
       parser = _tmp0_;
       _tmp1_ = g_strdup ("<?xml version=\"1.0\" standalone=\"yes\"?>\n" \
"<rhythmdb version=\"1.8\">\n" \
"  <entry type=\"song\">\n" \
"    <title>LA PASSION</title>\n" \
"    <genre>Dance</genre>\n" \
"  <entry type=\"song\">\n" \
"    <title>le poisson</title>\n" \
"    <genre>Dance</genre>\n" \
"  </entry>");
       collection_to_parse_chunk = _tmp1_;
       g_signal_connect (parser, "track-info-ready", (GCallback) ___lambda10__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready, NULL);
       _tmp2_ = strlen (collection_to_parse_chunk);
       _tmp3_ = _tmp2_;
       unity_music_lens_rhythmbox_collection_xml_parser_parse (parser, collection_to_parse_chunk, (gsize) _tmp3_, &_inner_error_);
       if (_inner_error_ != NULL) {
              _g_free0 (collection_to_parse_chunk);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _g_free0 (collection_to_parse_chunk);
       _g_object_unref0 (parser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void main_test_lazy_load ( void  ) [static]

Definition at line 420 of file test-rhythmbox-parser.c.

                                       {
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp0_;
       UnityMusicLensRhythmboxCollectionXmlParser* parser;
       gchar* _tmp1_;
       gchar* collection_to_parse_chunk;
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp2_;
       const gchar* _tmp3_;
       const gchar* _tmp4_;
       gint _tmp5_;
       gint _tmp6_;
       gchar* _tmp7_;
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp8_;
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp9_;
       const gchar* _tmp10_;
       const gchar* _tmp11_;
       gint _tmp12_;
       gint _tmp13_;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_music_lens_rhythmbox_collection_xml_parser_new ();
       parser = _tmp0_;
       _tmp1_ = g_strdup ("<?xml version=\"1.0\" standalone=\"yes\"?>\n" \
"<rhythmdb version=\"1.8\">\n" \
"  <entry type=\"song\">\n" \
"    <title>LA PASSION</title>\n" \
"    <genre>Dance</genre>\n" \
"    <artist>GIGI D'AGOSTINO</artist>\n");
       collection_to_parse_chunk = _tmp1_;
       _tmp2_ = parser;
       _tmp3_ = collection_to_parse_chunk;
       _tmp4_ = collection_to_parse_chunk;
       _tmp5_ = strlen (_tmp4_);
       _tmp6_ = _tmp5_;
       unity_music_lens_rhythmbox_collection_xml_parser_parse (_tmp2_, _tmp3_, (gsize) _tmp6_, &_inner_error_);
       if (_inner_error_ != NULL) {
              _g_free0 (collection_to_parse_chunk);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp7_ = g_strdup ("\n" \
"    <album>Loulou 007</album>\n" \
"    <duration>228</duration>\n" \
"    <file-size>3661842</file-size>\n" \
"    <location>file:///home/moi/Gigi%20d'agostino%20Passion.mp3</locati" \
"on>\n" \
"    <mtime>1338273042</mtime>\n" \
"    <first-seen>1338536342</first-seen>\n" \
"    <last-seen>1340378542</last-seen>\n" \
"    <bitrate>128</bitrate>\n" \
"    <date>730142</date>\n" \
"    <media-type>audio/mpeg</media-type>\n" \
"    <comment>http://www.danceparadise.ca.tc</comment>\n" \
"  </entry>");
       _g_free0 (collection_to_parse_chunk);
       collection_to_parse_chunk = _tmp7_;
       _tmp8_ = parser;
       g_signal_connect (_tmp8_, "track-info-ready", (GCallback) ___lambda9__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready, NULL);
       _tmp9_ = parser;
       _tmp10_ = collection_to_parse_chunk;
       _tmp11_ = collection_to_parse_chunk;
       _tmp12_ = strlen (_tmp11_);
       _tmp13_ = _tmp12_;
       unity_music_lens_rhythmbox_collection_xml_parser_parse (_tmp9_, _tmp10_, (gsize) _tmp13_, &_inner_error_);
       if (_inner_error_ != NULL) {
              _g_free0 (collection_to_parse_chunk);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _g_free0 (collection_to_parse_chunk);
       _g_object_unref0 (parser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void main_test_radios ( void  ) [static]

Definition at line 233 of file test-rhythmbox-parser.c.

                                    {
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp0_;
       UnityMusicLensRhythmboxCollectionXmlParser* parser;
       gchar* _tmp1_;
       gchar* collection_to_parse;
       gint _tmp2_;
       gint _tmp3_;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_music_lens_rhythmbox_collection_xml_parser_new ();
       parser = _tmp0_;
       _tmp1_ = g_strdup ("<?xml version=\"1.0\" standalone=\"yes\"?>\n" \
"<rhythmdb version=\"1.8\">\n" \
"  <entry type=\"iradio\">\n" \
"    <title>Absolute Radio 80s (Modem)</title>\n" \
"    <genre>80's</genre>\n" \
"    <artist></artist>\n" \
"    <album></album>\n" \
"    <location>http://network.absoluteradio.co.uk/core/audio/ogg/live.p" \
"ls?service=a8</location>\n" \
"    <play-count>6</play-count>\n" \
"    <last-played>1339693331</last-played>\n" \
"    <bitrate>32</bitrate>\n" \
"    <date>0</date>\n" \
"    <media-type>application/octet-stream</media-type>\n" \
"  </entry>\n" \
"</rhythmdb>");
       collection_to_parse = _tmp1_;
       g_signal_connect (parser, "track-info-ready", (GCallback) ___lambda7__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready, NULL);
       _tmp2_ = strlen (collection_to_parse);
       _tmp3_ = _tmp2_;
       unity_music_lens_rhythmbox_collection_xml_parser_parse (parser, collection_to_parse, (gsize) _tmp3_, &_inner_error_);
       if (_inner_error_ != NULL) {
              _g_free0 (collection_to_parse);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _g_free0 (collection_to_parse);
       _g_object_unref0 (parser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void main_test_songs ( void  ) [static]

Definition at line 342 of file test-rhythmbox-parser.c.

                                   {
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp0_;
       UnityMusicLensRhythmboxCollectionXmlParser* parser;
       gchar* _tmp1_;
       gchar* collection_to_parse;
       gint _tmp2_;
       gint _tmp3_;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_music_lens_rhythmbox_collection_xml_parser_new ();
       parser = _tmp0_;
       _tmp1_ = g_strdup ("<?xml version=\"1.0\" standalone=\"yes\"?>\n" \
"<rhythmdb version=\"1.8\">\n" \
"  <entry type=\"song\">\n" \
"    <title>LA PASSION</title>\n" \
"    <genre>Dance</genre>\n" \
"    <artist>GIGI D'AGOSTINO</artist>\n" \
"    <album>Loulou 007</album>\n" \
"    <duration>228</duration>\n" \
"    <file-size>3661842</file-size>\n" \
"    <location>file:///home/moi/Gigi%20d'agostino%20Passion.mp3</locati" \
"on>\n" \
"    <mtime>1338273042</mtime>\n" \
"    <first-seen>1338536342</first-seen>\n" \
"    <last-seen>1340378542</last-seen>\n" \
"    <bitrate>128</bitrate>\n" \
"    <date>730142</date>\n" \
"    <media-type>audio/mpeg</media-type>\n" \
"    <comment>http://www.danceparadise.ca.tc</comment>\n" \
"  </entry>\n" \
"</rhythmdb>");
       collection_to_parse = _tmp1_;
       g_signal_connect (parser, "track-info-ready", (GCallback) ___lambda8__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready, NULL);
       _tmp2_ = strlen (collection_to_parse);
       _tmp3_ = _tmp2_;
       unity_music_lens_rhythmbox_collection_xml_parser_parse (parser, collection_to_parse, (gsize) _tmp3_, &_inner_error_);
       if (_inner_error_ != NULL) {
              _g_free0 (collection_to_parse);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _g_free0 (collection_to_parse);
       _g_object_unref0 (parser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void main_unref ( gpointer  instance)

Definition at line 717 of file test-rhythmbox-parser.c.

                                    {
       Main* self;
       self = instance;
       if (g_atomic_int_dec_and_test (&self->ref_count)) {
              MAIN_GET_CLASS (self)->finalize (self);
              g_type_free_instance ((GTypeInstance *) self);
       }
}

Here is the caller graph for this function:

GParamSpec * param_spec_main ( const gchar *  name,
const gchar *  nick,
const gchar *  blurb,
GType  object_type,
GParamFlags  flags 
)

Definition at line 628 of file test-rhythmbox-parser.c.

                                                                                                                             {
       ParamSpecMain* spec;
       g_return_val_if_fail (g_type_is_a (object_type, TYPE_MAIN), NULL);
       spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
       G_PARAM_SPEC (spec)->value_type = object_type;
       return G_PARAM_SPEC (spec);
}
UnityMusicLensRhythmboxCollectionXmlParser* unity_music_lens_rhythmbox_collection_xml_parser_construct ( GType  object_type)

Definition at line 3799 of file rhythmbox-collection.c.

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

Here is the caller graph for this function:

Definition at line 110 of file test-rhythmbox-parser.c.

Here is the call graph for this function:

UnityMusicLensRhythmboxCollectionXmlParser* unity_music_lens_rhythmbox_collection_xml_parser_new ( void  )

Definition at line 3806 of file rhythmbox-collection.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer value_get_main ( const GValue *  value)

Definition at line 637 of file test-rhythmbox-parser.c.

                                              {
       g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MAIN), NULL);
       return value->data[0].v_pointer;
}
static gchar* value_main_collect_value ( GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 594 of file test-rhythmbox-parser.c.

                                                                                                                                 {
       if (collect_values[0].v_pointer) {
              Main* object;
              object = collect_values[0].v_pointer;
              if (object->parent_instance.g_class == NULL) {
                     return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
                     return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              }
              value->data[0].v_pointer = main_ref (object);
       } else {
              value->data[0].v_pointer = NULL;
       }
       return NULL;
}

Here is the call graph for this function:

static void value_main_copy_value ( const GValue *  src_value,
GValue *  dest_value 
) [static]

Definition at line 580 of file test-rhythmbox-parser.c.

                                                                                {
       if (src_value->data[0].v_pointer) {
              dest_value->data[0].v_pointer = main_ref (src_value->data[0].v_pointer);
       } else {
              dest_value->data[0].v_pointer = NULL;
       }
}

Here is the call graph for this function:

static void value_main_free_value ( GValue *  value) [static]

Definition at line 573 of file test-rhythmbox-parser.c.

                                                  {
       if (value->data[0].v_pointer) {
              main_unref (value->data[0].v_pointer);
       }
}

Here is the call graph for this function:

static void value_main_init ( GValue *  value) [static]

Definition at line 568 of file test-rhythmbox-parser.c.

                                            {
       value->data[0].v_pointer = NULL;
}
static gchar* value_main_lcopy_value ( const GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 611 of file test-rhythmbox-parser.c.

                                                                                                                                     {
       Main** object_p;
       object_p = collect_values[0].v_pointer;
       if (!object_p) {
              return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
       }
       if (!value->data[0].v_pointer) {
              *object_p = NULL;
       } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
              *object_p = value->data[0].v_pointer;
       } else {
              *object_p = main_ref (value->data[0].v_pointer);
       }
       return NULL;
}

Here is the call graph for this function:

static gpointer value_main_peek_pointer ( const GValue *  value) [static]

Definition at line 589 of file test-rhythmbox-parser.c.

                                                              {
       return value->data[0].v_pointer;
}
void value_set_main ( GValue *  value,
gpointer  v_object 
)

Definition at line 643 of file test-rhythmbox-parser.c.

                                                       {
       Main* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MAIN));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MAIN));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
              main_ref (value->data[0].v_pointer);
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              main_unref (old);
       }
}

Here is the call graph for this function:

void value_take_main ( GValue *  value,
gpointer  v_object 
)

Definition at line 661 of file test-rhythmbox-parser.c.

                                                        {
       Main* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_MAIN));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_MAIN));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              main_unref (old);
       }
}

Here is the call graph for this function:


Variable Documentation

gpointer main_parent_class = NULL [static]

Definition at line 87 of file test-rhythmbox-parser.c.