xbps-repo: move list/search code into its own file: list.c.

This commit is contained in:
Juan RP
2011-12-03 10:46:57 +01:00
parent 43d85c76b3
commit afde2a6653
4 changed files with 110 additions and 69 deletions

View File

@@ -32,19 +32,25 @@
#include <xbps_api.h>
/* From index.c */
int repo_genindex(const char *);
/* From show.c */
int show_pkg_info_from_repolist(const char *, const char *);
int show_pkg_deps_from_repolist(const char *);
/* From find-files.c */
int repo_find_files_in_packages(const char *);
struct repo_search_data {
char *pattern;
size_t pkgver_len;
};
/* From index.c */
int repo_genindex(const char *);
/* From find-files.c */
int repo_find_files_in_packages(const char *);
/* From list.c */
int repo_pkg_list_cb(struct repository_pool_index *, void *, bool *);
int repo_list_uri_cb(struct repository_pool_index *, void *, bool *);
int repo_search_pkgs_cb(struct repository_pool_index *, void *, bool *);
/* From show.c */
int show_pkg_info_from_repolist(const char *, const char *);
int show_pkg_deps_from_repolist(const char *);
#endif /* !_XBPS_REPO_DEFS_H_ */