summaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index 54cb3f40..7f99f80c 100644
--- a/include/types.h
+++ b/include/types.h
@@ -53,6 +53,13 @@ enum ofono_error_type {
OFONO_ERROR_TYPE_FAILURE
};
+enum ofono_disconnect_reason {
+ OFONO_DISCONNECT_REASON_UNKNOWN = 0,
+ OFONO_DISCONNECT_REASON_LOCAL_HANGUP,
+ OFONO_DISCONNECT_REASON_REMOTE_HANGUP,
+ OFONO_DISCONNECT_REASON_ERROR,
+};
+
struct ofono_error {
enum ofono_error_type type;
int error;
@@ -65,6 +72,15 @@ struct ofono_phone_number {
int type;
};
+struct ofono_call {
+ unsigned id;
+ int type;
+ int direction;
+ int status;
+ struct ofono_phone_number phone_number;
+ int clip_validity;
+};
+
#ifdef __cplusplus
}
#endif