diff options
author | Matt Porter <mporter@konsulko.com> | 2017-05-19 12:56:35 -0400 |
---|---|---|
committer | Matt Porter <mporter@konsulko.com> | 2017-05-19 14:58:25 -0400 |
commit | 53f6222d2ca009c86f301a630e4bf81d25c86feb (patch) | |
tree | f6e30413b1c9c8d960cbb7952dc9a55f0d667f7e /telephony-binding/gdbus/ofono_voicecall.h | |
parent | 91520f0839b47641162b2f4ba5e788f6a602b4e4 (diff) |
Refactor telephony binding voicecall object management
Refactor the voicecall object lifecycle management in the
telephony binding using g_object-derived handles. Instead
of passing around and managing raw strings as a handle to
a voicecall, we use the voicecall object itself returned
from the new dbus proxy init. This simplifies memory
management of these objects that are created and freed
each time as calls are dialed/answered and terminated. It
then simplifies the forthcoming call answering support.
AGL-Bug: SPEC-600
Change-Id: I89efed1eb7927f4ffe2d1eaed295e0aa914efdcc
Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'telephony-binding/gdbus/ofono_voicecall.h')
-rw-r--r-- | telephony-binding/gdbus/ofono_voicecall.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/telephony-binding/gdbus/ofono_voicecall.h b/telephony-binding/gdbus/ofono_voicecall.h index efabc84..0e33dd5 100644 --- a/telephony-binding/gdbus/ofono_voicecall.h +++ b/telephony-binding/gdbus/ofono_voicecall.h @@ -16,4 +16,8 @@ #include <glib.h> -void ofono_hangup(gchar *); +#include "ofono_voicecall_interface.h" + +OrgOfonoVoiceCall *ofono_voicecall_new(gchar *); +void ofono_voicecall_free(OrgOfonoVoiceCall *); +void ofono_voicecall_hangup(OrgOfonoVoiceCall *); |