summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-05 00:51:14 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-05 01:13:05 +0100
commit6ee69bab116f6691dbd04debba5d47dc97d2a6cc (patch)
tree8b11c43e9b625e7d3caf922b3a0564f666525d00 /src
parente65040306900e36aaa84b52428be3490bf107850 (diff)
event: add some well-defined priority values of event sources
Diffstat (limited to 'src')
-rw-r--r--src/systemd/sd-event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemd/sd-event.h b/src/systemd/sd-event.h
index 6ac2de88fa..46d1d055da 100644
--- a/src/systemd/sd-event.h
+++ b/src/systemd/sd-event.h
@@ -53,6 +53,13 @@ enum {
SD_EVENT_FINISHED
};
+enum {
+ /* And everything inbetween and outside is good too */
+ SD_PRIORITY_IMPORTANT = -100,
+ SD_PRIORITY_NORMAL = 0,
+ SD_PRIORITY_IDLE = 100
+};
+
typedef int (*sd_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
typedef int (*sd_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
typedef int (*sd_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);