|
|
@@ -2,7 +2,7 @@
|
|
|
* libdpkg - Debian packaging suite library routines
|
|
|
* deb-version.c - deb format version handling routines
|
|
|
*
|
|
|
- * Copyright © 2012 Guillem Jover <guillem@debian.org>
|
|
|
+ * Copyright © 2012-2013 Guillem Jover <guillem@debian.org>
|
|
|
*
|
|
|
* 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)
|
|
|
{
|