Skip to content

Commit 6ee69ba

Browse files
committed
event: add some well-defined priority values of event sources
1 parent e650403 commit 6ee69ba

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/systemd/sd-event.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ enum {
5353
SD_EVENT_FINISHED
5454
};
5555

56+
enum {
57+
/* And everything inbetween and outside is good too */
58+
SD_PRIORITY_IMPORTANT = -100,
59+
SD_PRIORITY_NORMAL = 0,
60+
SD_PRIORITY_IDLE = 100
61+
};
62+
5663
typedef int (*sd_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
5764
typedef int (*sd_time_handler_t)(sd_event_source *s, uint64_t usec, void *userdata);
5865
typedef int (*sd_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata);

0 commit comments

Comments
 (0)