PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 1ms

/packages/gtk2/src/glib/gvaluearray.inc

https://github.com/slibre/freepascal
Pascal | 35 lines | 16 code | 10 blank | 9 comment | 0 complexity | 73922ccd5526d90f116b5876f0b0077a MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1// included by glib2.pas
 2
 3{$IFDEF read_forward_definitions}
 4{$ENDIF read_forward_definitions}
 5
 6//------------------------------------------------------------------------------
 7
 8{$IFDEF read_interface_types}
 9   PGValueArray = ^TGValueArray;
10   TGValueArray = record
11        n_values : guint;
12        values : PGValue;
13        n_prealloced : guint;
14     end;
15{$ENDIF read_interface_types}
16
17//------------------------------------------------------------------------------
18
19{$IFDEF read_interface_rest}
20function g_value_array_get_nth(value_array:PGValueArray; index:guint):PGValue; cdecl; external gobjectlib;
21function g_value_array_new(n_prealloced:guint):PGValueArray; cdecl; external gobjectlib;
22procedure g_value_array_free(value_array:PGValueArray); cdecl; external gobjectlib;
23
24function g_value_array_copy(value_array:PGValueArray):PGValueArray; cdecl; external gobjectlib;
25
26function g_value_array_prepend(value_array:PGValueArray; value:PGValue):PGValueArray; cdecl; external gobjectlib;
27
28function g_value_array_append(value_array:PGValueArray; value:PGValue):PGValueArray; cdecl; external gobjectlib;
29
30function g_value_array_insert(value_array:PGValueArray; index:guint; value:PGValue):PGValueArray; cdecl; external gobjectlib;
31function g_value_array_remove(value_array:PGValueArray; index:guint):PGValueArray; cdecl; external gobjectlib;
32function g_value_array_sort(value_array:PGValueArray; compare_func:TGCompareFunc):PGValueArray; cdecl; external gobjectlib;
33function g_value_array_sort_with_data(value_array:PGValueArray; compare_func:TGCompareDataFunc; user_data:gpointer):PGValueArray; cdecl; external gobjectlib;
34
35{$ENDIF read_interface_rest}