[CCode (cprefix = "G", lower_case_cprefix = "g_", cheader_filename = "glib.h")]
namespace GLib {
[CCode (cheader_filename = "gidlparser.h")]
- public struct Idl {
+ public static class Idl {
public static List<IdlModule> parse_file (string! filename) throws MarkupError;
}
- [CCode (cheader_filename = "gidlmodule.h")]
- [ReferenceType (free_function = "g_idl_module_free")]
- public struct IdlModule {
+ [CCode (free_function = "g_idl_module_free", cheader_filename = "gidlmodule.h")]
+ public class IdlModule {
public string name;
public List<IdlNode> entries;
}
XREF
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNode {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNode {
public IdlNodeTypeId type;
public string name;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeFunction {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeFunction {
public bool deprecated;
public bool is_method;
public List<IdlNodeParam> parameters;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeSignal {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeSignal {
public bool deprecated;
public bool run_first;
public IdlNodeParam result;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeBoxed {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeBoxed {
public bool deprecated;
public string gtype_name;
public List<IdlNode> members;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeEnum {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeEnum {
public bool deprecated;
public string gtype_name;
public List<IdlNode> values;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeField {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeField {
public bool readable;
public bool writable;
public int bits;
public IdlNodeType type;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeConstant {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeConstant {
public bool deprecated;
public IdlNodeType type;
public string value;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeInterface {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeInterface {
public bool deprecated;
public string gtype_name;
public List<IdlNode> members;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeParam {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeParam {
public bool @in;
public bool @out;
public bool dipper;
public IdlNodeType type;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeProperty {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeProperty {
public bool deprecated;
public string name;
public IdlNodeType type;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeStruct {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeStruct {
public bool deprecated;
public List<IdlNode> members;
}
- [CCode (cheader_filename = "gidlnode.h")]
- [ReferenceType (free_function = "g_idl_node_free")]
- public struct IdlNodeType {
+ [CCode (free_function = "g_idl_node_free", cheader_filename = "gidlnode.h")]
+ public class IdlNodeType {
public bool is_pointer;
public bool is_basic;
public bool is_array;
HANGUL_LVT_SYLLABLE
}
-[ReferenceType (dup_function = "g_strdup", free_function = "g_free", type_id = "G_TYPE_STRING")]
-[CCode (cname = "char", const_cname = "const char", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string")]
-public struct string {
+[CCode (cname = "char", const_cname = "const char", copy_function = "g_strdup", free_function = "g_free", cheader_filename = "stdlib.h,string.h,glib.h", type_id = "G_TYPE_STRING", marshaller_type_name = "STRING", get_value_function = "g_value_get_string", set_value_function = "g_value_set_string")]
+public class string {
[CCode (cname = "strstr")]
public weak string str (string! needle);
[CCode (cname = "g_str_has_prefix")]
}
- [ReferenceType]
- public struct TypeInstance {
+ public class TypeInstance {
}
- [ReferenceType]
- public struct TypeClass {
+ public class TypeClass {
[CCode (cname = "G_TYPE_FROM_CLASS")]
public Type get_type ();
}
public void set_name (string! name);
}
- [ReferenceType ()]
- public struct ParamSpec {
+ public class ParamSpec {
public TypeInstance g_type_instance;
public string name;
public ParamFlags flags;
STATIC_BLURB
}
- [ReferenceType ()]
- public struct ObjectClass {
+ public class ObjectClass {
public ParamSpec[] list_properties (out int n_properties);
}
public static delegate void ObjectSetPropertyFunc (Object object, uint property_id, Value value, ParamSpec pspec);
[CCode (ref_function = "g_object_ref", unref_function = "g_object_unref", marshaller_type_name = "OBJECT", get_value_function = "g_value_get_object", set_value_function = "g_value_set_object", cheader_filename = "glib-object.h")]
- public class Object {
+ public class Object : TypeInstance {
[CCode (cname = "G_TYPE_FROM_INSTANCE")]
public Type get_type ();
public Object @ref ();
public abstract void free ();
}
- [ReferenceType (free_function = "g_free")]
- [CCode (type_id = "G_TYPE_VALUE")]
- public struct Value {
+ [CCode (free_function = "g_free", type_id = "G_TYPE_VALUE")]
+ public class Value {
public weak Value init (Type g_type);
public void copy (Value dest_value);
public weak Value reset ();
public static delegate void Callback ();
- [ReferenceType]
[CCode (type_id = "G_TYPE_CLOSURE")]
- public struct Closure {
+ public class Closure {
}
public static delegate void ClosureNotify (pointer data, Closure closure);
}
[CCode (cprefix = "", cheader_filename = "math.h")]
- public struct Math {
+ public static class Math {
[CCode (cname = "G_E")]
public static double E;
/* The Main Event Loop */
- [ReferenceType (dup_function = "g_main_loop_ref", free_function = "g_main_loop_unref")]
- public struct MainLoop {
+ [CCode (ref_function = "g_main_loop_ref", unref_function = "g_main_loop_unref")]
+ public class MainLoop {
public MainLoop (MainContext context, bool is_running);
public void run ();
public void quit ();
LOW
}
- [ReferenceType (dup_function = "g_main_context_ref", free_function = "g_main_context_unref")]
- public struct MainContext {
+ [CCode (ref_function = "g_main_context_ref", unref_function = "g_main_context_unref")]
+ public class MainContext {
public MainContext ();
public static weak MainContext @default ();
public bool iteration (bool may_block);
public static delegate int PollFunc (PollFD[] ufds, uint nfsd, int timeout_);
- public struct TimeoutSource : Source {
+ public class TimeoutSource : Source {
public TimeoutSource (uint interval);
}
- public struct Timeout {
+ public static class Timeout {
public static uint add (uint interval, SourceFunc function, pointer data);
public static uint add_full (int priority, uint interval, SourceFunc function, pointer data, DestroyNotify notify);
}
- [ReferenceType ()]
- public struct IdleSource : Source {
+ public class IdleSource : Source {
public IdleSource ();
}
- public struct Idle {
+ public static class Idle {
public static uint add (SourceFunc function, pointer data);
public static uint add_full (int priority, SourceFunc function, pointer data, DestroyNotify notify);
public static bool remove_by_data (pointer data);
public static delegate void ChildWatchFunc (Pid pid, int status, pointer data);
- [ReferenceType ()]
- public struct ChildWatchSource : Source {
+ public class ChildWatchSource : Source {
public ChildWatchSource (Pid pid, int status, pointer data);
}
- public struct ChildWatch {
+ public static class ChildWatch {
public static uint add (Pid pid, ChildWatchFunc function, pointer data);
public static uint add_full (int priority, Pid pid, ChildWatchFunc function, pointer data, DestroyNotify notify);
}
public IOCondition revents;
}
- [ReferenceType (dup_function = "g_source_ref", free_function = "g_source_unref")]
- public struct Source {
+ [CCode (ref_function = "g_source_ref", unref_function = "g_source_unref")]
+ public class Source {
public Source (SourceFuncs source_funcs, uint struct_size /* = sizeof (Source) */);
public void set_funcs (SourceFuncs funcs);
public uint attach (MainContext context);
public static delegate bool SourceDispatchFunc (Source source, SourceFunc _callback, pointer user_data);
public static delegate void SourceFinalizeFunc (Source source);
- [ReferenceType ()]
- public struct SourceFuncs {
+ public class SourceFuncs {
public SourcePrepareFunc prepare;
public SourceCheckFunc check;
public SourceDispatchFunc dispatch;
public static delegate void SourceCallbackUnrefFunc (pointer cb_data);
public static delegate void SourceCallbackGetFunc (pointer cb_data, Source source, SourceFunc func, pointer data);
- [ReferenceType ()]
- public struct SourceCallbackFuncs {
+ public class SourceCallbackFuncs {
public SourceCallbackRefFunc @ref;
public SourceCallbackUnrefFunc unref;
public SourceCallbackGetFunc @get;
}
/* Thread support */
- [ReferenceType ()]
- public struct ThreadFunctions {
+ public class ThreadFunctions {
}
public static delegate pointer ThreadFunc (pointer data);
URGENT
}
- [ReferenceType ()]
- public struct Thread {
+ public class Thread {
public static void init (ThreadFunctions vtable = null);
public static bool supported ();
public static weak Thread create (ThreadFunc func, pointer data, bool joinable) throws ThreadError;
public static void usleep (ulong microseconds);
}
- [ReferenceType (free_function = "g_mutex_free")]
- public struct Mutex {
+ [CCode (free_function = "g_mutex_free")]
+ public class Mutex {
public Mutex ();
public void @lock ();
public bool try_lock ();
public void unlock ();
}
- [ReferenceType (free_function = "g_cond_free")]
- public struct Cond {
+ [CCode (free_function = "g_cond_free")]
+ public class Cond {
public Cond ();
public void @signal ();
public void broadcast ();
/* Thread Pools */
- [ReferenceType (free_function = "g_thread_pool_free")]
- public struct ThreadPool {
+ [CCode (free_function = "g_thread_pool_free")]
+ public class ThreadPool {
public ThreadPool (Func func, pointer user_data, int max_threads, bool exclusive) throws ThreadError;
public void push (pointer data) throws ThreadError;
public void set_max_threads (int max_threads) throws ThreadError;
/* Asynchronous Queues */
- [ReferenceType (dup_function = "g_async_queue_ref", free_function = "g_async_queue_unref")]
- public struct AsyncQueue {
+ [CCode (ref_function = "g_async_queue_ref", unref_function = "g_async_queue_unref")]
+ public class AsyncQueue {
public AsyncQueue ();
public void push (pointer data);
public void push_sorted (pointer data, CompareDataFunc func, pointer user_data);
/* Dynamic Loading of Modules */
- [ReferenceType (free_function = "g_module_close")]
- public struct Module {
+ [CCode (free_function = "g_module_close")]
+ public class Module {
public static bool supported ();
public static string build_path (string directory, string module_name);
public static Module open (string file_name, ModuleFlags @flags);
/* IO Channels */
- [ReferenceType (dup_function = "g_io_channel_ref", free_function = "g_io_channel_unref")]
- [CCode (type_id = "G_TYPE_IO_CHANNEL")]
- public struct IOChannel {
+ [CCode (ref_function = "g_io_channel_ref", unref_function = "g_io_channel_unref", type_id = "G_TYPE_IO_CHANNEL")]
+ public class IOChannel {
public IOChannel.file (string! filename, string! mode) throws FileError;
[CCode (cname = "g_io_channel_unix_new")]
public IOChannel.unix_new (int fd);
public IOStatus shutdown (bool flush) throws IOChannelError;
}
- [CCode (cprefix = "G_IO_")]
- [CCode (type_id = "G_TYPE_IO_CONDITION")]
+ [CCode (cprefix = "G_IO_", type_id = "G_TYPE_IO_CONDITION")]
public enum IOCondition {
IN,
OUT,
/* Error Reporting */
- [ReferenceType (dup_function = "g_error_copy", free_function = "g_error_free")]
- public struct Error {
+ [CCode (copy_function = "g_error_copy", free_function = "g_error_free")]
+ public class Error {
public Error (Quark domain, int code, string! format, ...);
public int code;
public string message;
public int close ();
}
- public struct Filename {
+ public static class Filename {
public static string from_uri (string! uri, out string hostname = null) throws ConvertError;
public static string to_uri (string! filename, string hostname = null) throws ConvertError;
public static string display_basename (string! filename);
/* Base64 Encoding */
- public struct Base64 {
+ public static class Base64 {
public static int encode_step (string! _in, int len, bool break_lines, string _out, out int state, out int save);
public static int encode_close (bool break_lines, string _out, out int state, out int save);
public static string encode (string! data, int len);
public bool valid ();
}
- [ReferenceType (free_function = "g_date_free")]
- [CCode (type_id = "G_TYPE_DATE")]
- public struct Date {
+ [CCode (free_function = "g_date_free", type_id = "G_TYPE_DATE")]
+ public class Date {
public Date ();
public Date.dmy (DateDay day, DateMonth month, DateYear year);
public Date.julian (uint julian_day);
/* Random Numbers */
- [ReferenceType (dup_function = "g_rand_copy", free_function = "g_rand_free")]
- public struct Rand {
+ [CCode (copy_function = "g_rand_copy", free_function = "g_rand_free")]
+ public class Rand {
public Rand.with_seed (uint32 seed);
[NoArrayLength ()]
public Rand.with_seed_array (uint32[] seed, uint seed_length);
public double double_range (double begin, double end);
}
- public struct Random {
+ public static class Random {
public static void set_seed (uint32 seed);
public static bool boolean ();
public static uint32 @int ();
/* Miscellaneous Utility Functions */
- public struct Environment {
+ public static class Environment {
[CCode (cname = "g_get_application_name")]
public static weak string get_application_name ();
[CCode (cname = "g_set_application_name")]
public static string get_current_dir ();
}
- public struct Path {
+ public static class Path {
public static bool is_absolute (string! file_name);
public static weak string skip_root (string! file_name);
public static string get_basename (string file_name);
/* Lexical Scanner */
- [ReferenceType (free_function = "g_scanner_destroy")]
- public struct Scanner {
+ [CCode (free_function = "g_scanner_destroy")]
+ public class Scanner {
}
/* Spawning Processes */
public static delegate void SpawnChildSetupFunc (pointer user_data);
[CCode (cprefix = "g_")]
- public struct Process {
+ public static class Process {
[NoArrayLength ()]
public static bool spawn_async_with_pipes (string working_directory, string[] argv, string[] envp, SpawnFlags _flags, SpawnChildSetupFunc child_setup, pointer user_data, out Pid child_pid, out int standard_input = null, out int standard_output = null, out int standard_error = null) throws SpawnError;
[NoArrayLength ()]
EXISTS
}
- [ReferenceType (free_function = "fclose")]
- [CCode (cname = "FILE", cheader_filename = "stdio.h")]
- public struct FileStream {
+ [CCode (cname = "FILE", free_function = "fclose", cheader_filename = "stdio.h")]
+ public class FileStream {
[CCode (cname = "fopen")]
public static FileStream open (string path, string mode);
[CCode (cname = "fdopen")]
}
[CCode (cprefix = "g_file_", cheader_filename = "glib/gstdio.h")]
- public struct FileUtils {
+ public static class FileUtils {
public static bool get_contents (string! filename, out string contents, out ulong length = null) throws FileError;
public static bool set_contents (string! filename, string contents, long length = -1) throws FileError;
public static bool test (string filename, FileTest test);
public struct Stat {
}
- [ReferenceType (free_function = "g_dir_close")]
- public struct Dir {
+ [CCode (free_function = "g_dir_close")]
+ public class Dir {
public static Dir open (string filename, uint _flags = 0) throws FileError;
public weak string read_name ();
public void rewind ();
}
- public struct DirUtils {
+ public static class DirUtils {
[CCode (cname = "g_mkdir")]
public static int create (string pathname, int mode);
[CCode (cname = "g_mkdir_with_parents")]
public static weak string mkdtemp (string template);
}
- [ReferenceType (free_function = "g_mapped_file_free")]
- public struct MappedFile {
+ [CCode (free_function = "g_mapped_file_free")]
+ public class MappedFile {
public MappedFile (string filename, bool writable) throws FileError;
public void free ();
public long get_length ();
public weak char[] get_contents ();
}
- [ReferenceType ()]
[CCode (cname = "char", cheader_filename = "string.h")]
- public struct Memory {
+ public class Memory {
[CCode (cname = "memcmp")]
[NoArrayLength ()]
public static int cmp (char[] s1, char[] s2, long n);
FAILED
}
- public struct Shell {
+ public static class Shell {
public static bool parse_argv (string! command_line, out int argcp, out string[] argvp) throws ShellError;
public static string! quote (string! unquoted_string);
public static string! unquote (string! quoted_string) throws ShellError;
FAILED
}
- [ReferenceType (free_function = "g_option_context_free")]
- public struct OptionContext {
+ [CCode (free_function = "g_option_context_free")]
+ public class OptionContext {
public OptionContext (string parameter_string);
public bool parse (out string[] argv) throws OptionError;
public void set_help_enabled (bool help_enabled);
}
public struct OptionEntry {
- string long_name;
- char short_name;
- int flags_;
-
- OptionArg arg;
- pointer arg_data;
-
- string description;
- string arg_description;
+ public string long_name;
+ public char short_name;
+ public int flags_;
+
+ public OptionArg arg;
+ public pointer arg_data;
+
+ public string description;
+ public string arg_description;
}
- [ReferenceType ()]
- public struct OptionGroup {
+ public class OptionGroup {
}
/* Perl-compatible regular expressions */
NEWLINE_ANY
}
- [ReferenceType (dup_function = "g_regex_ref", free_function = "g_regex_unref")]
- [CCode (type_id = "G_TYPE_REGEX")]
- public struct Regex {
+ [CCode (ref_function = "g_regex_ref", unref_function = "g_regex_unref", type_id = "G_TYPE_REGEX")]
+ public class Regex {
public Regex (string! pattern, RegexCompileFlags compile_options = 0, RegexMatchFlags match_options = 0) throws RegexError;
public string! get_pattern ();
public int get_max_backref ();
public static delegate bool RegexEvalCallback (MatchInfo match_info, String result, pointer user_data);
- [ReferenceType (free_function = "g_match_info_free")]
- public struct MatchInfo {
+ [CCode (free_function = "g_match_info_free")]
+ public class MatchInfo {
public weak Regex get_regex ();
public weak string get_string ();
public bool matches ();
TREAT_CDATA_AS_TEXT
}
- [ReferenceType (free_function = "g_markup_parse_context_free")]
- public struct MarkupParseContext {
+ [CCode (free_function = "g_markup_parse_context_free")]
+ public class MarkupParseContext {
public MarkupParseContext (MarkupParser parser, MarkupParseFlags _flags, pointer user_data, DestroyNotify user_data_dnotify);
public bool parse (string text, long text_len) throws MarkupError;
}
public static delegate void MarkupParserErrorFunc (MarkupParseContext context, Error error, pointer user_data);
- [ReferenceType (free_function = "g_free")]
- public struct MarkupParser {
+ public class MarkupParser {
public MarkupParserStartElementFunc start_element;
public MarkupParserEndElementFunc end_element;
public MarkupParserTextFunc text;
public MarkupParserErrorFunc error;
}
- public struct Markup {
+ public static class Markup {
public static string! escape_text (string! text, long length = -1);
[PrintfFormat]
public static string! printf_escaped (string! format, ...);
INVALID_VALUE
}
- [ReferenceType (free_function = "g_key_file_free")]
- public struct KeyFile {
+ [CCode (free_function = "g_key_file_free")]
+ public class KeyFile {
public KeyFile ();
public void set_list_separator (char separator);
public bool load_from_file (string! file, KeyFileFlags @flags) throws KeyFileError;
/* Doubly-Linked Lists */
- [ReferenceType (dup_function = "g_list_copy", free_function = "g_list_free")]
- public struct List<G> {
+ [CCode (dup_function = "g_list_copy", free_function = "g_list_free")]
+ public class List<G> {
[ReturnsModifiedPointer ()]
public void append (G# data);
[ReturnsModifiedPointer ()]
/* Singly-Linked Lists */
- [ReferenceType (dup_function = "g_slist_copy", free_function = "g_slist_free")]
- public struct SList<G> {
+ [CCode (dup_function = "g_slist_copy", free_function = "g_slist_free")]
+ public class SList<G> {
[ReturnsModifiedPointer ()]
public void append (G# data);
[ReturnsModifiedPointer ()]
/* Double-ended Queues */
- [ReferenceType (dup_function = "g_queue_copy", free_function = "g_queue_free")]
- public struct Queue<G> {
+ [CCode (dup_function = "g_queue_copy", free_function = "g_queue_free")]
+ public class Queue<G> {
public weak List<G> head;
public weak List<G> tail;
public uint length;
/* Hash Tables */
- [ReferenceType (dup_function = "g_hash_table_ref", free_function = "g_hash_table_unref")]
- [CCode (type_id = "G_TYPE_HASH_TABLE")]
- public struct HashTable<K,V> {
+ [CCode (ref_function = "g_hash_table_ref", unref_function = "g_hash_table_unref", type_id = "G_TYPE_HASH_TABLE")]
+ public class HashTable<K,V> {
public HashTable (HashFunc hash_func, EqualFunc key_equal_func);
public HashTable.full (HashFunc hash_func, EqualFunc key_equal_func, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
public void insert (K# key, V# value);
/* Strings */
- [ReferenceType (free_function = "g_string_free")]
- [CCode (type_id = "G_TYPE_GSTRING")]
- public struct String {
+ [CCode (free_function = "g_string_free", type_id = "G_TYPE_GSTRING")]
+ public class String {
public String (string init = "");
[CCode (cname = "g_string_sized_new")]
public String.sized (ulong dfl_size);
/* Pointer Arrays */
- [ReferenceType (free_function = "g_ptr_array_free")]
- public struct PtrArray {
+ [CCode (free_function = "g_ptr_array_free")]
+ public class PtrArray {
}
/* Byte Arrays */
- [ReferenceType (free_function = "g_byte_array_free")]
- public struct ByteArray {
+ [CCode (free_function = "g_byte_array_free")]
+ public class ByteArray {
}
/* Quarks */
/* GArray */
- [ReferenceType ()]
- public struct Array<G> {
+ public class Array<G> {
public Array (bool zero_terminated, bool clear, uint element_size);
[CCode (cname = "g_array_sized_new")]
public Array.sized (bool zero_terminated, bool clear, uint element_size, uint reserved_size);
LEVEL_ORDER
}
- [ReferenceType (free_function = "g_tree_destroy")]
- public struct Tree<K,V> {
+ [CCode (free_function = "g_tree_destroy")]
+ public class Tree<K,V> {
public Tree (CompareFunc key_compare_func);
public Tree.with_data (CompareFunc key_compare_func, pointer key_compare_data);
public Tree.full (CompareFunc key_compare_func, pointer key_compare_data, DestroyNotify key_destroy_func, DestroyNotify value_destroy_func);
TIME
}
- public struct Intl {
+ public static class Intl {
[CCode (cname = "setlocale", cheader_filename = "locale.h")]
public static weak string setlocale (LocaleCategory category, string locale);
[CCode (cname = "bindtextdomain", cheader_filename = "glib/gi18n-lib.h")]
public static weak string textdomain (LocaleCategory category, string locale);
}
- public struct Signal {
+ public static class Signal {
public static void query (uint signal_id, out SignalQuery query);
public static uint lookup (string! name, Type itype);
public static weak string name (uint signal_id);
public static bool parse_name (string !detailed_signal, Type itype, out uint signal_id, out Quark detail, bool force_detail_quark);
}
- public struct SignalHandler {
+ public static class SignalHandler {
public static void block (pointer instance, ulong handler_id);
public static void unblock (pointer instance, ulong handler_id);
public static void disconnect (pointer instance, ulong handler_id);