Add annotations for g_filename_from_uri()

https://bugzilla.gnome.org/show_bug.cgi?id=672924
This commit is contained in:
Vincent Untz 2012-03-27 16:52:24 +02:00 committed by Colin Walters
parent 0d22609fe9
commit 529bf6bd89

View File

@ -1834,7 +1834,7 @@ hostname_validate (const char *hostname)
/** /**
* g_filename_from_uri: * g_filename_from_uri:
* @uri: a uri describing a filename (escaped, encoded in ASCII). * @uri: a uri describing a filename (escaped, encoded in ASCII).
* @hostname: (allow-none): Location to store hostname for the URI, or %NULL. * @hostname: (out) (allow-none): Location to store hostname for the URI, or %NULL.
* If there is no hostname in the URI, %NULL will be * If there is no hostname in the URI, %NULL will be
* stored in this location. * stored in this location.
* @error: location to store the error occurring, or %NULL to ignore * @error: location to store the error occurring, or %NULL to ignore
@ -1843,8 +1843,8 @@ hostname_validate (const char *hostname)
* Converts an escaped ASCII-encoded URI to a local filename in the * Converts an escaped ASCII-encoded URI to a local filename in the
* encoding used for filenames. * encoding used for filenames.
* *
* Return value: a newly-allocated string holding the resulting * Return value: (type filename): a newly-allocated string holding
* filename, or %NULL on an error. * the resulting filename, or %NULL on an error.
**/ **/
gchar * gchar *
g_filename_from_uri (const gchar *uri, g_filename_from_uri (const gchar *uri,