]> code.delx.au - pulseaudio/blob - src/pulsecore/dbus-common.h
dbus-protocol: Connection handling for local connections.
[pulseaudio] / src / pulsecore / dbus-common.h
1 #ifndef foodbuscommonhfoo
2 #define foodbuscommonhfoo
3
4 /***
5 This file is part of PulseAudio.
6
7 Copyright 2009 Tanu Kaskinen
8
9 PulseAudio is free software; you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published
11 by the Free Software Foundation; either version 2.1 of the License,
12 or (at your option) any later version.
13
14 PulseAudio is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with PulseAudio; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 USA.
23 ***/
24
25 #include <pulsecore/core.h>
26 #include <pulsecore/macro.h>
27
28 #define PA_DBUS_DEFAULT_PORT 24883
29 #define PA_DBUS_SOCKET_NAME "dbus_socket"
30
31 #define PA_DBUS_SYSTEM_SOCKET_PATH PA_SYSTEM_RUNTIME_PATH PA_PATH_SEP PA_DBUS_SOCKET_NAME
32
33 /* Returns the default address of the server type in the escaped form. For
34 * PA_SERVER_TYPE_NONE an empty string is returned. The caller frees the
35 * string. This function may fail in some rare cases, in which case NULL is
36 * returned. */
37 char *pa_get_dbus_address_from_server_type(pa_server_type_t server_type);
38
39 #endif