X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/aa3d8014ba02b49656689d1b4951ea79de76a414..bb9c28745ae254b832805e5d41f2a5e6c3cb8f40:/src/uobject/vfs.h diff --git a/src/uobject/vfs.h b/src/uobject/vfs.h index bc835a7..b94bf6b 100644 --- a/src/uobject/vfs.h +++ b/src/uobject/vfs.h @@ -1,6 +1,6 @@ /* * Functions for handling UObject package search paths. - * Copyright (C) 2009 Nick Bowler + * Copyright © 2009-2011 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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