~ubuntu-branches/ubuntu/utopic/ofono/utopic-proposed

« back to all changes in this revision

Viewing changes to src/manager.c

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-08-22 19:59:08 UTC
  • mfrom: (1.4.3)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: package-import@ubuntu.com-20120822195908-20ccett2uhgcz7f6
Tags: upstream-1.9
ImportĀ upstreamĀ versionĀ 1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *
3
3
 *  oFono - Open Source Telephony
4
4
 *
5
 
 *  Copyright (C) 2008-2010  Intel Corporation. All rights reserved.
 
5
 *  Copyright (C) 2008-2011  Intel Corporation. All rights reserved.
6
6
 *
7
7
 *  This program is free software; you can redistribute it and/or modify
8
8
 *  it under the terms of the GNU General Public License version 2 as
80
80
        return reply;
81
81
}
82
82
 
83
 
static GDBusMethodTable manager_methods[] = {
84
 
        { "GetModems",          "",    "a(oa{sv})",  manager_get_modems },
 
83
static const GDBusMethodTable manager_methods[] = {
 
84
        { GDBUS_METHOD("GetModems",
 
85
                                NULL, GDBUS_ARGS({ "modems", "a(oa{sv})" }),
 
86
                                manager_get_modems) },
85
87
        { }
86
88
};
87
89
 
88
 
static GDBusSignalTable manager_signals[] = {
89
 
        { "ModemAdded",        "oa{sv}" },
90
 
        { "ModemRemoved",      "o" },
 
90
static const GDBusSignalTable manager_signals[] = {
 
91
        { GDBUS_SIGNAL("ModemAdded",
 
92
                GDBUS_ARGS({ "path", "o" }, { "properties", "a{sv}" })) },
 
93
        { GDBUS_SIGNAL("ModemRemoved",
 
94
                GDBUS_ARGS({ "path", "o" })) },
91
95
        { }
92
96
};
93
97