~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to metadata/sj-structures.h

  • Committer: Jonathan Matthew
  • Author(s): Jonathan Matthew
  • Date: 2007-01-07 12:16:12 UTC
  • Revision ID: git-v1:5b6958ea3cf24f2c8bcfa15b9cab1fc7798b7305
Moved lots of files around. Now everything should be in the directory it's

2007-01-07  Jonathan Matthew  <jonathan@kaolin.wh9.net>

        Moved lots of files around.  Now everything should be in the directory
        it's built in and all plugin-specific files should be installed into
        the plugin directory.

        * plugins/audioscrobbler/rb-audioscrobbler-plugin.c:
        (impl_create_configure_dialog):
        * plugins/audioscrobbler/rb-audioscrobbler.c:
        (rb_audioscrobbler_class_init), (rb_audioscrobbler_dispose),
        (rb_audioscrobbler_finalize),
        (rb_audioscrobbler_get_config_widget):
        * plugins/audioscrobbler/rb-audioscrobbler.h:
        Use rb_plugin_find_file where needed.

        * widgets/rb-uri-dialog.c: (rb_uri_dialog_class_init),
        (rb_uri_dialog_init), (rb_uri_dialog_finalize),
        (rb_uri_dialog_new), (rb_uri_dialog_response_cb),
        (rb_uri_dialog_text_changed):
        * widgets/rb-uri-dialog.h:
        New common 'enter a URI' dialog, used by iradio and podcast code.

        * plugins/iradio/rb-iradio-plugin.c: (impl_activate):
        * plugins/iradio/rb-iradio-source.c:
        (rb_iradio_source_constructor), (rb_iradio_source_new),
        (impl_song_properties), (rb_iradio_source_first_time_changed),
        (new_station_location_added), (rb_iradio_source_cmd_new_station):
        * plugins/iradio/rb-iradio-source.h:
        * plugins/iradio/rb-station-properties-dialog.c:
        (rb_station_properties_dialog_class_init),
        (rb_station_properties_dialog_init),
        (rb_station_properties_dialog_constructor),
        (rb_station_properties_dialog_set_property),
        (rb_station_properties_dialog_get_property),
        (rb_station_properties_dialog_new):
        * plugins/iradio/rb-station-properties-dialog.h:
        Use the common URI dialog, use rb_plugin_find_file where needed.

        * sources/rb-podcast-source.c:
        (rb_podcast_source_location_added_cb),
        (rb_podcast_source_cmd_new_podcast):
        Use the common URI dialog.

svn path=/trunk/; revision=4725

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * Copyright (C) 2003 Ross Burton <ross@burtonini.com>
3
 
 *
4
 
 * Sound Juicer - sj-structures.h
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
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, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
 
 *
20
 
 * Authors: Ross Burton <ross@burtonini.com>
21
 
 */
22
 
 
23
 
#ifndef SJ_STRUCTURES_H
24
 
#define SJ_STRUCTURES_H
25
 
 
26
 
#include <glib/glist.h>
27
 
#include <gtk/gtktreemodel.h>
28
 
 
29
 
typedef struct _AlbumDetails AlbumDetails;
30
 
typedef struct _TrackDetails TrackDetails;
31
 
 
32
 
 
33
 
struct _TrackDetails {
34
 
  AlbumDetails *album;
35
 
  int number; /* track number */
36
 
  char *title;
37
 
  char *artist;
38
 
  char* artist_sortname; /* Can be NULL, so fall back onto artist */
39
 
  int duration; /* seconds */
40
 
  char* track_id;
41
 
  char* artist_id;
42
 
  GtkTreeIter iter; /* Temporary iterator for internal use */
43
 
};
44
 
 
45
 
struct _AlbumDetails {
46
 
  char* title;
47
 
  char* artist;
48
 
  char* artist_sortname;
49
 
  char *genre;
50
 
  int   number; /* number of tracks in the album */
51
 
  GList* tracks;
52
 
  GDate *release_date; /* MusicBrainz support multiple releases per album */
53
 
  char* album_id;
54
 
  char* artist_id;
55
 
};
56
 
 
57
 
void album_details_free(AlbumDetails *album);
58
 
void track_details_free(TrackDetails *track);
59
 
 
60
 
#endif