summaryrefslogtreecommitdiff
path: root/pkg.h
diff options
context:
space:
mode:
authorMarco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>2016-10-12 12:08:40 -0300
committerDan Nicholson <dbn.lists@gmail.com>2016-12-22 13:29:12 -0600
commitc53385b5dbd25844faa89b1c8297d61ab05ed6ef (patch)
treeb487896fa2a3978d8be840da16915cd1610a2f6e /pkg.h
parenta38d5c58a177c6cf274d6f1607f64ef360b6966d (diff)
downloadpkg-config-c53385b5dbd25844faa89b1c8297d61ab05ed6ef.tar.gz
Optimization to load only needed .pc files
Currently pkg-config scans all .pc files from the search path during initialization. That makes some of the code simpler and works fine when there are not many .pc files on the system. When there are a lot of .pc files, then this represents a lot of wasted effort. Rework the package gathering so that it happens as needed. To support the --list-all mode, the scanning at initialization can still be done. https://bugs.freedesktop.org/show_bug.cgi?id=98215
Diffstat (limited to 'pkg.h')
-rw-r--r--pkg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg.h b/pkg.h
index 13cc2c6..c6732bd 100644
--- a/pkg.h
+++ b/pkg.h
@@ -98,7 +98,7 @@ char * packages_get_var (GList *pkgs,
void add_search_dir (const char *path);
void add_search_dirs (const char *path, const char *separator);
-void package_init (void);
+void package_init (gboolean want_list);
int compare_versions (const char * a, const char *b);
gboolean version_test (ComparisonType comparison,
const char *a,