Fix unused-parameter warnings in plain C code
[ladish.git] / dbus_constants.h
blob2d205b281ae4c89fabb21ac13dcdca5ac655e4b3
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2009, 2010, 2011 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains constants for D-Bus service and interface names and for D-Bus object paths
9 **************************************************************************
11 * LADI Session Handler is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * LADI Session Handler is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
23 * or write to the Free Software Foundation, Inc.,
24 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27 #ifndef DBUS_CONSTANTS_H__C21DE0EE_C19C_42F0_8D63_D613E4806C0E__INCLUDED
28 #define DBUS_CONSTANTS_H__C21DE0EE_C19C_42F0_8D63_D613E4806C0E__INCLUDED
30 #define JACKDBUS_SERVICE_NAME "org.jackaudio.service"
31 #define JACKDBUS_OBJECT_PATH "/org/jackaudio/Controller"
32 #define JACKDBUS_IFACE_CONTROL "org.jackaudio.JackControl"
33 #define JACKDBUS_IFACE_CONFIGURE "org.jackaudio.Configure"
34 #define JACKDBUS_IFACE_PATCHBAY "org.jackaudio.JackPatchbay"
35 #define JACKDBUS_IFACE_SESSMGR "org.jackaudio.SessionManager"
37 #define SERVICE_NAME DBUS_NAME_BASE
38 #define CONTROL_OBJECT_PATH DBUS_BASE_PATH "/Control"
39 #define IFACE_CONTROL DBUS_NAME_BASE ".Control"
40 #define STUDIO_OBJECT_PATH DBUS_BASE_PATH "/Studio"
41 #define IFACE_STUDIO DBUS_NAME_BASE ".Studio"
42 #define IFACE_ROOM DBUS_NAME_BASE ".Room"
43 #define IFACE_APP_SUPERVISOR DBUS_NAME_BASE ".AppSupervisor"
44 #define APPLICATION_OBJECT_PATH DBUS_BASE_PATH "/Application"
45 #define IFACE_APPLICATION DBUS_NAME_BASE ".App"
46 #define IFACE_GRAPH_DICT DBUS_NAME_BASE ".GraphDict"
47 #define IFACE_GRAPH_MANAGER DBUS_NAME_BASE ".GraphManager"
48 #define IFACE_RECENT_ITEMS DBUS_NAME_BASE ".RecentItems"
49 #define LASH_SERVER_OBJECT_PATH DBUS_BASE_PATH "/LashServer"
50 #define IFACE_LASH_SERVER DBUS_NAME_BASE ".LashServer"
51 #define IFACE_LASH_CLIENT DBUS_NAME_BASE ".LashClient"
53 #define JMCORE_SERVICE_NAME DBUS_NAME_BASE ".jmcore"
54 #define JMCORE_IFACE JMCORE_SERVICE_NAME
55 #define JMCORE_OBJECT_PATH DBUS_BASE_PATH "/jmcore"
57 #define CONF_SERVICE_NAME DBUS_NAME_BASE ".conf"
58 #define CONF_IFACE CONF_SERVICE_NAME
59 #define CONF_OBJECT_PATH DBUS_BASE_PATH "/conf"
61 #define JACKDBUS_PORT_FLAG_INPUT 0x00000001
62 #define JACKDBUS_PORT_FLAG_OUTPUT 0x00000002
63 #define JACKDBUS_PORT_FLAG_PHYSICAL 0x00000004
64 #define JACKDBUS_PORT_FLAG_CAN_MONITOR 0x00000008
65 #define JACKDBUS_PORT_FLAG_TERMINAL 0x00000010
67 #define JACKDBUS_PORT_TYPE_AUDIO 0
68 #define JACKDBUS_PORT_TYPE_MIDI 1
70 #define JACKDBUS_SESSION_NOTIFY_TYPE_SAVE 1 /* JackSessionSave */
72 #define GRAPH_DICT_OBJECT_TYPE_GRAPH 0
73 #define GRAPH_DICT_OBJECT_TYPE_CLIENT 1
74 #define GRAPH_DICT_OBJECT_TYPE_PORT 2
75 #define GRAPH_DICT_OBJECT_TYPE_CONNECTION 3
77 #define URI_CANVAS_WIDTH "http://ladish.org/ns/canvas/width"
78 #define URI_CANVAS_HEIGHT "http://ladish.org/ns/canvas/height"
79 #define URI_CANVAS_X "http://ladish.org/ns/canvas/x"
80 #define URI_CANVAS_Y "http://ladish.org/ns/canvas/y"
81 #define URI_A2J_PORT "http://ladish.org/ns/a2j"
83 #define JACKDBUS_PORT_IS_INPUT(flags) (((flags) & JACKDBUS_PORT_FLAG_INPUT) != 0)
84 #define JACKDBUS_PORT_IS_OUTPUT(flags) (((flags) & JACKDBUS_PORT_FLAG_OUTPUT) != 0)
86 #define JACKDBUS_PORT_SET_INPUT(flags) (flags) |= JACKDBUS_PORT_FLAG_INPUT
87 #define JACKDBUS_PORT_SET_OUTPUT(flags) (flags) |= JACKDBUS_PORT_FLAG_OUTPUT
89 #define JACKDBUS_PORT_CLEAR_INPUT(flags) (flags) &= ~JACKDBUS_PORT_FLAG_INPUT
90 #define JACKDBUS_PORT_CLEAR_OUTPUT(flags) (flags) &= ~JACKDBUS_PORT_FLAG_OUTPUT
92 #define LADISH_DBUS_ERROR_INVALID_ARGS DBUS_NAME_BASE ".Error.InvalidArgs"
93 #define LADISH_DBUS_ERROR_GENERIC DBUS_NAME_BASE ".Error.Generic"
94 #define LADISH_DBUS_ERROR_UNFINISHED_TASK DBUS_NAME_BASE ".Error.UnfinishedTask"
95 #define LADISH_DBUS_ERROR_KEY_NOT_FOUND DBUS_NAME_BASE ".Error.KeyNotFound"
97 #define LADISH_CONF_KEY_JACK_CONF_TOOL "/org/ladish/jack_conf_tool"
98 #define LADISH_CONF_KEY_JACK_CONF_TOOL_DEFAULT "ladiconf"
100 #endif /* #ifndef DBUS_CONSTANTS_H__C21DE0EE_C19C_42F0_8D63_D613E4806C0E__INCLUDED */