blob: a4776035f5818743a6c96a81349d54286fe7cdda (
plain)
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
|
extern crate libc;
#[repr(C)]
#[derive(Debug)]
pub struct GeglRectangle {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
pub enum CGeglNode {}
pub enum GeglBuffer {}
#[link(name="gegl-0.3")]
extern {
pub fn gegl_init(argc: *mut i32, argv: *mut *mut libc::c_char);
pub fn gegl_node_new() -> *mut CGeglNode;
pub fn gegl_node_create_child(parent: *mut CGeglNode,
operation: *const libc::c_char)
-> *mut CGeglNode;
pub fn gegl_node_set_property(node: *mut CGeglNode,
property_name: *const libc::c_char,
value: *const libc::c_void);
pub fn gegl_node_link(source: *mut CGeglNode,
sink: *mut CGeglNode);
pub fn gegl_node_process(node: *mut CGeglNode);
pub fn gegl_exit();
pub fn gegl_buffer_new(extent: *mut libc::c_void, format: *mut libc::c_void)
-> *mut GeglBuffer;
pub fn gegl_buffer_get_extent(buffer: *const libc::c_void) ->
*const GeglRectangle;
pub fn g_object_unref(object: *mut libc::c_void);
pub fn g_free(object: *mut libc::c_void);
pub fn gegl_list_operations(num_operations: *mut usize)
-> *mut *const libc::c_char;
}
|