Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse_operations C++ problem #1

Open
BAndiT1983 opened this issue Aug 3, 2018 · 0 comments
Open

fuse_operations C++ problem #1

BAndiT1983 opened this issue Aug 3, 2018 · 0 comments

Comments

@BAndiT1983
Copy link

static struct fuse_operations hello_oper = {

Can be fixed by using common C++ struct filling.

int main(int argc, char *argv[])
{
	fuse_operations fuse_ops = {};
	fuse_ops.getattr = getattr_callback;
	fuse_ops.open = open_callback;
	fuse_ops.read = read_callback;
	fuse_ops.readdir = readdir_callback;

	return fuse_main(argc, argv, &fuse_ops, NULL);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant