Skip to content

fuse_operations C++ problem #1

@BAndiT1983

Description

@BAndiT1983

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions