summaryrefslogtreecommitdiff
path: root/src/lib/eo/eina_types.eot
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-12 17:08:38 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-22 18:25:14 -0300
commit9062bbd8e07c3591979744b8cecdd658537241eb (patch)
tree5ff43274e95b63077d756b1a9219d469384e7641 /src/lib/eo/eina_types.eot
parent8906461b48c3179f1c18265da04b4fd09fe46a3f (diff)
eina: introduce Eina_Slice and Eina_Rw_Slice.
A plain simple pointer + length describing a linear memory region.
Diffstat (limited to 'src/lib/eo/eina_types.eot')
-rw-r--r--src/lib/eo/eina_types.eot12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/eo/eina_types.eot b/src/lib/eo/eina_types.eot
index 26fb4709dc..c7b9c958fb 100644
--- a/src/lib/eo/eina_types.eot
+++ b/src/lib/eo/eina_types.eot
@@ -43,3 +43,15 @@ enum @extern Eina.Xattr.Flags {
43type @extern Eina.Error: int; 43type @extern Eina.Error: int;
44 44
45struct @extern @free(eina_binbuf_free) Eina.Binbuf; 45struct @extern @free(eina_binbuf_free) Eina.Binbuf;
46
47struct @extern Eina.Slice {
48 [[A linear, read-only, memory segment]]
49 len: size;
50 mem: const(void_ptr);
51}
52
53struct @extern Eina.Rw_Slice {
54 [[A linear, read-write, memory segment]]
55 len: size;
56 mem: void_ptr;
57}