type Data_Type (<>) is private;
type Destroy_Notify is access procedure (Data : in out Data_Type);
Notify is called just prior to the destruction of Data. It is also called if the idle or timeout is destroyed through a call to Remove (Id);
procedure Free_Data (D : System.Address)
type G_Source_Func is access
function (Data : Data_Type) return Boolean;
If the function returns FALSE it is automatically removed from the list of event sources and will not be called again.
function General_Cb (D : System.Address) return Gint
function Idle_Add
(Func : G_Source_Func;
Data : Data_Type;
Priority : G_Priority := Priority_Default_Idle;
Notify : Destroy_Notify := null) return G_Source_Id
Adds a function to be called whenever there are no higher priority events pending.
procedure Set_Callback
(Source : G_Source;
Func : G_Source_Func;
Data : Data_Type;
Notify : Destroy_Notify := null)
Sets the callback function for a source. The callback for a source is called from the source's dispatch function.
The exact type of func depends on the type of source; ie. you should not count on func being called with data as its first parameter.
Typically, you won't use this function. Instead use functions specific to the type of source you are using.
function Timeout_Add
(Interval : Guint;
Func : G_Source_Func;
Data : Data_Type;
Priority : G_Priority := Priority_Default;
Notify : Destroy_Notify := null) return G_Source_Id
Adds a function to be called at regular intervals (in milliseconds).