Fix more warnings
[lash.git] / dbus / error.h
blobfdbb2681697741d8bedfd843cf0642ee22b21536
1 /*
2 * LASH
4 * Copyright (C) 2008 Juuso Alasuutari <juuso.alasuutari@gmail.com>
5 * Copyright (C) 2008 Nedko Arnaudov
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __LASH_DBUS_ERROR_H__
23 #define __LASH_DBUS_ERROR_H__
25 #include "dbus/types.h"
27 #define LASH_DBUS_ERROR_UNKNOWN_METHOD "org.nongnu.LASH.Error.UnknownMethod"
28 #define LASH_DBUS_ERROR_SERVER_NOT_RUNNING "org.nongnu.LASH.Error.ServerNotRunning"
29 #define LASH_DBUS_ERROR_INVALID_ARGS "org.nongnu.LASH.Error.InvalidArgs"
30 #define LASH_DBUS_ERROR_GENERIC "org.nongnu.LASH.Error.Generic"
31 #define LASH_DBUS_ERROR_FATAL "org.nongnu.LASH.Error.Fatal"
32 #define LASH_DBUS_ERROR_UNKNOWN_PROJECT "org.nongnu.LASH.Error.UnknownProject"
33 #define LASH_DBUS_ERROR_UNKNOWN_CLIENT "org.nongnu.LASH.Error.UnknownClient"
34 #define LASH_DBUS_ERROR_INVALID_CLIENT_ID "org.nongnu.LASH.Error.InvalidClientId"
35 #define LASH_DBUS_ERROR_UNFINISHED_TASK "org.nongnu.LASH.Error.UnfinishedTask"
36 #define LASH_DBUS_ERROR_INVALID_TASK "org.nongnu.LASH.Error.InvalidTask"
38 void
39 lash_dbus_error(method_call_t *call_ptr,
40 const char *err_name,
41 const char *format,
42 ...);
44 #endif /* __LASH_DBUS_ERROR_H__ */