[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:
Slava Monich
2021-11-05 15:11:30 +02:00
parent 9de9417ef1
commit b6c5a7e33f

View File

@@ -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