glib r7573 - trunk/gio



Author: walters
Date: Mon Oct  6 21:59:29 2008
New Revision: 7573
URL: http://svn.gnome.org/viewvc/glib?rev=7573&view=rev

Log:
2008-10-06  Colin Walters  <walters verbum org>

	Bug 554745 - GFileAttributeInfoList should be boxed

	* gio/gfileattribute.c: Define a boxed type for GFileAttributeList
	for convenience of bindings.
	* gio/gfileattribute.h: Prototype it.



Modified:
   trunk/gio/ChangeLog
   trunk/gio/gfileattribute.c
   trunk/gio/gfileattribute.h

Modified: trunk/gio/gfileattribute.c
==============================================================================
--- trunk/gio/gfileattribute.c	(original)
+++ trunk/gio/gfileattribute.c	Mon Oct  6 21:59:29 2008
@@ -326,6 +326,18 @@
   return attr;
 }
 
+GType
+g_file_attribute_info_list_get_type (void)
+{
+  static GType type_id = 0;
+
+  if (!type_id)
+    type_id = g_boxed_type_register_static (g_intern_static_string ("GFileAttributeInfoList"),
+					    (GBoxedCopyFunc) g_file_attribute_info_list_dup,
+					    (GBoxedFreeFunc) g_file_attribute_info_list_unref);
+  return type_id;
+}
+
 static gboolean
 valid_char (char c)
 {

Modified: trunk/gio/gfileattribute.h
==============================================================================
--- trunk/gio/gfileattribute.h	(original)
+++ trunk/gio/gfileattribute.h	Mon Oct  6 21:59:29 2008
@@ -60,6 +60,7 @@
   int                 n_infos;
 };
 
+GType                     g_file_attribute_info_list_get_type (void);
 GFileAttributeInfoList *  g_file_attribute_info_list_new    (void);
 GFileAttributeInfoList *  g_file_attribute_info_list_ref    (GFileAttributeInfoList *list);
 void                      g_file_attribute_info_list_unref  (GFileAttributeInfoList *list);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]