![]() |
![]() |
![]() |
Exo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#include <exo/exo.h> ExoSimpleJob; gboolean (*ExoSimpleJobFunc) (ExoJob *job
,GValueArray *param_values
,GError **error
); ExoJob * exo_simple_job_launch (ExoSimpleJobFunc func
,guint n_param_values
,...
);
ExoSimpleJob can be used to execute functions asynchronously in an ExoJob wrapper object. It is easier to use than the GThread system and provides basic signals to follow the progress of an operation.
typedef struct _ExoSimpleJob ExoSimpleJob;
The ExoSimpleJob struct contains only private fields and should not be directly accessed.
gboolean (*ExoSimpleJobFunc) (ExoJob *job
,GValueArray *param_values
,GError **error
);
Used by the ExoSimpleJob to process the job
. See exo_simple_job_launch()
for further details.
|
an ExoJob. |
|
a GValueArray of the GValues passed to
exo_simple_job_launch() . |
|
return location for errors. |
Returns : |
TRUE on success, FALSE in case of an error. |
ExoJob * exo_simple_job_launch (ExoSimpleJobFunc func
,guint n_param_values
,...
);
Allocates a new ExoJob which executes the specified func
with
the specified parameters.
An example could be:
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |