40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
|
/***************************************************************************
|
||
|
|
||
|
helper.h
|
||
|
|
||
|
gb.dbus component
|
||
|
|
||
|
(c) 2009 Benoît Minisini <gambas@users.sourceforge.net>
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify
|
||
|
it under the terms of the GNU General Public License as published by
|
||
|
the Free Software Foundation; either version 1, or (at your option)
|
||
|
any later version.
|
||
|
|
||
|
This program 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 General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License
|
||
|
along with this program; if not, write to the Free Software
|
||
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef __HELPER_H
|
||
|
#define __HELPER_H
|
||
|
|
||
|
#include "main.h"
|
||
|
|
||
|
bool DBUS_call_method(DBusConnection *connection, const char *application, const char *path, const char *interface, const char *method,
|
||
|
const char *signature_in, const char *signature_out, GB_ARRAY arguments);
|
||
|
|
||
|
char *DBUS_introspect(DBusConnection *connection, const char *dest, const char *path);
|
||
|
|
||
|
bool DBUS_validate_path(const char *path, int len);
|
||
|
bool DBUS_validate_interface (const char *interface, int len);
|
||
|
bool DBUS_validate_method(const char *method, int len);
|
||
|
|
||
|
#endif
|