[libgsf] replace GSF_ODF_VERSION with a variable



commit 0ef7085c4158f8e8967f1d23f646704156b0cbfc
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Mon May 25 22:29:32 2009 -0600

    replace GSF_ODF_VERSION with a variable
    
    2009-05-25  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gsf/gsf-opendoc-utils.[ch]: replace GSF_ODF_VERSION with a variable
---
 ChangeLog               |    4 ++++
 gsf/gsf-opendoc-utils.c |    1 +
 gsf/gsf-opendoc-utils.h |    7 +------
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 59ee589..bfda694 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-05-25  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* gsf/gsf-opendoc-utils.[ch]: replace GSF_ODF_VERSION with a variable
+
+2009-05-25  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* gsf/gsf-opendoc-utils.[ch]: replace GSF_ODF_VERSION_STRING with the 
 	  varaible gsf_odf_version_string and turn GSF_ODF_VERSION into an 
 	  enum.
diff --git a/gsf/gsf-opendoc-utils.c b/gsf/gsf-opendoc-utils.c
index 2170466..6243710 100644
--- a/gsf/gsf-opendoc-utils.c
+++ b/gsf/gsf-opendoc-utils.c
@@ -41,6 +41,7 @@ typedef struct {
 } GsfOOMetaIn;
 
 char const *gsf_odf_version_string = "1.1";
+float gsf_odf_version = 1.1;
 
 /* Generated based on:
  * http://www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf */
diff --git a/gsf/gsf-opendoc-utils.h b/gsf/gsf-opendoc-utils.h
index 80f86e9..93ed172 100644
--- a/gsf/gsf-opendoc-utils.h
+++ b/gsf/gsf-opendoc-utils.h
@@ -89,14 +89,9 @@ enum {
 	OO_GNUM_NS_EXT
 };
 
-/* When we bump the GSF_ODF_VERSION we also need to change *\
-\* gsf_odf_version_string                                  */
-enum {
-	GSF_ODF_VERSION = 11
-};
-
 extern GsfXMLInNS gsf_ooo_ns[];
 extern char const *gsf_odf_version_string;
+extern float gsf_odf_version;
 
 /* For 1.15.x s/opendoc/odf/ and s/ooo/odf/ */
 GError	*gsf_opendoc_metadata_read    (GsfInput *input,  GsfDocMetaData *md);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]