mirror of
https://github.com/sailfishos/ofono
synced 2025-11-19 06:35:42 +08:00
[include] Define struct modem in types.h
Not having it defined prior to use may result in weird compilation errors about pointer type being incompatible with iself, e.g. expected struct ofono_modem * but argument is of type struct ofono_modem *
This commit is contained in:
@@ -37,6 +37,8 @@ extern "C" {
|
||||
|
||||
typedef int ofono_bool_t;
|
||||
|
||||
struct ofono_modem;
|
||||
|
||||
/* MCC is always three digits. MNC is either two or three digits */
|
||||
#define OFONO_MAX_MCC_LENGTH 3
|
||||
#define OFONO_MAX_MNC_LENGTH 3
|
||||
|
||||
Reference in New Issue
Block a user