dbus-signature.inc 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. { -*- mode: C; c-file-style: "gnu" -*- }
  2. { dbus-signatures.h utility functions for D-Bus types
  3. *
  4. * Copyright (C) 2005 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-errors.h>}
  26. {
  27. * DBusSignatureIter struct; contains no public fields
  28. }
  29. type
  30. DBusSignatureIter = record
  31. dummy1: Pointer; {< Don't use this }
  32. dummy2: Pointer; {< Don't use this }
  33. dummy8: dbus_uint32_t; {< Don't use this }
  34. dummy12: cint; {< Don't use this }
  35. dummy17: cint; {< Don't use this }
  36. end;
  37. PDBusSignatureIter = ^DBusSignatureIter;
  38. procedure dbus_signature_iter_init(iter: PDBusSignatureIter; const signature: PChar); cdecl; external LibDBus;
  39. function dbus_signature_iter_get_current_type(const iter: PDBusSignatureIter): Integer; cdecl; external LibDBus;
  40. function dbus_signature_iter_get_signature(const iter: PDBusSignatureIter): PChar; cdecl; external LibDBus;
  41. function dbus_signature_iter_get_element_type(const iter: PDBusSignatureIter): Integer; cdecl; external LibDBus;
  42. function dbus_signature_iter_next(const iter: PDBusSignatureIter): dbus_bool_t; cdecl; external LibDBus;
  43. procedure dbus_signature_iter_recurse(const iter: PDBusSignatureIter; subiter: PDBusSignatureIter); cdecl; external LibDBus;
  44. function dbus_signature_validate(const signature: PChar; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  45. function dbus_signature_validate_single(const signature: PChar; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  46. function dbus_type_is_basic(typecode: cint): dbus_bool_t; cdecl; external LibDBus;
  47. function dbus_type_is_container(typecode: cint): dbus_bool_t; cdecl; external LibDBus;
  48. function dbus_type_is_fixed(typecode: cint): dbus_bool_t; cdecl; external LibDBus;