diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-07-30 11:59:21 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-15 23:20:04 +0200 |
commit | 054d366c931956e784a4f9da08efa1395f3e5680 (patch) | |
tree | 02c0b12c05ff31dbdcdfe6a59de7942f8dc19726 /libtrivfs/trivfs.h | |
parent | 3a5bcbcc94f01b1ef1ed0571b31434ed57162224 (diff) | |
download | hurd-054d366c931956e784a4f9da08efa1395f3e5680.tar.gz hurd-054d366c931956e784a4f9da08efa1395f3e5680.tar.bz2 hurd-054d366c931956e784a4f9da08efa1395f3e5680.zip |
libtrivfs: add fsys_get_source
* libtrivfs/Makefile: Add fsys-get-source.c and get-source.c
* libtrivfs/trivfs.h: Add trivfs_get_source.
* libtrivfs/fsys-get-source.c: New file.
* libtrivfs/get-source.c: Likewise.
Diffstat (limited to 'libtrivfs/trivfs.h')
-rw-r--r-- | libtrivfs/trivfs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index 33b04363..cf817b50 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -1,5 +1,5 @@ /* - Copyright (C) 1994,95,96,97,99,2002 Free Software Foundation, Inc. + Copyright (C) 1994,95,96,97,99,2002,13 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -233,6 +233,12 @@ error_t trivfs_set_options (struct trivfs_control *fsys, routine simply calls diskfs_append_std_options. */ error_t trivfs_append_args (struct trivfs_control *fsys, char **argz, size_t *argz_len); + +/* The user may define this function. The function must set source to + the source device of the filesystem. The function may return an + EOPNOTSUPP to indicate that the concept of a source device is not + applicable. The default function always returns EOPNOTSUPP. */ +error_t trivfs_get_source (char *source); /* Add the port class *CLASS to the list of control port classes recognized by trivfs; if *CLASS is 0, an attempt is made to allocate a new port |