/usr/share/vala/vapi/r_fs.vapi is in radare2-vala 0.9.6-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /* radare2 - LGPL - Copyright 2011 pancake<nopcode.org> */
// TODO: Use nested classes instead of this wide class layout
namespace Radare {
[Compact]
[CCode (cheader_filename="r_fs.h", cname="RFS", free_function="r_fs_free", cprefix="r_fs_")]
public class RFS {
public RFS();
public unowned RFSRoot? mount (string fstype, string path, uint64 delta);
public void view(int view);
public bool umount (string path);
public RList<RFSRoot> root (string path);
public RFSFile open (string path);
public void close (RFSFile file);
public int read(RFSFile file, uint64 addr, int len);
public RFSFile slurp(string path);
public RList<RFSFile> dir(string path);
public RList<RFSPartition> partitions (string ptype, uint64 delta);
public RList<RFSRoot> roots;
public int dir_dump (string path, string name);
public RList<string> find_name (string name, string glob);
public RList<string> find_off (string name, uint64 off);
public bool prompt (string root);
public static unowned string partition_type (string part, int type);
public static unowned string partition_type_get (int n);
}
[Compact]
[CCode (cheader_filename="r_fs.h", cname="RFSFile", free_function="r_fs_file_free", cprefix="r_fs_file_")]
public class RFSFile {
public string name;
public string path;
public uint64 off;
public uint32 size;
public uint8 *data;
public void *ctx;
public char type;
public uint64 time;
public RFSPlugin p;
public RFSRoot root;
public void *ptr;
}
[Compact]
[CCode (cheader_filename="r_fs.h", cname="RFSPlugin", free_function="r_fs_plugin_free", cprefix="r_fs_plugin_", unref_function="", free_function="")]
public class RFSPlugin {
public string name;
public string desc;
}
[Compact]
[CCode (cheader_filename="r_fs.h", cname="RFSRoot", free_function="r_fs_root_free", cprefix="r_fs_root_")]
public class RFSRoot {
public string path;
public uint64 delta;
public RFSPlugin p;
public void *ptr;
}
[Compact]
[CCode (cheader_filename="r_fs.h", cname="RFSPartition", free_function="r_fs_partition_free", cprefix="r_fs_partition_")]
public class RFSPartition {
public int number;
public uint64 start;
public uint64 length;
public int index;
public int type;
}
}
|