[sound-juicer/musicbrainz4: 2/12] mb4: s/musicbrainz3/musicbrainz4
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer/musicbrainz4: 2/12] mb4: s/musicbrainz3/musicbrainz4
- Date: Mon, 7 Nov 2011 15:11:06 +0000 (UTC)
commit 2193a8b42599f5404932a7a9b0dc42bff6d55db9
Author: Christophe Fergeau <cfergeau redhat com>
Date: Sat Jul 30 01:02:05 2011 +0200
mb4: s/musicbrainz3/musicbrainz4
libjuicer/sj-metadata-musicbrainz4.c | 52 +++++++++++++++++-----------------
libjuicer/sj-metadata-musicbrainz4.h | 32 ++++++++++----------
2 files changed, 42 insertions(+), 42 deletions(-)
---
diff --git a/libjuicer/sj-metadata-musicbrainz4.c b/libjuicer/sj-metadata-musicbrainz4.c
index ee96946..9f12692 100644
--- a/libjuicer/sj-metadata-musicbrainz4.c
+++ b/libjuicer/sj-metadata-musicbrainz4.c
@@ -1,5 +1,5 @@
/*
- * sj-metadata-musicbrainz3.c
+ * sj-metadata-musicbrainz4.c
* Copyright (C) 2008 Ross Burton <ross burtonini com>
* Copyright (C) 2008 Bastien Nocera <hadess hadess net>
*
@@ -28,9 +28,9 @@
#include <glib.h>
#include <glib-object.h>
#include <gconf/gconf-client.h>
-#include <musicbrainz3/mb_c.h>
+#include <musicbrainz4/mb_c.h>
-#include "sj-metadata-musicbrainz3.h"
+#include "sj-metadata-musicbrainz4.h"
#include "sj-structures.h"
#include "sj-error.h"
@@ -79,10 +79,10 @@ typedef struct {
/* Proxy */
char *http_proxy;
int http_proxy_port;
-} SjMetadataMusicbrainz3Private;
+} SjMetadataMusicbrainz4Private;
#define GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), SJ_TYPE_METADATA_MUSICBRAINZ3, SjMetadataMusicbrainz3Private))
+ (G_TYPE_INSTANCE_GET_PRIVATE ((o), SJ_TYPE_METADATA_MUSICBRAINZ4, SjMetadataMusicbrainz4Private))
enum {
PROP_0,
@@ -94,8 +94,8 @@ enum {
static void metadata_interface_init (gpointer g_iface, gpointer iface_data);
-G_DEFINE_TYPE_WITH_CODE (SjMetadataMusicbrainz3,
- sj_metadata_musicbrainz3,
+G_DEFINE_TYPE_WITH_CODE (SjMetadataMusicbrainz4,
+ sj_metadata_musicbrainz4,
G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (SJ_TYPE_METADATA,
metadata_interface_init));
@@ -226,7 +226,7 @@ get_release_includes (void)
static GList *
mb_list_albums (SjMetadata *metadata, char **url, GError **error)
{
- SjMetadataMusicbrainz3Private *priv;
+ SjMetadataMusicbrainz4Private *priv;
GList *albums = NULL;
MbQuery query;
MbReleaseFilter filter;
@@ -235,7 +235,7 @@ mb_list_albums (SjMetadata *metadata, char **url, GError **error)
char *id = NULL;
char buffer[1024];
int i;
- g_return_val_if_fail (SJ_IS_METADATA_MUSICBRAINZ3 (metadata), NULL);
+ g_return_val_if_fail (SJ_IS_METADATA_MUSICBRAINZ4 (metadata), NULL);
priv = GET_PRIVATE (metadata);
@@ -315,12 +315,12 @@ metadata_interface_init (gpointer g_iface, gpointer iface_data)
}
static void
-sj_metadata_musicbrainz3_init (SjMetadataMusicbrainz3 *self)
+sj_metadata_musicbrainz4_init (SjMetadataMusicbrainz4 *self)
{
GConfClient *gconf_client;
gchar *server_name;
- SjMetadataMusicbrainz3Private *priv;
+ SjMetadataMusicbrainz4Private *priv;
priv = GET_PRIVATE (self);
@@ -365,10 +365,10 @@ sj_metadata_musicbrainz3_init (SjMetadataMusicbrainz3 *self)
}
static void
-sj_metadata_musicbrainz3_get_property (GObject *object, guint property_id,
+sj_metadata_musicbrainz4_get_property (GObject *object, guint property_id,
GValue *value, GParamSpec *pspec)
{
- SjMetadataMusicbrainz3Private *priv = GET_PRIVATE (object);
+ SjMetadataMusicbrainz4Private *priv = GET_PRIVATE (object);
g_assert (priv);
switch (property_id) {
@@ -387,10 +387,10 @@ sj_metadata_musicbrainz3_get_property (GObject *object, guint property_id,
}
static void
-sj_metadata_musicbrainz3_set_property (GObject *object, guint property_id,
+sj_metadata_musicbrainz4_set_property (GObject *object, guint property_id,
const GValue *value, GParamSpec *pspec)
{
- SjMetadataMusicbrainz3Private *priv = GET_PRIVATE (object);
+ SjMetadataMusicbrainz4Private *priv = GET_PRIVATE (object);
g_assert (priv);
switch (property_id) {
@@ -417,31 +417,31 @@ sj_metadata_musicbrainz3_set_property (GObject *object, guint property_id,
}
static void
-sj_metadata_musicbrainz3_finalize (GObject *object)
+sj_metadata_musicbrainz4_finalize (GObject *object)
{
- SjMetadataMusicbrainz3Private *priv;
+ SjMetadataMusicbrainz4Private *priv;
priv = GET_PRIVATE (object);
if (priv->mb != NULL) {
- mb_webservice_free (priv->mb);
+ mb4_query_delete (priv->mb);
priv->mb = NULL;
}
g_free (priv->cdrom);
- G_OBJECT_CLASS (sj_metadata_musicbrainz3_parent_class)->finalize (object);
+ G_OBJECT_CLASS (sj_metadata_musicbrainz4_parent_class)->finalize (object);
}
static void
-sj_metadata_musicbrainz3_class_init (SjMetadataMusicbrainz3Class *class)
+sj_metadata_musicbrainz4_class_init (SjMetadataMusicbrainz4Class *class)
{
GObjectClass *object_class = (GObjectClass*)class;
- g_type_class_add_private (class, sizeof (SjMetadataMusicbrainz3Private));
+ g_type_class_add_private (class, sizeof (SjMetadataMusicbrainz4Private));
- object_class->get_property = sj_metadata_musicbrainz3_get_property;
- object_class->set_property = sj_metadata_musicbrainz3_set_property;
- object_class->finalize = sj_metadata_musicbrainz3_finalize;
+ object_class->get_property = sj_metadata_musicbrainz4_get_property;
+ object_class->set_property = sj_metadata_musicbrainz4_set_property;
+ object_class->finalize = sj_metadata_musicbrainz4_finalize;
g_object_class_override_property (object_class, PROP_DEVICE, "device");
g_object_class_override_property (object_class, PROP_PROXY_HOST, "proxy-host");
@@ -454,7 +454,7 @@ sj_metadata_musicbrainz3_class_init (SjMetadataMusicbrainz3Class *class)
*/
GObject *
-sj_metadata_musicbrainz3_new (void)
+sj_metadata_musicbrainz4_new (void)
{
- return g_object_new (SJ_TYPE_METADATA_MUSICBRAINZ3, NULL);
+ return g_object_new (SJ_TYPE_METADATA_MUSICBRAINZ4, NULL);
}
diff --git a/libjuicer/sj-metadata-musicbrainz4.h b/libjuicer/sj-metadata-musicbrainz4.h
index bcc337d..5a73e9b 100644
--- a/libjuicer/sj-metadata-musicbrainz4.h
+++ b/libjuicer/sj-metadata-musicbrainz4.h
@@ -1,5 +1,5 @@
/*
- * sj-metadata-musicbrainz3.h
+ * sj-metadata-musicbrainz4.h
* Copyright (C) 2008 Ross Burton <ross burtonini com>
* Copyright (C) 2008 Bastien Nocera <hadess hadess net>
*
@@ -19,38 +19,38 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef SJ_METADATA_MUSICBRAINZ3_H
-#define SJ_METADATA_MUSICBRAINZ3_H
+#ifndef SJ_METADATA_MUSICBRAINZ4_H
+#define SJ_METADATA_MUSICBRAINZ4_H
#include <glib-object.h>
#include "sj-metadata.h"
G_BEGIN_DECLS
-#define SJ_TYPE_METADATA_MUSICBRAINZ3 (sj_metadata_musicbrainz3_get_type ())
-#define SJ_METADATA_MUSICBRAINZ3(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SJ_TYPE_METADATA_MUSICBRAINZ3, SjMetadataMusicbrainz3))
-#define SJ_METADATA_MUSICBRAINZ3_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), SJ_TYPE_METADATA_MUSICBRAINZ3, SjMetadataMusicbrainz3Class))
-#define SJ_IS_METADATA_MUSICBRAINZ3(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SJ_TYPE_METADATA_MUSICBRAINZ3))
-#define SJ_IS_METADATA_MUSICBRAINZ3_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), SJ_TYPE_METADATA_MUSICBRAINZ3))
-#define SJ_METADATA_MUSICBRAINZ3_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SJ_TYPE_METADATA_MUSICBRAINZ3, SjMetadataMusicbrainz3Class))
+#define SJ_TYPE_METADATA_MUSICBRAINZ4 (sj_metadata_musicbrainz4_get_type ())
+#define SJ_METADATA_MUSICBRAINZ4(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SJ_TYPE_METADATA_MUSICBRAINZ4, SjMetadataMusicbrainz4))
+#define SJ_METADATA_MUSICBRAINZ4_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), SJ_TYPE_METADATA_MUSICBRAINZ4, SjMetadataMusicbrainz4Class))
+#define SJ_IS_METADATA_MUSICBRAINZ4(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SJ_TYPE_METADATA_MUSICBRAINZ4))
+#define SJ_IS_METADATA_MUSICBRAINZ4_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), SJ_TYPE_METADATA_MUSICBRAINZ4))
+#define SJ_METADATA_MUSICBRAINZ4_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SJ_TYPE_METADATA_MUSICBRAINZ4, SjMetadataMusicbrainz4Class))
-typedef struct _SjMetadataMusicbrainz3 SjMetadataMusicbrainz3;
-typedef struct _SjMetadataMusicbrainz3Class SjMetadataMusicbrainz3Class;
+typedef struct _SjMetadataMusicbrainz4 SjMetadataMusicbrainz4;
+typedef struct _SjMetadataMusicbrainz4Class SjMetadataMusicbrainz4Class;
-struct _SjMetadataMusicbrainz3
+struct _SjMetadataMusicbrainz4
{
GObject parent;
};
-struct _SjMetadataMusicbrainz3Class
+struct _SjMetadataMusicbrainz4Class
{
GObjectClass parent;
};
-GType sj_metadata_musicbrainz3_get_type (void);
+GType sj_metadata_musicbrainz4_get_type (void);
-GObject *sj_metadata_musicbrainz3_new (void);
+GObject *sj_metadata_musicbrainz4_new (void);
G_END_DECLS
-#endif /* SJ_METADATA_MUSICBRAINZ3_H */
+#endif /* SJ_METADATA_MUSICBRAINZ4_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]