rfuse 1.2.3 → 2.0.0.ffilibfuse
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/{CHANGES.md → CHANGELOG.md} +6 -0
- data/README.md +14 -42
- data/lib/rfuse/flock.rb +31 -0
- data/lib/rfuse/gem_version.rb +20 -0
- data/lib/rfuse/rfuse.rb +318 -0
- data/lib/rfuse/stat.rb +43 -0
- data/lib/rfuse/statvfs.rb +33 -0
- data/lib/rfuse/version.rb +1 -1
- data/lib/rfuse.rb +375 -590
- metadata +28 -30
- data/ext/rfuse/bufferwrapper.c +0 -48
- data/ext/rfuse/bufferwrapper.h +0 -10
- data/ext/rfuse/context.c +0 -80
- data/ext/rfuse/context.h +0 -5
- data/ext/rfuse/extconf.rb +0 -17
- data/ext/rfuse/file_info.c +0 -144
- data/ext/rfuse/file_info.h +0 -13
- data/ext/rfuse/filler.c +0 -61
- data/ext/rfuse/filler.h +0 -15
- data/ext/rfuse/helper.c +0 -97
- data/ext/rfuse/helper.h +0 -15
- data/ext/rfuse/intern_rfuse.c +0 -79
- data/ext/rfuse/intern_rfuse.h +0 -22
- data/ext/rfuse/pollhandle.c +0 -54
- data/ext/rfuse/pollhandle.h +0 -10
- data/ext/rfuse/rfuse.c +0 -2007
- data/ext/rfuse/rfuse.h +0 -3
- data/ext/rfuse/rfuse_mod.c +0 -12
- data/ext/rfuse/ruby-compat.h +0 -39
data/ext/rfuse/intern_rfuse.h
DELETED
@@ -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);
|
data/ext/rfuse/pollhandle.c
DELETED
@@ -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
|
-
}
|
data/ext/rfuse/pollhandle.h
DELETED