rfuse 1.2.3 → 2.0.0.ffilibfuse

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- #include <fuse.h>
2
-
3
- #define MOUNTNAME_MAX 1024
4
-
5
- struct intern_fuse {
6
- struct fuse_chan *fc;
7
- struct fuse *fuse;
8
- struct fuse_operations fuse_op;
9
- char *mountpoint;
10
- };
11
-
12
- struct intern_fuse *intern_fuse_new();
13
-
14
- int intern_fuse_init(
15
- struct intern_fuse *inf,
16
- struct fuse_args *args,
17
- void *user_data
18
- );
19
-
20
- int intern_fuse_fd(struct intern_fuse *inf);
21
- int intern_fuse_process(struct intern_fuse *inf);
22
- int intern_fuse_destroy(struct intern_fuse *inf);
@@ -1,54 +0,0 @@
1
- #include <ruby.h>
2
- #include <fuse.h>
3
-
4
- #include "pollhandle.h"
5
-
6
- static int pollhandle_destroy(struct fuse_pollhandle *ph)
7
- {
8
- fuse_pollhandle_destroy(ph);
9
- return 0;
10
- }
11
-
12
- VALUE pollhandle_new(VALUE class)
13
- {
14
- rb_raise(rb_eNotImpError, "new() not implemented (it has no use), and should not be called");
15
- return Qnil;
16
- }
17
-
18
- VALUE pollhandle_initialize(VALUE self)
19
- {
20
- return self;
21
- }
22
-
23
- VALUE pollhandle_notify_poll(VALUE self)
24
- {
25
- struct fuse_pollhandle *ph;
26
- Data_Get_Struct(self, struct fuse_pollhandle, ph);
27
- return INT2FIX(fuse_notify_poll(ph));
28
- }
29
-
30
- VALUE wrap_pollhandle(struct fuse_pollhandle *ph)
31
- {
32
- VALUE rRFuse;
33
- VALUE rPollHandle;
34
-
35
- rRFuse = rb_const_get(rb_cObject,rb_intern("RFuse"));
36
- rPollHandle = rb_const_get(rRFuse,rb_intern("PollHandle"));
37
-
38
- // We need a mark function here to ensure the ph is not GC'd
39
- // between poll and notify_poll
40
- return Data_Wrap_Struct(rPollHandle, NULL, pollhandle_destroy, ph);
41
-
42
- }
43
-
44
- VALUE pollhandle_init(VALUE module)
45
- {
46
- VALUE cPollHandle = rb_define_class_under(module,"PollHandle",rb_cObject);
47
-
48
- rb_define_alloc_func(cPollHandle,pollhandle_new);
49
-
50
- rb_define_method(cPollHandle,"initialize",pollhandle_initialize,0);
51
- rb_define_method(cPollHandle,"notifyPoll",pollhandle_notify_poll,0);
52
-
53
- return cPollHandle;
54
- }
@@ -1,10 +0,0 @@
1
- #include <fuse.h>
2
- #include <ruby.h>
3
-
4
- VALUE wrap_pollhandle(struct fuse_pollhandle *ph);
5
-
6
- VALUE pollhandle_new(VALUE class);
7
- VALUE pollhandle_initialize(VALUE self);
8
- VALUE pollhandle_notify_poll(VALUE self);
9
-
10
- VALUE pollhandle_init(VALUE module);