aboutsummaryrefslogtreecommitdiffstats
path: root/src/jobs.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-02-14 09:37:26 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-03-22 12:18:29 +0100
commitf282b0a0795e27c3b0c40e213f6bef1eb602fdc7 (patch)
treedd46396a2738c0b7d4e8aecf5a327a689d0bdae3 /src/jobs.h
parent7b9fa0ade3a8847c779f46fe50c97eed86917abc (diff)
system & jobs: Reverse link and acquiring events
- The new version of 'systemd_get_event_loop' dont depends anymore on jobs but returns a unique systemd event loop for any threads. - The event loop of jobs now use system.h function instead of the opposite. - The function 'jobs_get_sd_event' is removed - The function 'jobs_acquire_event_manager' is introduced. It is designed to that the current thread can manipulate the single event manager Change-Id: I31fe48dfe0f2cfa4d468e49338d36fea6e7e8081 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.h')
-rw-r--r--src/jobs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jobs.h b/src/jobs.h
index 03d52796..a99c9622 100644
--- a/src/jobs.h
+++ b/src/jobs.h
@@ -48,5 +48,5 @@ extern int jobs_start(
void (*start)(int signum, void* arg),
void *arg);
-struct sd_event;
-extern struct sd_event *jobs_get_sd_event();
+extern void jobs_acquire_event_manager();
+