[libpeas] Support VOID introspection type



commit 7ca3efdf8ceb737e013755595290394a6520b29f
Author: Garrett Regier <alias301 gmail com>
Date:   Fri Mar 18 07:28:26 2011 -0700

    Support VOID introspection type
    
    VOID is for void *

 libpeas/peas-introspection.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libpeas/peas-introspection.c b/libpeas/peas-introspection.c
index a096d32..119ae0c 100644
--- a/libpeas/peas-introspection.c
+++ b/libpeas/peas-introspection.c
@@ -58,6 +58,8 @@ peas_gi_valist_to_arguments (GICallableInfo *callable_info,
             switch (g_type_info_get_tag (&arg_type_info))
               {
               case GI_TYPE_TAG_VOID:
+                cur_arg->v_pointer = va_arg (va_args, gpointer);
+                break;
               case GI_TYPE_TAG_BOOLEAN:
                 cur_arg->v_boolean = va_arg (va_args, gboolean);
                 break;
@@ -177,6 +179,8 @@ peas_gi_argument_to_pointer (GITypeInfo     *type_info,
   switch (g_type_info_get_tag (type_info))
     {
     case GI_TYPE_TAG_VOID:
+      *((gpointer **) ptr) = arg->v_pointer;
+      break;
     case GI_TYPE_TAG_BOOLEAN:
       *((gboolean *) ptr) = arg->v_boolean;
       break;
@@ -242,6 +246,8 @@ peas_gi_pointer_to_argument (GITypeInfo     *type_info,
   switch (g_type_info_get_tag (type_info))
     {
     case GI_TYPE_TAG_VOID:
+      arg->v_pointer = *((gpointer **) ptr);
+      break;
     case GI_TYPE_TAG_BOOLEAN:
       arg->v_boolean = *((gboolean *) ptr);
       break;



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