radare2/libr/vapi/r_io.vapi
pancake c5e588e6e5 * Initial import of libr
- Previous commits has been reported in the ChangeLog file
  - hg log has been lost (moved inside ChangeLog)
  - Old radare1 repository has removed all the libr
2009-02-05 22:08:46 +01:00

32 lines
825 B
Vala

/* radare - LGPL - Copyright 2009 pancake<nopcode.org> */
[CCode (cheader_filename="r_io.h", cprefix="r_io", lower_case_cprefix="r_io_")]
namespace Radare
{
class Io {
public static bool init();
public static bool set_write_mask(int fd, uint8 *buf, int len);
public static int open(string uri, int flags, int mode);
public static int read(int fd, out uint8 *buf, int len);
public static int write(int fd, uint8 *buf, int len);
public static uint64 lseek(int fd, u64 addr, int whence);
public static int system(int fd, string cmd);
public static int close(int fd);
public static u64 size(int fd);
}
[Compact]
[CCode (cprefix="r_io_handle_")]
public struct Handle {
public static bool init();
}
[Compact]
[CCode (cprefix="r_io_map_")]
public struct Map {
public static bool init();
}
}