-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathglobal.h
More file actions
29 lines (20 loc) · 794 Bytes
/
global.h
File metadata and controls
29 lines (20 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: LGPL-3.0-or-later
#pragma once
// Exposes functions and data defined/used in mobile.c
#include <stdbool.h>
#include "commands.h"
struct mobile_adapter_global {
// Whether the adapter is turned on or not
bool start: 1;
// Whether the adapter is currently awake or not
// Used to reset everything after a bit of inactivity
bool active: 1;
// Whether the <packet> field has been initialized
bool packet_parsed: 1;
// Whether the relay connection is currently open
bool number_fetch_active: 1;
// Remaining retries for initializing the relay number
unsigned char number_fetch_retries;
};
void mobile_number_fetch_cancel(struct mobile_adapter *adapter);
void mobile_number_fetch_reset(struct mobile_adapter *adapter);