mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01:00
girepository: Fix int signedess in repository APIs
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
parent
15660b49b5
commit
f3a02314c9
@ -719,12 +719,12 @@ gi_repository_new (void)
|
|||||||
*
|
*
|
||||||
* Returns: number of metadata entries
|
* Returns: number of metadata entries
|
||||||
*/
|
*/
|
||||||
gint
|
guint
|
||||||
gi_repository_get_n_infos (GIRepository *repository,
|
gi_repository_get_n_infos (GIRepository *repository,
|
||||||
const gchar *namespace)
|
const gchar *namespace)
|
||||||
{
|
{
|
||||||
GITypelib *typelib;
|
GITypelib *typelib;
|
||||||
gint n_interfaces = 0;
|
guint n_interfaces = 0;
|
||||||
|
|
||||||
g_return_val_if_fail (namespace != NULL, -1);
|
g_return_val_if_fail (namespace != NULL, -1);
|
||||||
|
|
||||||
@ -744,7 +744,7 @@ gi_repository_get_n_infos (GIRepository *repository,
|
|||||||
* @repository: (allow-none): A #GIRepository or %NULL for the singleton
|
* @repository: (allow-none): A #GIRepository or %NULL for the singleton
|
||||||
* process-global default #GIRepository
|
* process-global default #GIRepository
|
||||||
* @namespace_: Namespace to inspect
|
* @namespace_: Namespace to inspect
|
||||||
* @index: 0-based offset into namespace metadata for entry
|
* @idx: 0-based offset into namespace metadata for entry
|
||||||
*
|
*
|
||||||
* This function returns a particular metadata entry in the
|
* This function returns a particular metadata entry in the
|
||||||
* given namespace @namespace_. The namespace must have
|
* given namespace @namespace_. The namespace must have
|
||||||
@ -757,7 +757,7 @@ gi_repository_get_n_infos (GIRepository *repository,
|
|||||||
GIBaseInfo *
|
GIBaseInfo *
|
||||||
gi_repository_get_info (GIRepository *repository,
|
gi_repository_get_info (GIRepository *repository,
|
||||||
const gchar *namespace,
|
const gchar *namespace,
|
||||||
gint index)
|
guint idx)
|
||||||
{
|
{
|
||||||
GITypelib *typelib;
|
GITypelib *typelib;
|
||||||
DirEntry *entry;
|
DirEntry *entry;
|
||||||
@ -770,7 +770,7 @@ gi_repository_get_info (GIRepository *repository,
|
|||||||
|
|
||||||
g_return_val_if_fail (typelib != NULL, NULL);
|
g_return_val_if_fail (typelib != NULL, NULL);
|
||||||
|
|
||||||
entry = gi_typelib_get_dir_entry (typelib, index + 1);
|
entry = gi_typelib_get_dir_entry (typelib, idx + 1);
|
||||||
if (entry == NULL)
|
if (entry == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
return gi_info_new_full (entry->blob_type,
|
return gi_info_new_full (entry->blob_type,
|
||||||
@ -1026,7 +1026,7 @@ gi_repository_find_by_error_domain (GIRepository *repository,
|
|||||||
void
|
void
|
||||||
gi_repository_get_object_gtype_interfaces (GIRepository *repository,
|
gi_repository_get_object_gtype_interfaces (GIRepository *repository,
|
||||||
GType gtype,
|
GType gtype,
|
||||||
guint *n_interfaces_out,
|
gsize *n_interfaces_out,
|
||||||
GIInterfaceInfo ***interfaces_out)
|
GIInterfaceInfo ***interfaces_out)
|
||||||
{
|
{
|
||||||
GTypeInterfaceCache *cache;
|
GTypeInterfaceCache *cache;
|
||||||
|
@ -168,17 +168,17 @@ GIBaseInfo * gi_repository_find_by_gtype (GIRepository *repository,
|
|||||||
GI_AVAILABLE_IN_ALL
|
GI_AVAILABLE_IN_ALL
|
||||||
void gi_repository_get_object_gtype_interfaces (GIRepository *repository,
|
void gi_repository_get_object_gtype_interfaces (GIRepository *repository,
|
||||||
GType gtype,
|
GType gtype,
|
||||||
guint *n_interfaces_out,
|
gsize *n_interfaces_out,
|
||||||
GIInterfaceInfo ***interfaces_out);
|
GIInterfaceInfo ***interfaces_out);
|
||||||
|
|
||||||
GI_AVAILABLE_IN_ALL
|
GI_AVAILABLE_IN_ALL
|
||||||
gint gi_repository_get_n_infos (GIRepository *repository,
|
guint gi_repository_get_n_infos (GIRepository *repository,
|
||||||
const gchar *namespace_);
|
const gchar *namespace_);
|
||||||
|
|
||||||
GI_AVAILABLE_IN_ALL
|
GI_AVAILABLE_IN_ALL
|
||||||
GIBaseInfo * gi_repository_get_info (GIRepository *repository,
|
GIBaseInfo * gi_repository_get_info (GIRepository *repository,
|
||||||
const gchar *namespace_,
|
const gchar *namespace_,
|
||||||
gint index);
|
guint idx);
|
||||||
|
|
||||||
GI_AVAILABLE_IN_ALL
|
GI_AVAILABLE_IN_ALL
|
||||||
GIEnumInfo * gi_repository_find_by_error_domain (GIRepository *repository,
|
GIEnumInfo * gi_repository_find_by_error_domain (GIRepository *repository,
|
||||||
|
Loading…
Reference in New Issue
Block a user