Loading...
Searching...
No Matches
wx_cond.c File Reference

Turns the condition token the phone sends into its WxCond. More...

#include "weather/wx_cond.h"
#include <string.h>

Macros

#define TOKEN_ROW(name)
 One condition's name as its token.

Functions

WxCond wx_cond_parse (const char *token, bool *night)
 Finds the condition for a token, with or without its "_NIGHT" ending.

Variables

static const char s_tokens [WX_COND_COUNT][WX_COND_TOKEN_LEN] = {WX_COND_EACH(TOKEN_ROW)}
 Each condition's token in a fixed width row, indexed by its WxCond. The rows are plain bytes rather than pointers, so the watch has no pointer per token to fix up when it loads the app.

Detailed Description

Turns the condition token the phone sends into its WxCond.

Macro Definition Documentation

◆ TOKEN_ROW

#define TOKEN_ROW ( name)
Value:
[WX_COND_##name] = #name,

One condition's name as its token.