diff options
author | Michael Adam <obnox@samba.org> | 2008-10-23 11:16:50 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-10-27 13:02:40 +0100 |
commit | 3a06201086e77b1c6bd8cf9374f02e5f667aa86c (patch) | |
tree | dbbf64c4948a51bba221e03f0ea5972a3bc8684c /source3/lib/smbconf/smbconf.c | |
parent | 9c09d545bfae9e4abde317364b1586b691ba4d89 (diff) | |
download | samba-3a06201086e77b1c6bd8cf9374f02e5f667aa86c.tar.gz samba-3a06201086e77b1c6bd8cf9374f02e5f667aa86c.tar.bz2 samba-3a06201086e77b1c6bd8cf9374f02e5f667aa86c.zip |
[s3]libsmbconf: add method is_writeable() and wrapper smbconf_is_writeable()
This allows for per-config-source checking of write support.
Michael
Diffstat (limited to 'source3/lib/smbconf/smbconf.c')
-rw-r--r-- | source3/lib/smbconf/smbconf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf.c b/source3/lib/smbconf/smbconf.c index f0188380a0..e5a865a62b 100644 --- a/source3/lib/smbconf/smbconf.c +++ b/source3/lib/smbconf/smbconf.c @@ -52,6 +52,14 @@ bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx) } /** + * Tell whether the source is writeable. + */ +bool smbconf_is_writeable(struct smbconf_ctx *ctx) +{ + return ctx->ops->is_writeable(ctx); +} + +/** * Close the configuration. */ void smbconf_shutdown(struct smbconf_ctx *ctx) |