dbus-signature.inc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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., 51 Franklin Street, Fifth Floor, Boston,
  21. * MA 02110-1301, USA.
  22. *
  23. }
  24. {#include <dbus/dbus-macros.h>
  25. #include <dbus/dbus-types.h>
  26. #include <dbus/dbus-errors.h>}
  27. {
  28. * DBusSignatureIter struct; contains no public fields
  29. }
  30. type
  31. DBusSignatureIter = record
  32. dummy1: Pointer; {< Don't use this }
  33. dummy2: Pointer; {< Don't use this }
  34. dummy8: dbus_uint32_t; {< Don't use this }
  35. dummy12: cint; {< Don't use this }
  36. dummy17: cint; {< Don't use this }
  37. end;
  38. PDBusSignatureIter = ^DBusSignatureIter;
  39. procedure dbus_signature_iter_init(iter: PDBusSignatureIter; const signature: PAnsiChar); cdecl; external LibDBus;
  40. function dbus_signature_iter_get_current_type(const iter: PDBusSignatureIter): Integer; cdecl; external LibDBus;
  41. function dbus_signature_iter_get_signature(const iter: PDBusSignatureIter): PAnsiChar; cdecl; external LibDBus;
  42. function dbus_signature_iter_get_element_type(const iter: PDBusSignatureIter): Integer; cdecl; external LibDBus;
  43. function dbus_signature_iter_next(const iter: PDBusSignatureIter): dbus_bool_t; cdecl; external LibDBus;
  44. procedure dbus_signature_iter_recurse(const iter: PDBusSignatureIter; subiter: PDBusSignatureIter); cdecl; external LibDBus;
  45. function dbus_signature_validate(const signature: PAnsiChar; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  46. function dbus_signature_validate_single(const signature: PAnsiChar; error: PDBusError): dbus_bool_t; cdecl; external LibDBus;
  47. function dbus_type_is_basic(typecode: cint): dbus_bool_t; cdecl; external LibDBus;
  48. function dbus_type_is_container(typecode: cint): dbus_bool_t; cdecl; external LibDBus;
  49. function dbus_type_is_fixed(typecode: cint): dbus_bool_t; cdecl; external LibDBus;