The following commit has been merged in the master branch:
commit c1b63899f2556e501f79db0dede8c1ff37645ce9
Author: Guillem Jover <[email protected]>
Date:   Sat Apr 13 02:28:06 2013 +0200

    libdpkg: Document deb-version module

diff --git a/lib/dpkg/deb-version.c b/lib/dpkg/deb-version.c
index a5ef415..7f97616 100644
--- a/lib/dpkg/deb-version.c
+++ b/lib/dpkg/deb-version.c
@@ -2,7 +2,7 @@
  * libdpkg - Debian packaging suite library routines
  * deb-version.c - deb format version handling routines
  *
- * Copyright © 2012 Guillem Jover <[email protected]>
+ * Copyright © 2012-2013 Guillem Jover <[email protected]>
  *
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -28,6 +28,19 @@
 #include <dpkg/dpkg.h>
 #include <dpkg/deb-version.h>
 
+/**
+ * Parse a .deb format version.
+ *
+ * It takes a string and parses a .deb archive format version in the form
+ * of "X.Y", without any leading whitespace, and ending in either a newline
+ * or a NUL. If there is any syntax error a descriptive error string is
+ * returned.
+ *
+ * @param version The version to return.
+ * @param str     The string to parse.
+ *
+ * @return        An error string, or NULL if there was no error.
+ */
 const char *
 deb_version_parse(struct deb_version *version, const char *str)
 {
diff --git a/lib/dpkg/deb-version.h b/lib/dpkg/deb-version.h
index b791c06..9a2a6ff 100644
--- a/lib/dpkg/deb-version.h
+++ b/lib/dpkg/deb-version.h
@@ -2,7 +2,7 @@
  * libdpkg - Debian packaging suite library routines
  * deb-version.h - deb format version handling routines
  *
- * Copyright © 2012 Guillem Jover <[email protected]>
+ * Copyright © 2012-2013 Guillem Jover <[email protected]>
  *
  * This is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -25,6 +25,15 @@
 
 DPKG_BEGIN_DECLS
 
+/**
+ * @defgroup deb-version .deb format version handling
+ * @ingroup dpkg-public
+ * @{
+ */
+
+/**
+ * Data structure representing a .deb format version.
+ */
 struct deb_version {
        int major;
        int minor;
@@ -32,6 +41,8 @@ struct deb_version {
 
 const char *deb_version_parse(struct deb_version *version, const char *str);
 
+/** @} */
+
 DPKG_END_DECLS
 
 #endif /* LIBDPKG_DEB_VERSION_H */

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to