Pebble App Framework
v4.6.0
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
Loading...
Searching...
No Matches
role.h
Go to the documentation of this file.
1
16
#pragma once
17
#include <stdbool.h>
18
23
25
typedef
enum
26
{
27
ROLE_DAY
= 0,
28
ROLE_NIGHT
,
29
ROLE_QUIET
,
30
ROLE_COUNT
31
}
Role
;
32
50
Role
role_pick
(
bool
quiet_on,
bool
quiet_set,
bool
night_on,
bool
night_set);
51
role_pick
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
Role
Which of the three is showing. The caller's own storage should line up with these.
Definition
role.h:26
ROLE_DAY
@ ROLE_DAY
The everyday look, and what everything else falls back to.
Definition
role.h:27
ROLE_NIGHT
@ ROLE_NIGHT
The one the night schedule brings in after dark.
Definition
role.h:28
ROLE_QUIET
@ ROLE_QUIET
The one Quiet Time brings in, whatever the hour.
Definition
role.h:29
src
c
core
role
role.h
Generated by
1.18.0