radare2/libr/vapi/r_diff.vapi
pancake eb0793c2b1 * Huge code cleanup and refactor for valaswig
- Some APIs has changed (r_hash)
  - Vapis have been reviewed
  - And more
2010-01-04 01:25:52 +01:00

27 lines
871 B
Vala

/* radare - LGPL - Copyright 2009 nibble<.ds@gmail.com>, pancake <nopcode.org>*/
[CCode (cheader_filename="r_diff.h")]
namespace Radare {
[Compact]
[CCode (cname="struct r_diff_t", free_function="r_diff_free", cprefix="r_diff_")]
public class rDiff {
public rDiff (uint64 off_a = 0LL, uint64 off_b = 0LL);
public int buffers (uint8* a, int la, uint8* b, int lb);
//public int set_callback(...);
public int distance (uint8 *a, int la, uint8 *b, int lb, out int distance, out double similarity);
public static int lines (string file, string sa, int la, string file2, string sb, int lb);
[Compact]
[CCode (cname="struct r_diff_handle_t", destroy_function="", free_function="" )]
public struct Operation {
public uint64 a_off;
public uint8* a_buf;
public int a_len;
public uint64 b_off;
public uint8* b_buf;
public int b_len;
}
}
}