Commit 1ec7892b authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

improve GSource support

2007-02-25  Jürg Billeter  <j@bitron.ch>

	* vapi/glib-2.0.vala: improve GSource support

svn path=/trunk/; revision=194
parent f215b257
2007-02-25 Jürg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: improve GSource support
2007-02-22 Raffaele Sandrini <rasa@gmx.ch>
* vala/valacodegenerator.vala: don't allow NULL terminated arrays of
......
......@@ -328,6 +328,14 @@ namespace GLib {
public MainContext get_context ();
}
public enum Priority {
HIGH,
DEFAULT,
HIGH_IDLE,
DEFAULT_IDLE,
LOW
}
[ReferenceType (dup_function = "g_main_context_ref", free_function = "g_main_context_unref")]
public struct MainContext {
public construct ();
......@@ -393,11 +401,14 @@ namespace GLib {
}
public struct PollFD {
public int fd;
public IOCondition events;
public IOCondition revents;
}
[ReferenceType (dup_function = "g_source_ref", free_function = "g_source_unref")]
public struct Source {
public construct (SourceFuncs source_funcs, uint struct_size);
public construct (SourceFuncs source_funcs);
public void set_funcs (SourceFuncs funcs);
public uint attach (MainContext context);
public void destroy ();
......@@ -587,7 +598,17 @@ namespace GLib {
public IOStatus seek_position (int64 offset, SeekType type, out Error error);
public IOStatus shutdown (bool flush, out Error error);
}
[CCode (cprefix = "G_IO_")]
public enum IOCondition {
IN,
OUT,
PRI,
ERR,
HUP,
NVAL
}
[CCode (cprefix = "G_SEEK_")]
public enum SeekType {
CUR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment