dbus-pending-call.inc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. { -*- mode: C; c-file-style: "gnu" -*- }
  2. { dbus-pending-call.h Object representing a call in progress.
  3. *
  4. * Copyright (C) 2002, 2003 Red Hat Inc.
  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-macros.h>
  24. #include <dbus/dbus-types.h>
  25. #include <dbus/dbus-connection.h>}
  26. function dbus_pending_call_ref(pending: PDBusPendingCall): PDBusPendingCall; cdecl; external LibDBus;
  27. procedure dbus_pending_call_unref(pending: PDBusPendingCall); cdecl; external LibDBus;
  28. function dbus_pending_call_set_notify(pending: PDBusPendingCall;
  29. function_: DBusPendingCallNotifyFunction;
  30. user_data: Pointer; free_user_data: DBusFreeFunction): dbus_bool_t; cdecl; external LibDBus;
  31. procedure dbus_pending_call_cancel(pending: PDBusPendingCall); cdecl; external LibDBus;
  32. function dbus_pending_call_get_completed(pending: PDBusPendingCall): dbus_bool_t; cdecl; external LibDBus;
  33. function dbus_pending_call_steal_reply(pending: PDBusPendingCall): PDBusMessage; cdecl; external LibDBus;
  34. procedure dbus_pending_call_block(pending: PDBusPendingCall); cdecl; external LibDBus;
  35. function dbus_pending_call_allocate_data_slot(slot_p: Pdbus_int32_t): dbus_bool_t; cdecl; external LibDBus;
  36. procedure dbus_pending_call_free_data_slot(slot_p: Pdbus_int32_t); cdecl; external LibDBus;
  37. function dbus_pending_call_set_data(pending: PDBusPendingCall;
  38. slot: dbus_int32_t; data: Pointer; free_data_func: DBusFreeFunction): dbus_bool_t; cdecl; external LibDBus;
  39. function dbus_pending_call_get_data(pending: PDBusPendingCall; slot: dbus_int32_t): Pointer; cdecl; external LibDBus;