Loading...
Searching...
No Matches
role.h
Go to the documentation of this file.
1
16#pragma once
17#include <stdbool.h>
18
23
25typedef enum
26{
30 ROLE_COUNT
31} Role;
32
50Role role_pick(bool quiet_on, bool quiet_set, bool night_on, bool night_set);
51
Role role_pick(bool quiet_on, bool quiet_set, bool night_on, bool night_set)
Which role wins, given what is firing and what has something behind it.
Definition role.c:9
Role
Which of the three is showing. The caller's own storage should line up with these.
Definition role.h:26
@ ROLE_DAY
The everyday look, and what everything else falls back to.
Definition role.h:27
@ ROLE_NIGHT
The one the night schedule brings in after dark.
Definition role.h:28
@ ROLE_QUIET
The one Quiet Time brings in, whatever the hour.
Definition role.h:29