dbus-bus.inc 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. { -*- mode: C; c-file-style: "gnu" -*- }
  2. { dbus-bus.h Convenience functions for communicating with the bus.
  3. *
  4. * Copyright (C) 2003 CodeFactory AB
  5. *
  6. * Licensed under the Academic Free License version 2.1
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. }
  23. //#include <dbus/dbus-connection.h>
  24. function dbus_bus_get(type_: DBusBusType; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
  25. function dbus_bus_get_private(type_: DBusBusType; error: PDBusError): PDBusConnection; cdecl; external LibDBus;
  26. function dbus_bus_register(connection: PDBusConnection; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  27. function dbus_bus_set_unique_name(connection: PDBusConnection;
  28. const unique_name: PChar): dbus_bool_t; cdecl; external LibDBus;
  29. function dbus_bus_get_unique_name(connection: PDBusConnection): PChar; cdecl; external LibDBus;
  30. function dbus_bus_get_unix_user(connection: PDBusConnection;
  31. const name: PChar; error: PDBusError): culong; cdecl; external LibDBus;
  32. function dbus_bus_request_name(connection: PDBusConnection;
  33. const name: PChar; flags: cuint; error: PDBusError): cint; cdecl; external LibDBus;
  34. function dbus_bus_release_name(connection: PDBusConnection;
  35. const name: PChar; error: PDBusError): cint; cdecl; external LibDBus;
  36. function dbus_bus_name_has_owner(connection: PDBusConnection;
  37. const name: PChar; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  38. function dbus_bus_start_service_by_name (connection: PDBusConnection;
  39. const name: PChar; flags: dbus_uint32_t; reply: Pdbus_uint32_t;
  40. error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  41. procedure dbus_bus_add_match(connection: PDBusConnection;
  42. const rule: PChar; error: PDBusError); cdecl; external LibDBus;
  43. procedure dbus_bus_remove_match(connection: PDBusConnection;
  44. const rule: PChar; error: PDBusError); cdecl; external LibDBus;
  45. procedure _dbus_bus_check_connection_and_unref (connection: PDBusConnection); cdecl; external LibDBus;