diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-02 20:52:33 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-02 21:09:37 -0700 |
commit | 425db842ff1155fcd3b40439fcd88248d45a5db7 (patch) | |
tree | 96615a1328c7a19b9c8c4c18d42fd6464cebe7f2 /lib/fuse_versionscript | |
parent | a10ee045e76cec75f9d8c08f78f0acc994302305 (diff) |
Don't handle --help and --version in fuse_session_new().
Help and version messages can be generated using the new
fuse_lowlevel_help(), fuse_lowlevel_version(), fuse_mount_help(), and
fuse_mount_version() functions.
The fuse_parse_cmdline() function has been made more powerful
to do this automatically, and is now explicitly intended only
for low-level API users.
This is a code simplication patch. We don't have to parse for --help and
--version in quite as many places, and we no longer have a low-level
initialization function be responsible for the (super-high level) task
of printing a program usage message.
In the high-level API, we can now handle the command line parsing
earlier and avoid running other initialization code if we're just going
to abort later on.
Diffstat (limited to 'lib/fuse_versionscript')
-rw-r--r-- | lib/fuse_versionscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fuse_versionscript b/lib/fuse_versionscript index ee9c9d7..4327429 100644 --- a/lib/fuse_versionscript +++ b/lib/fuse_versionscript @@ -122,6 +122,10 @@ FUSE_3.0 { fuse_lowlevel_notify_delete; fuse_fs_flock; fuse_fs_fallocate; + fuse_lowlevel_help; + fuse_lowlevel_version; + fuse_mount_help; + fuse_mount_version; local: *; |