X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/aa3d8014ba02b49656689d1b4951ea79de76a414..b228d2b354248b62d70a582a37693cff829fe0c6:/src/uobject/vfs.h diff --git a/src/uobject/vfs.h b/src/uobject/vfs.h index bc835a7..c0bdc4f 100644 --- a/src/uobject/vfs.h +++ b/src/uobject/vfs.h @@ -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