[libpeas] Support gunichar in introspection
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Support gunichar in introspection
- Date: Wed, 23 Mar 2011 21:41:44 +0000 (UTC)
commit a9656f5939d6575931472cf223c54a21e0b8e842
Author: Garrett Regier <alias301 gmail com>
Date: Thu Mar 17 19:46:00 2011 -0700
Support gunichar in introspection
It was added in 0.10.0
libpeas/peas-introspection.c | 3 +++
loaders/seed/peas-extension-seed.c | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-introspection.c b/libpeas/peas-introspection.c
index 25c9849..a096d32 100644
--- a/libpeas/peas-introspection.c
+++ b/libpeas/peas-introspection.c
@@ -76,6 +76,7 @@ peas_gi_valist_to_arguments (GICallableInfo *callable_info,
case GI_TYPE_TAG_INT32:
cur_arg->v_int32 = va_arg (va_args, gint32);
break;
+ case GI_TYPE_TAG_UNICHAR:
case GI_TYPE_TAG_UINT32:
cur_arg->v_uint32 = va_arg (va_args, guint32);
break;
@@ -194,6 +195,7 @@ peas_gi_argument_to_pointer (GITypeInfo *type_info,
case GI_TYPE_TAG_INT32:
*((gint32 *) ptr) = arg->v_int32;
break;
+ case GI_TYPE_TAG_UNICHAR:
case GI_TYPE_TAG_UINT32:
*((guint32 *) ptr) = arg->v_uint32;
break;
@@ -258,6 +260,7 @@ peas_gi_pointer_to_argument (GITypeInfo *type_info,
case GI_TYPE_TAG_INT32:
arg->v_int32 = *((gint32 *) ptr);
break;
+ case GI_TYPE_TAG_UNICHAR:
case GI_TYPE_TAG_UINT32:
arg->v_uint32 = *((guint32 *) ptr);
break;
diff --git a/loaders/seed/peas-extension-seed.c b/loaders/seed/peas-extension-seed.c
index 2df517c..9d5f607 100644
--- a/loaders/seed/peas-extension-seed.c
+++ b/loaders/seed/peas-extension-seed.c
@@ -120,6 +120,7 @@ get_argument (SeedContext ctx,
return seed_value_from_uint (ctx, arg->v_uint16, exc);
case GI_TYPE_TAG_INT32:
return seed_value_from_long (ctx, arg->v_int32, exc);
+ case GI_TYPE_TAG_UNICHAR:
case GI_TYPE_TAG_UINT32:
return seed_value_from_ulong (ctx, arg->v_uint32, exc);
case GI_TYPE_TAG_INT64:
@@ -184,6 +185,7 @@ set_return_value (OutArg *arg,
case GI_TYPE_TAG_INT32:
arg->ptr->v_int32 = seed_value_to_long (ctx, value, exc);
break;
+ case GI_TYPE_TAG_UNICHAR:
case GI_TYPE_TAG_UINT32:
arg->ptr->v_uint32 = seed_value_to_ulong (ctx, value, exc);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]