Commits

Akira TAGOH committed 488c69d

Add a function to obtain the libeasyfc version

  • Participants
  • Parent commits df79463

Comments (0)

Files changed (2)

File libeasyfc/ezfc-utils.h

  * This collects some utility functions.
  */
 
-void      ezfc_init                  (void);
-void      ezfc_finalize              (void);
+const gchar *ezfc_version (void);
+void         ezfc_init    (void);
+void         ezfc_finalize(void);
 
 #ifndef G_DEPRECATED
 #define EZFC_DEPRECATED		G_GNUC_DEPRECATED

File libeasyfc/ezfc.c

 }
 
 /**
+ * ezfc_version:
+ *
+ * Obtain the version of libeasyfc.
+ *
+ * Returns: a version string.
+ */
+const gchar *
+ezfc_version(void)
+{
+	return VERSION;
+}
+
+/**
  * ezfc_init:
  *
  * Initialize the library.