ExoSimpleJob

ExoSimpleJob — Simple interface to execute functions asynchronously

Synopsis

#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,
                                                         ...);

Object Hierarchy

  GObject
   +----ExoJob
         +----ExoSimpleJob

Description

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.

Details

ExoSimpleJob

typedef struct _ExoSimpleJob ExoSimpleJob;

The ExoSimpleJob struct contains only private fields and should not be directly accessed.


ExoSimpleJobFunc ()

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.

job :

an ExoJob.

param_values :

a GValueArray of the GValues passed to exo_simple_job_launch().

error :

return location for errors.

Returns :

TRUE on success, FALSE in case of an error.

exo_simple_job_launch ()

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