Skip to content

Commit

Permalink
[mms-engine] Fixed sendReadReport handler prototype
Browse files Browse the repository at this point in the history
It didn't match the spec
  • Loading branch information
monich committed Feb 19, 2015
1 parent 826c0ea commit 3e31053
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mms-engine/mms_engine.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2013-2014 Jolla Ltd.
* Copyright (C) 2013-2015 Jolla Ltd.
* Contact: Slava Monich <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -242,14 +243,15 @@ gboolean
mms_engine_handle_send_read_report(
OrgNemomobileMmsEngine* proxy,
GDBusMethodInvocation* call,
const char* id,
int database_id,
const char* imsi,
const char* message_id,
const char* to,
int read_status, /* 0: Read 1: Deleted without reading */
MMSEngine* engine)
{
GError* error = NULL;
char* id = g_strdup_printf("%d", database_id);
MMS_DEBUG_("%s %s %s %s %d", id, imsi, message_id, to, read_status);
if (mms_dispatcher_send_read_report(engine->dispatcher, id, imsi,
message_id, to, (read_status == 1) ? MMS_READ_STATUS_DELETED :
Expand All @@ -263,6 +265,7 @@ mms_engine_handle_send_read_report(
G_DBUS_ERROR_FAILED, "%s", MMS_ERRMSG(error));
g_error_free(error);
}
g_free(id);
return TRUE;
}

Expand Down

0 comments on commit 3e31053

Please sign in to comment.