Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
jobs: Add argument to start
[src/app-framework-binder.git]
/
src
/
jobs.c
diff --git
a/src/jobs.c
b/src/jobs.c
index
4b4472e
..
952720b
100644
(file)
--- a/
src/jobs.c
+++ b/
src/jobs.c
@@
-732,7
+732,7
@@
struct sd_event *jobs_get_sd_event()
* @param start The start routine to activate (can't be NULL)
* @return 0 in case of success or -1 in case of error.
*/
* @param start The start routine to activate (can't be NULL)
* @return 0 in case of success or -1 in case of error.
*/
-int jobs_start(int allowed_count, int start_count, int waiter_count, void (*start)(int signum
)
)
+int jobs_start(int allowed_count, int start_count, int waiter_count, void (*start)(int signum
, void* arg), void *arg
)
{
int rc, launched;
struct thread me;
{
int rc, launched;
struct thread me;
@@
-782,7
+782,7
@@
int jobs_start(int allowed_count, int start_count, int waiter_count, void (*star
}
/* queue the start job */
}
/* queue the start job */
- job = job_create(NULL, 0,
(job_cb_t)start, NULL
);
+ job = job_create(NULL, 0,
start, arg
);
if (!job) {
ERROR("out of memory");
errno = ENOMEM;
if (!job) {
ERROR("out of memory");
errno = ENOMEM;