calypsomodem: Some cleanups in voice call driver

This commit is contained in:
Marcel Holtmann 2010-09-27 08:11:04 +09:00
parent d66e699a88
commit fcdd8b40b4
1 changed files with 7 additions and 3 deletions

View File

@ -27,6 +27,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <glib.h>
@ -382,13 +383,16 @@ static void calypso_voicecall_initialized(gboolean ok, GAtResult *result,
ofono_voicecall_register(vc);
}
static int calypso_voicecall_probe(struct ofono_voicecall *vc, unsigned int vendor,
void *data)
static int calypso_voicecall_probe(struct ofono_voicecall *vc,
unsigned int vendor, void *data)
{
GAtChat *chat = data;
struct voicecall_data *vd;
vd = g_new0(struct voicecall_data, 1);
vd = g_try_new0(struct voicecall_data, 1);
if (!vd)
return -ENOMEM;
vd->chat = g_at_chat_clone(chat);
ofono_voicecall_set_data(vc, vd);