![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
gboolean (*FmSimpleJobFunc) (FmJob *job
,gpointer user_data
); FmJob * fm_simple_job_new (FmSimpleJobFunc func
,gpointer user_data
,GDestroyNotify destroy_data
);
include
: libfm/fm-simple-job.h
The FmJob can be used to create asynchronous job which just run some simple function with provided data.
gboolean (*FmSimpleJobFunc) (FmJob *job
,gpointer user_data
);
The user function which will be ran asynchronously by FmJob API.
|
the job object |
|
user data provided on fm_simple_job_new() call |
Returns : |
value to return from fm_job_run_sync() . |
FmJob * fm_simple_job_new (FmSimpleJobFunc func
,gpointer user_data
,GDestroyNotify destroy_data
);
Creates a new simple FmJob for user task.
|
user function to run asynchronously |
|
user data provided for func
|
|
user function to free data after job finished |
Returns : |
a new FmJob object. [transfer full] |
Since 0.1.0