diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-05-27 17:45:59 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-05-27 17:45:59 -0700 |
commit | ba4fefa9b52b25ca1babd77066e21abef19518c2 (patch) | |
tree | e9fd8beb864dc03b9d202add547e16406b9f6497 /core/include/fs.h | |
parent | a9af8932758ab714e632cfbb65a45c38cac0bd67 (diff) | |
download | syslinux-ba4fefa9b52b25ca1babd77066e21abef19518c2.tar.gz |
core: change load_config() to open_config()
Change load_config() to open_config(), which is a method that works
just like open_file(). This we can use to get the original
configuration file.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core/include/fs.h')
-rw-r--r-- | core/include/fs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/include/fs.h b/core/include/fs.h index fb416eef..e9e4548f 100644 --- a/core/include/fs.h +++ b/core/include/fs.h @@ -61,7 +61,7 @@ struct fs_ops { void (*mangle_name)(char *, const char *); size_t (*realpath)(struct fs_info *, char *, const char *, size_t); int (*chdir)(struct fs_info *, const char *); - int (*load_config)(void); + int (*open_config)(struct com32_filedata *); struct inode * (*iget_root)(struct fs_info *); struct inode * (*iget)(const char *, struct inode *); @@ -211,8 +211,9 @@ char *core_getcwd(char *buf, size_t size); void generic_mangle_name(char *, const char *); /* loadconfig.c */ -int search_config(const char *search_directores[], const char *filenames[]); -int generic_load_config(void); +int search_config(struct com32_filedata *filedata, + const char *search_directores[], const char *filenames[]); +int generic_open_config(struct com32_filedata *filedata); /* close.c */ void generic_close_file(struct file *file); |