[gobject-introspection] Bump shared library version, typelib version
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Bump shared library version, typelib version
- Date: Fri, 9 Jul 2010 18:17:15 +0000 (UTC)
commit 07a36b499a7db6c65132511dc43f6acd281100ec
Author: Colin Walters <walters verbum org>
Date: Thu Jul 8 14:20:40 2010 -0400
Bump shared library version, typelib version
https://bugzilla.gnome.org/show_bug.cgi?id=623774
girepository/Makefile.am | 2 +-
girepository/girmodule.c | 2 +-
girepository/gitypelib.c | 5 +++--
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/girepository/Makefile.am b/girepository/Makefile.am
index f76e6c3..e0f2b1b 100644
--- a/girepository/Makefile.am
+++ b/girepository/Makefile.am
@@ -55,7 +55,7 @@ libgirepository_1_0_la_SOURCES = \
libgirepository_1_0_la_CPPFLAGS = $(GIREPO_CFLAGS)
libgirepository_1_0_la_LIBADD = $(GIREPO_LIBS)
-libgirepository_1_0_la_LDFLAGS = -no-undefined
+libgirepository_1_0_la_LDFLAGS = -no-undefined -version-number 1:0:0
libgirepository_parser_la_SOURCES = \
girmodule.c \
diff --git a/girepository/girmodule.c b/girepository/girmodule.c
index ae40d5f..1c62319 100644
--- a/girepository/girmodule.c
+++ b/girepository/girmodule.c
@@ -290,7 +290,7 @@ g_ir_module_build_typelib (GIrModule *module,
/* fill in header */
header = (Header *)data;
memcpy (header, G_IR_MAGIC, 16);
- header->major_version = 2;
+ header->major_version = 3;
header->minor_version = 0;
header->reserved = 0;
header->n_entries = n_entries;
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index 74aa7ed..06a38d2 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -288,12 +288,13 @@ validate_header (ValidateContext *ctx,
}
- if (header->major_version != 2 || header->minor_version != 0)
+ if (header->major_version != 3 || header->minor_version != 0)
{
g_set_error (error,
G_TYPELIB_ERROR,
G_TYPELIB_ERROR_INVALID_HEADER,
- "Version mismatch");
+ "Version mismatch; expected 3, found %d",
+ header->major_version);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]