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

Remove fuse function name leading underscores #1

Merged
merged 1 commit into from
Dec 24, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Fuse_bindings.idl
Original file line number Diff line number Diff line change
@@ -79,11 +79,11 @@ quote(h,"#define __file_info file_info");
[ptr] struct fuse_operations * get_fuse_operations();
void set_fuse_operations([ref] const struct fuse_operation_names * op);

[blocking,ptr] struct fuse_cmd * __fuse_read_cmd([ptr,in] struct fuse *f);
[blocking] void __fuse_process_cmd([ptr] struct fuse *f,[ptr,in] struct fuse_cmd *cmd);
[blocking,ptr] struct fuse_cmd * fuse_read_cmd([ptr,in] struct fuse *f);
[blocking] void fuse_process_cmd([ptr] struct fuse *f,[ptr,in] struct fuse_cmd *cmd);

void ml_fuse_init();
void ml_fuse_main(int argc,[size_is(argc)] str argv[],[ptr] const struct fuse_operations *op);

[blocking] boolean __fuse_exited([ptr] struct fuse * f);
[blocking] boolean fuse_exited([ptr] struct fuse * f);

6 changes: 3 additions & 3 deletions lib/Fuse_lib.ml
Original file line number Diff line number Diff line change
@@ -41,10 +41,10 @@ let fuse_loop fuse (multithreaded) =
then fun x y -> ignore (Thread.create x y)
else fun x y -> ignore (x y)
in
while not (__fuse_exited fuse) do
let cmd = __fuse_read_cmd fuse in
while not (fuse_exited fuse) do
let cmd = fuse_read_cmd fuse in
if not (is_null cmd)
then f (__fuse_process_cmd fuse) cmd
then f (fuse_process_cmd fuse) cmd
done

let _ = Callback.register "ocaml_fuse_loop" fuse_loop