From 823fe6d67c2ae232704c25ebee53e8ce726a17c6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 23 Jan 2010 06:13:34 +0100 Subject: [PATCH] Don't export xbps_get_remote_repo_string() to the API, it's only used internally in the library. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100123051334-8ndutg9gqfljff3p --- include/xbps_api.h | 11 ++--------- lib/repository_sync_index.c | 5 ++++- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 735a36c4..aa814799 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -875,16 +875,9 @@ void xbps_repository_pool_release(void); int xbps_repository_sync_pkg_index(const char *uri); /** - * Returns a malloc(3)ed string with the local directory name for - * the package cache directory pointing to a remote URI repository. - * - * @note The caller is responsible to free(3) the returned buffer, - * @param[in] uri URI to a remote repository. - * - * @return A buffer with the transformed string, NULL otherwise and - * errno is set appropiately. + * @private */ -char *xbps_get_remote_repo_string(const char *uri); +char HIDDEN *xbps_get_remote_repo_string(const char *uri); /*@}*/ diff --git a/lib/repository_sync_index.c b/lib/repository_sync_index.c index d7a2cb8e..a9af4c3b 100644 --- a/lib/repository_sync_index.c +++ b/lib/repository_sync_index.c @@ -37,9 +37,12 @@ * @file lib/repository_sync_index.c * @brief Repository package index synchronization routines * @defgroup reposync Repository package index synchronization functions + * + * Functions to manipulate repository package index plist file + * synchronizations. */ -char * +char HIDDEN * xbps_get_remote_repo_string(const char *uri) { struct url *url;