/usr/share/vala/vapi/r_cons.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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /* radare - LGPL - Copyright 2009-2012 pancake<nopcode.org> */
namespace Radare {
[CCode (cheader_filename="r_cons.h", cname="RCons", free_function="", unref_function="", cprefix="r_cons_")]
/* XXX: LEAK */
public class RCons {
// public RCons ();
public static RCons singleton ();
static void free();
[CCode (cname="Color_RED")]
public static const string RED;
[CCode (cname="Color_BLACK")]
public static const string BLACK;
[CCode (cname="Color_WHITE")]
public static const string WHITE;
[CCode (cname="Color_RESET")]
public static const string RESET;
[CCode (cname="Color_MAGENTA")]
public static const string MAGENTA;
[CCode (cname="Color_YELLOW")]
public static const string YELLOW;
[CCode (cname="Color_TURQOISE")]
public static const string TURQOISE;
[CCode (cname="Color_BLUE")]
public static const string BLUE;
[CCode (cname="Color_GRAY")]
public static const string GRAY;
/* TODO : add bold colors */
public static bool is_interactive;
public static bool is_html;
public static bool eof();
public static int pipe_open (string file, bool append);
public static void pipe_close (int fd);
/* size of terminal */
public static int rows;
public static int columns;
public static void clear();
public static void clear00();
public static void reset();
public static void gotoxy(int x, int y);
public static void set_raw(bool b);
/* output */
public static void printf(string fmt, ...);
public static void strcat(string str);
public static void memcat(string str, int len);
public static void newline();
public static void flush();
public static void filter();
public static void visual_flush();
//public static void visual_write(unowned string buf);
//public static int fgets(out string buf, int len, int argc, string argv[]);
/* input */
public static int readchar();
public static void any_key();
public static int get_size(out int rows);
public static bool yesno(bool def, string fmt, ...);
public static int html_print (string ptr);
public static int arrow_to_hjkl (int ch);
public static unowned string get_buffer ();
public static void grep (string str);
//public static int grep_line (string str, int len);
//public static int grepbuf (string str, int len);
public static void invert (bool set, int color);
}
[Compact]
[CCode (cname="RLine", cheader_filename="r_cons.h", cprefix="r_line_", free_function="")]
public class RLine {
//public RLine();
public static RLine singleton();
public static bool readline (); //int argc, char **argv);
public static void set_prompt (string promp);
public static bool hist_load (string file);
public static bool hist_add (string line);
public static bool hist_save (string file);
//public static bool hist_label (string file);
}
}
|