dbus-glib-lowlevel.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* -*- mode: C; c-file-style: "gnu" -*- */
  2. /* dbus-glib-lowlevel.h GLib integration details that require dbus/dbus.h
  3. *
  4. * Copyright (C) 2002, 2003 CodeFactory AB
  5. * Copyright (C) 2003, 2004 Red Hat, Inc.
  6. *
  7. * Licensed under the Academic Free License version 2.1
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. */
  24. #ifndef DBUS_GLIB_LOWLEVEL_H
  25. #define DBUS_GLIB_LOWLEVEL_H
  26. #include <dbus/dbus-glib.h>
  27. #include <dbus/dbus.h>
  28. G_BEGIN_DECLS
  29. void dbus_set_g_error (GError **gerror,
  30. DBusError *derror);
  31. #define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())
  32. #define DBUS_TYPE_MESSAGE (dbus_message_get_g_type ())
  33. GType dbus_connection_get_g_type (void) G_GNUC_CONST;
  34. GType dbus_message_get_g_type (void) G_GNUC_CONST;
  35. void dbus_connection_setup_with_g_main (DBusConnection *connection,
  36. GMainContext *context);
  37. void dbus_server_setup_with_g_main (DBusServer *server,
  38. GMainContext *context);
  39. void dbus_g_proxy_send (DBusGProxy *proxy,
  40. DBusMessage *message,
  41. dbus_uint32_t *client_serial);
  42. DBusConnection* dbus_g_connection_get_connection (DBusGConnection *gconnection);
  43. DBusGConnection* dbus_connection_get_g_connection (DBusConnection *connection);
  44. DBusMessage* dbus_g_message_get_message (DBusGMessage *gmessage);
  45. gchar* dbus_g_method_get_sender (DBusGMethodInvocation *context);
  46. DBusMessage* dbus_g_method_get_reply (DBusGMethodInvocation *context);
  47. void dbus_g_method_send_reply (DBusGMethodInvocation *context,
  48. DBusMessage *reply);
  49. G_END_DECLS
  50. #endif /* DBUS_GLIB_LOWLEVEL_H */