Compiling the girepository.h header with C++



When I built a mixed C/C++ program, I had a couple of problems with the 
argument names used in functions in the girepository.h header. There were args 
called 'namespace' and 'type-info' and I changed them to 'gnamespace' and 
'gtype-info' respectively. Please find a patch attached.

regards
-- Richard Dale
Index: girepository.h
===================================================================
--- girepository.h	(revision 1093)
+++ girepository.h	(working copy)
@@ -83,32 +83,32 @@
 					   GIRepositoryLoadFlags flags,
 					   GError      **error);
 gboolean      g_irepository_is_registered (GIRepository *repository,
-					   const gchar  *namespace,
+					   const gchar  *gnamespace,
 					   const gchar  *version);
 GIBaseInfo *  g_irepository_find_by_name  (GIRepository *repository,
-					   const gchar  *namespace,
+					   const gchar  *gnamespace,
 					   const gchar  *name);
 GTypelib *    g_irepository_require       (GIRepository *repository,
-					   const gchar  *namespace,
+					   const gchar  *gnamespace,
 					   const gchar  *version,
 					   GIRepositoryLoadFlags flags,
 					   GError      **error);
 gchar      ** g_irepository_get_dependencies (GIRepository *repository,
-					      const gchar  *namespace);
+					      const gchar  *gnamespace);
 gchar      ** g_irepository_get_loaded_namespaces (GIRepository *repository);
 GIBaseInfo *  g_irepository_find_by_gtype (GIRepository *repository,
 					   GType         gtype);
 gint          g_irepository_get_n_infos   (GIRepository *repository,
-					   const gchar  *namespace);
+					   const gchar  *gnamespace);
 GIBaseInfo *  g_irepository_get_info      (GIRepository *repository,
-					   const gchar  *namespace,
+					   const gchar  *gnamespace,
 					   gint          index);
 const gchar * g_irepository_get_typelib_path   (GIRepository *repository,
-						const gchar  *namespace);
+						const gchar  *gnamespace);
 const gchar * g_irepository_get_shared_library (GIRepository *repository,
-						const gchar  *namespace);
+						const gchar  *gnamespace);
 const gchar * g_irepository_get_version (GIRepository *repository,
-					 const gchar  *namespace);
+					 const gchar  *gnamespace);
 
 GOptionGroup * g_irepository_get_option_group (void);
 


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