X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemd%2Fsd-event.h;h=46d1d055dacc172236f8be9e9e9243c9e9f2e118;hp=6ac2de88fa2366c28f2ee57cc11c4a100433bc99;hb=6ee69bab116f6691dbd04debba5d47dc97d2a6cc;hpb=e65040306900e36aaa84b52428be3490bf107850 diff --git a/src/systemd/sd-event.h b/src/systemd/sd-event.h index 6ac2de88f..46d1d055d 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);