Add missing header text
[ladish.git] / proxies / lash_client_proxy.c
blob40b5e1a3e0e3a4c02d867df257b23e159e114a8f
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2011 Nedko Arnaudov <nedko@arnaudov.name>
7 **************************************************************************
8 * This file contains helper functionality for accessing LASH clients through D-Bus
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 #include "lash_client_proxy.h"
29 bool lash_client_proxy_quit(const char * dest)
31 if (!cdbus_call(0, dest, "/", IFACE_LASH_CLIENT, "Quit", "", ""))
33 log_error(IFACE_LASH_CLIENT "::Quit() failed.");
34 return false;
37 return true;
40 bool lash_client_proxy_save(const char * dest, const char * app_dir)
42 if (!cdbus_call(0, dest, "/", IFACE_LASH_CLIENT, "Save", "s", &app_dir, ""))
44 log_error(IFACE_LASH_CLIENT "::Save() failed.");
45 return false;
48 return true;
51 bool lash_client_proxy_restore(const char * dest, const char * app_dir)
53 if (!cdbus_call(0, dest, "/", IFACE_LASH_CLIENT, "Restore", "s", &app_dir, ""))
55 log_error(IFACE_LASH_CLIENT "::Restore() failed.");
56 return false;
59 return true;