2009-08-03 00:43:26 +02:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
helper.h
|
|
|
|
|
2011-03-21 01:04:10 +01:00
|
|
|
(c) 2000-2011 Benoît Minisini <gambas@users.sourceforge.net>
|
2009-08-03 00:43:26 +02:00
|
|
|
|
|
|
|
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
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2009-08-03 00:43:26 +02:00
|
|
|
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
|
2009-08-17 12:41:51 +02:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2009-08-03 00:43:26 +02:00
|
|
|
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"
|
|
|
|
|
2011-02-27 02:06:36 +01:00
|
|
|
#ifndef __HELPER_C
|
|
|
|
extern bool DBUS_Debug;
|
|
|
|
#endif
|
|
|
|
|
2009-08-03 00:43:26 +02:00
|
|
|
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);
|
|
|
|
|
2010-07-16 03:17:49 +02:00
|
|
|
bool DBUS_register(DBusConnection *connection, const char *name, bool unique);
|
|
|
|
|
2009-08-03 00:43:26 +02:00
|
|
|
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);
|
|
|
|
|
2010-07-19 14:33:57 +02:00
|
|
|
bool DBUS_retrieve_message_arguments(DBusMessage *message);
|
|
|
|
bool DBUS_reply(DBusConnection *connection, DBusMessage *message, const char *signature, GB_ARRAY arguments);
|
|
|
|
|
|
|
|
const char *DBUS_to_dbus_type(GB_TYPE type);
|
2010-07-16 03:17:49 +02:00
|
|
|
|
2009-08-03 00:43:26 +02:00
|
|
|
#endif
|