VFS Modules & C++ Support
Kory Draughn
korydraughn.renci at gmail.com
Fri Jul 13 22:24:08 UTC 2018
Hi,
Q. Can a samba vfs module be implemented using C++?
Q. If so, how do I enable C++ support?
Also, in the section titled "*Building Your VFS Module*",
https://wiki.samba.org/index.php/Writing_a_Samba_VFS_Module#Building_Your_VFS_Module,
I ran into trouble compiling the fake_compression module.
To fix this, I made the following changes:
*Old Code from Wiki*
NTSTATUS vfs_fake_compression_init(void);
NTSTATUS vfs_fake_compression_init(void) {...}
*New Code*
static_decl_vfs;
NTSTATUS vfs_fake_compression_init(TALLOC_CTX* ctx) {...}
Q. Are both *static_decl_vfs* and *vfs_fake_compression_init* required?
It may be worth adjusting the wiki so other developers don't fail at
building the example module.
Thanks,
Kory Draughn
More information about the samba-technical
mailing list