mirror of git://git.sysmocom.de/ofono
Refactor: Make enums follow 27.007 Annex B
This commit is contained in:
parent
cd1845da6b
commit
49e0ff2aa6
|
@ -33,18 +33,19 @@ struct _GAtServer;
|
||||||
typedef struct _GAtServer GAtServer;
|
typedef struct _GAtServer GAtServer;
|
||||||
|
|
||||||
/* V.250 Table 1/V.250 Result codes */
|
/* V.250 Table 1/V.250 Result codes */
|
||||||
enum _GAtServerResultCodes {
|
enum _GAtServerResult {
|
||||||
G_AT_SERVER_RESULT_OK = 0,
|
G_AT_SERVER_RESULT_OK = 0,
|
||||||
G_AT_SERVER_RESULT_CONNECT,
|
G_AT_SERVER_RESULT_CONNECT = 1,
|
||||||
G_AT_SERVER_RESULT_RING,
|
G_AT_SERVER_RESULT_RING = 2,
|
||||||
G_AT_SERVER_RESULT_NO_CARRIER,
|
G_AT_SERVER_RESULT_NO_CARRIER = 3,
|
||||||
G_AT_SERVER_RESULT_ERROR,
|
G_AT_SERVER_RESULT_ERROR = 4,
|
||||||
G_AT_SERVER_RESULT_NO_DIALTONE,
|
G_AT_SERVER_RESULT_NO_DIALTONE = 6,
|
||||||
G_AT_SERVER_RESULT_BUSY,
|
G_AT_SERVER_RESULT_BUSY = 7,
|
||||||
G_AT_SERVER_RESULT_NO_ANSWER,
|
G_AT_SERVER_RESULT_NO_ANSWER = 8,
|
||||||
G_AT_SERVER_RESULT_CONNECT_EXT,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef enum _GAtServerResult GAtServerResult;
|
||||||
|
|
||||||
GAtServer *g_at_server_new(GIOChannel *io);
|
GAtServer *g_at_server_new(GIOChannel *io);
|
||||||
|
|
||||||
GAtServer *g_at_server_ref(GAtServer *server);
|
GAtServer *g_at_server_ref(GAtServer *server);
|
||||||
|
|
Loading…
Reference in New Issue