aboutsummaryrefslogtreecommitdiff
path: root/src/dbus-proto.h
blob: fe4af636e84f59e6a5fefc5da3084b9e2cb05427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/******************************************************************************/
/*  This file is part of libresource                                          */
/*                                                                            */
/*  Copyright (C) 2010 Nokia Corporation.                                     */
/*                                                                            */
/*  This library is free software; you can redistribute                       */
/*  it and/or modify it under the terms of the GNU Lesser General Public      */
/*  License as published by the Free Software Foundation                      */
/*  version 2.1 of the License.                                               */
/*                                                                            */
/*  This library is distributed in the hope that it will be useful,           */
/*  but WITHOUT ANY WARRANTY; without even the implied warranty of            */
/*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          */
/*  Lesser General Public License for more details.                           */
/*                                                                            */
/*  You should have received a copy of the GNU Lesser General Public          */
/*  License along with this library; if not, write to the Free Software       */
/*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  */
/*  USA.                                                                      */
/******************************************************************************/

#ifndef __RES_DBUS_PROTO_H__
#define __RES_DBUS_PROTO_H__

#include <stdarg.h>
#include <res-conn.h>

/* D-Bus names */
#define RESPROTO_DBUS_ADMIN_NAME                "org.freedesktop.DBus"
#define RESPROTO_DBUS_MANAGER_NAME              "org.maemo.resource.manager"

/* D-Bus pathes */
#define RESPROTO_DBUS_ADMIN_PATH                 "/org/freedesktop/DBus"
#define RESPROTO_DBUS_MANAGER_PATH               "/org/maemo/resource/manager"
#define RESPROTO_DBUS_CLIENT_PATH                "/org/maemo/resource/client%d"

/* D-Bus interfaces */
#define RESPROTO_DBUS_ADMIN_INTERFACE            "org.freedesktop.DBus"
#define RESPROTO_DBUS_MANAGER_INTERFACE          "org.maemo.resource.manager"
#define RESPROTO_DBUS_CLIENT_INTERFACE           "org.maemo.resource.client"

/* D-Bus methods */
#define RESPROTO_DBUS_NAME_OWNER_CHANGED_SIGNAL  "NameOwnerChanged"
#define RESPROTO_DBUS_REGISTER_METHOD            "register"
#define RESPROTO_DBUS_UREGISTER_METHOD           "unregister"
#define RESPROTO_DBUS_UPDATE_METHOD              "update"
#define RESPROTO_DBUS_ACQUIRE_METHOD             "acquire"
#define RESPROTO_DBUS_RELEASE_METHOD             "release"
#define RESPROTO_DBUS_GRANT_METHOD               "grant"
#define RESPROTO_DBUS_ADVICE_METHOD              "advice"
#define RESPROTO_DBUS_AUDIO_METHOD               "audio"

int resproto_dbus_manager_init(resconn_dbus_t *, va_list);
int resproto_dbus_client_init(resconn_dbus_t *, va_list);


#endif /* __RES_DBUS_PROTO_H__ */

/* 
 * Local Variables:
 * c-basic-offset: 4
 * indent-tabs-mode: nil
 * End:
 * vim:set expandtab shiftwidth=4:
 */