Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/girepository/girepository.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-20 02:48:51 (GMT)
committer Colin Walters <walters@verbum.org>2009-03-03 22:26:37 (GMT)
commitd5215b23315e7c9c22c6a32218bb6f8027a9dd4c (patch)
treee8d9e360099c756677ad23a1039f4d05533008b9 /girepository/girepository.h
parent2bdd2bf9303ae0e718c00ec84078336e722138f1 (diff)
Bug 571548 - Generic attributes
We now support an extensible mechanism where arbitrary key-value pairs may be associated with almost all items, including objects, methods, and properties. These attributes appear in both the .gir and the .typelib.
Diffstat (limited to 'girepository/girepository.h')
-rw-r--r--girepository/girepository.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/girepository/girepository.h b/girepository/girepository.h
index 61a9116..4059adc 100644
--- a/girepository/girepository.h
+++ b/girepository/girepository.h
@@ -1,6 +1,7 @@
/* GObject introspection: Repository
*
* Copyright (C) 2005 Matthias Clasen
+ * Copyright (C) 2008,2009 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -179,14 +180,25 @@ typedef enum
/* GIBaseInfo */
+typedef struct {
+ gpointer data;
+ gpointer data2;
+ gpointer data3;
+ gpointer data4;
+} GIAttributeIter;
+
GIBaseInfo * g_base_info_ref (GIBaseInfo *info);
void g_base_info_unref (GIBaseInfo *info);
GIInfoType g_base_info_get_type (GIBaseInfo *info);
const gchar * g_base_info_get_name (GIBaseInfo *info);
const gchar * g_base_info_get_namespace (GIBaseInfo *info);
gboolean g_base_info_is_deprecated (GIBaseInfo *info);
-const gchar * g_base_info_get_annotation (GIBaseInfo *info,
+const gchar * g_base_info_get_attribute (GIBaseInfo *info,
const gchar *name);
+gboolean g_base_info_iterate_attributes (GIBaseInfo *info,
+ GIAttributeIter *iterator,
+ char **name,
+ char **value);
GIBaseInfo * g_base_info_get_container (GIBaseInfo *info);
GTypelib * g_base_info_get_typelib (GIBaseInfo *info);