]> git.draconx.ca Git - upkg.git/blobdiff - src/uobject/vfs.h
package: Move package search code to the VFS.
[upkg.git] / src / uobject / vfs.h
index bc835a782294137018e5f6f0c3e6a8327d0bb416..c0bdc4f3bd2ab0163bd8963589158c4ebbf4bbf7 100644 (file)
@@ -36,6 +36,27 @@ const char *u_pkg_vfs_add_local(const char *name, const char *file);
  */
 void u_pkg_vfs_del_local(const char *name);
 
+/*
+ * Set the global VFS search path - a LT_PATHSEP-delimited sequence of
+ * directories to be searched for packages after local packages.
+ *
+ * Returns 0 on success, or -1 on failure.
+ */
+int u_pkg_vfs_set_search_path(const char *path);
+
+/*
+ * Appends a directory to the global VFS search path.  This directory will
+ * be searched after any directories already in the path.
+ *
+ * Returns 0 on success, or -1 on failure.
+ */
+int u_pkg_vfs_add_search_dir(const char *path);
+
+/*
+ * Get the global VFS search path.
+ */
+const char *u_pkg_vfs_get_search_path(void);
+
 /*
  * Opens a package file by name.  First, local packages are searched for a
  * match.  If a local match is found, the global search path is never