giinterfaceinfo.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
  2. * GObject introspection: Interface
  3. *
  4. * Copyright (C) 2005 Matthias Clasen
  5. * Copyright (C) 2008,2009 Red Hat, Inc.
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the
  19. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20. * Boston, MA 02111-1307, USA.
  21. */
  22. #ifndef __GIINTERFACEINFO_H__
  23. #define __GIINTERFACEINFO_H__
  24. #if !defined (__GIREPOSITORY_H_INSIDE__) && !defined (GI_COMPILATION)
  25. #error "Only <girepository.h> can be included directly."
  26. #endif
  27. #include <gitypes.h>
  28. G_BEGIN_DECLS
  29. /**
  30. * GI_IS_INTERFACE_INFO
  31. * @info: an info structure
  32. *
  33. * Checks if @info is a #GIInterfaceInfo.
  34. */
  35. #define GI_IS_INTERFACE_INFO(info) \
  36. (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_INTERFACE)
  37. GI_AVAILABLE_IN_ALL
  38. gint g_interface_info_get_n_prerequisites (GIInterfaceInfo *info);
  39. GI_AVAILABLE_IN_ALL
  40. GIBaseInfo * g_interface_info_get_prerequisite (GIInterfaceInfo *info,
  41. gint n);
  42. GI_AVAILABLE_IN_ALL
  43. gint g_interface_info_get_n_properties (GIInterfaceInfo *info);
  44. GI_AVAILABLE_IN_ALL
  45. GIPropertyInfo * g_interface_info_get_property (GIInterfaceInfo *info,
  46. gint n);
  47. GI_AVAILABLE_IN_ALL
  48. gint g_interface_info_get_n_methods (GIInterfaceInfo *info);
  49. GI_AVAILABLE_IN_ALL
  50. GIFunctionInfo * g_interface_info_get_method (GIInterfaceInfo *info,
  51. gint n);
  52. GI_AVAILABLE_IN_ALL
  53. GIFunctionInfo * g_interface_info_find_method (GIInterfaceInfo *info,
  54. const gchar *name);
  55. GI_AVAILABLE_IN_ALL
  56. gint g_interface_info_get_n_signals (GIInterfaceInfo *info);
  57. GI_AVAILABLE_IN_ALL
  58. GISignalInfo * g_interface_info_get_signal (GIInterfaceInfo *info,
  59. gint n);
  60. GI_AVAILABLE_IN_1_34
  61. GISignalInfo * g_interface_info_find_signal (GIInterfaceInfo *info,
  62. const gchar *name);
  63. GI_AVAILABLE_IN_ALL
  64. gint g_interface_info_get_n_vfuncs (GIInterfaceInfo *info);
  65. GI_AVAILABLE_IN_ALL
  66. GIVFuncInfo * g_interface_info_get_vfunc (GIInterfaceInfo *info,
  67. gint n);
  68. GI_AVAILABLE_IN_ALL
  69. GIVFuncInfo * g_interface_info_find_vfunc (GIInterfaceInfo *info,
  70. const gchar *name);
  71. GI_AVAILABLE_IN_ALL
  72. gint g_interface_info_get_n_constants (GIInterfaceInfo *info);
  73. GI_AVAILABLE_IN_ALL
  74. GIConstantInfo * g_interface_info_get_constant (GIInterfaceInfo *info,
  75. gint n);
  76. GI_AVAILABLE_IN_ALL
  77. GIStructInfo * g_interface_info_get_iface_struct (GIInterfaceInfo *info);
  78. G_END_DECLS
  79. #endif /* __GIINTERFACEINFO_H__ */