7777# define XBPS_SYSDEFCONF_PATH "/usr/share" XBPS_SYSDIR
7878#endif
7979
80- /**
80+ /**
8181 * @def XBPS_META_PATH
8282 * Default root PATH to store metadata info.
8383 */
8484#ifndef XBPS_META_PATH
8585#define XBPS_META_PATH "var/db/xbps"
8686#endif
8787
88- /**
88+ /**
8989 * @def XBPS_CACHE_PATH
9090 * Default cache PATH to store downloaded binpkgs.
9191 */
109109 */
110110#define XBPS_PKGFILES "files.plist"
111111
112- /**
112+ /**
113113 * @def XBPS_REPODATA_INDEX
114114 * Filename for the repository index property list.
115115 */
285285extern "C" {
286286#endif
287287
288- /** @addtogroup initend */
288+ /** @addtogroup initend */
289289/**@{*/
290290
291291/**
@@ -689,9 +689,11 @@ struct xbps_handle {
689689};
690690
691691extern int xbps_debug_level ;
692+ extern int xbps_verbose_level ;
692693
693694void xbps_dbg_printf (const char * , ...) __attribute__ ((format (printf , 1 , 2 )));
694695void xbps_dbg_printf_append (const char * , ...)__attribute__ ((format (printf , 1 , 2 )));
696+ void xbps_verbose_printf (const char * , ...) __attribute__ ((format (printf , 1 , 2 )));
695697void xbps_error_printf (const char * , ...)__attribute__ ((format (printf , 1 , 2 )));
696698void xbps_warn_printf (const char * , ...)__attribute__ ((format (printf , 1 , 2 )));
697699
@@ -752,11 +754,11 @@ int xbps_configure_packages(struct xbps_handle *xhp, xbps_array_t ignpkgs);
752754
753755/**
754756 * Download a file from a remote URL to current working directory.
755- *
757+ *
756758 * @param[in] xhp Pointer to an xbps_handle struct.
757759 * @param[in] uri Remote URI string.
758760 * @param[in] flags Flags passed to libfetch's fetchXget().
759- *
761+ *
760762 * @return -1 on error, 0 if not downloaded (because local/remote size/mtime
761763 * do not match) and 1 if downloaded successfully.
762764 **/
@@ -765,14 +767,14 @@ int xbps_fetch_file(struct xbps_handle *xhp, const char *uri,
765767
766768/**
767769 * Download and digest a file from a remote URL to current working directory.
768- *
770+ *
769771 * @param[in] xhp Pointer to an xbps_handle struct.
770772 * @param[in] uri Remote URI string.
771773 * @param[in] flags Flags passed to libfetch's fetchXget().
772774 * @param[out] digest SHA256 digest buffer for the downloaded file or NULL.
773775 * @param[in] digestlen Size of \a digest if specified; must be at least
774776 * XBPS_SHA256_DIGEST_SIZE.
775- *
777+ *
776778 * @return -1 on error, 0 if not downloaded (because local/remote size/mtime
777779 * do not match) and 1 if downloaded successfully.
778780 **/
@@ -783,12 +785,12 @@ int xbps_fetch_file_sha256(struct xbps_handle *xhp, const char *uri,
783785/**
784786 * Download a file from a remote URL to current working directory,
785787 * and writing file to \a filename.
786- *
788+ *
787789 * @param[in] xhp Pointer to an xbps_handle struct.
788790 * @param[in] uri Remote URI string.
789791 * @param[in] filename Local filename to safe the file
790792 * @param[in] flags Flags passed to libfetch's fetchXget().
791- *
793+ *
792794 * @return -1 on error, 0 if not downloaded (because local/remote size/mtime
793795 * do not match) and 1 if downloaded successfully.
794796 **/
@@ -798,15 +800,15 @@ int xbps_fetch_file_dest(struct xbps_handle *xhp, const char *uri,
798800/**
799801 * Download and digest a file from a remote URL to current working directory,
800802 * and writing file to \a filename.
801- *
803+ *
802804 * @param[in] xhp Pointer to an xbps_handle struct.
803805 * @param[in] uri Remote URI string.
804806 * @param[in] filename Local filename to safe the file
805807 * @param[in] flags Flags passed to libfetch's fetchXget().
806808 * @param[out] digest SHA256 digest buffer of the downloaded file or NULL.
807809 * @param[in] digestlen Size of \a digest if specified; must be at least
808810 * XBPS_SHA256_DIGEST_SIZE.
809- *
811+ *
810812 * @return -1 on error, 0 if not downloaded (because local/remote size/mtime
811813 * do not match) and 1 if downloaded successfully.
812814 **/
@@ -1460,7 +1462,7 @@ struct xbps_repo {
14601462 xbps_dictionary_t idxmeta ;
14611463 /**
14621464 * @var uri
1463- *
1465+ *
14641466 * URI string associated with repository.
14651467 */
14661468 const char * uri ;
@@ -1768,7 +1770,7 @@ typedef enum pkg_state {
17681770/**
17691771 * Gets package state from package \a pkgname, and sets its state
17701772 * into \a state.
1771- *
1773+ *
17721774 * @param[in] xhp The pointer to an xbps_handle struct.
17731775 * @param[in] pkgname Package name.
17741776 * @param[out] state Package state returned.
@@ -1985,7 +1987,7 @@ bool xbps_remote_binpkg_exists(struct xbps_handle *xhp, xbps_dictionary_t pkgd);
19851987 * Checks if the URI specified by \a uri is remote or local.
19861988 *
19871989 * @param[in] uri URI string.
1988- *
1990+ *
19891991 * @return true if URI is remote, false if local.
19901992 */
19911993bool xbps_repository_is_remote (const char * uri );
@@ -2092,7 +2094,7 @@ bool xbps_pkgpattern_name(char *dst, size_t len, const char *pattern);
20922094
20932095/**
20942096 * Gets the package version in a package string, i.e `foo-2.0`.
2095- *
2097+ *
20962098 * @param[in] pkg Package string.
20972099 *
20982100 * @return A string with the version string, NULL if it couldn't
0 commit comments