LCOV - code coverage report
Current view: top level - _build - gkm-marshal.c (source / functions) Coverage Total Hit
Test: coverage.info Lines: 83.3 % 36 30
Test Date: 2024-05-07 18:02:03 Functions: 100.0 % 3 3

            Line data    Source code
       1              : #include "gkm-marshal.h"
       2              : /* This file is generated by glib-genmarshal, do not modify it. This code is licensed under the same license as the containing project. Note that it links to GLib, so must comply with the LGPL linking clauses. */
       3              : #include <glib-object.h>
       4              : 
       5              : #ifdef G_ENABLE_DEBUG
       6              : #define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
       7              : #define g_marshal_value_peek_char(v)     g_value_get_schar (v)
       8              : #define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
       9              : #define g_marshal_value_peek_int(v)      g_value_get_int (v)
      10              : #define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
      11              : #define g_marshal_value_peek_long(v)     g_value_get_long (v)
      12              : #define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
      13              : #define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
      14              : #define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
      15              : #define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
      16              : #define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
      17              : #define g_marshal_value_peek_float(v)    g_value_get_float (v)
      18              : #define g_marshal_value_peek_double(v)   g_value_get_double (v)
      19              : #define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
      20              : #define g_marshal_value_peek_param(v)    g_value_get_param (v)
      21              : #define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
      22              : #define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
      23              : #define g_marshal_value_peek_object(v)   g_value_get_object (v)
      24              : #define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
      25              : #else /* !G_ENABLE_DEBUG */
      26              : /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
      27              :  *          Do not access GValues directly in your code. Instead, use the
      28              :  *          g_value_get_*() functions
      29              :  */
      30              : #define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
      31              : #define g_marshal_value_peek_char(v)     (v)->data[0].v_int
      32              : #define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
      33              : #define g_marshal_value_peek_int(v)      (v)->data[0].v_int
      34              : #define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
      35              : #define g_marshal_value_peek_long(v)     (v)->data[0].v_long
      36              : #define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
      37              : #define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
      38              : #define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
      39              : #define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
      40              : #define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
      41              : #define g_marshal_value_peek_float(v)    (v)->data[0].v_float
      42              : #define g_marshal_value_peek_double(v)   (v)->data[0].v_double
      43              : #define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
      44              : #define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
      45              : #define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
      46              : #define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
      47              : #define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
      48              : #define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
      49              : #endif /* !G_ENABLE_DEBUG */
      50              : 
      51              : /* BOOLEAN:VOID (../pkcs11/gkm/gkm-marshal.list:1) */
      52              : void
      53          318 : gkm_marshal_BOOLEAN__VOID (GClosure     *closure,
      54              :                            GValue       *return_value,
      55              :                            guint         n_param_values,
      56              :                            const GValue *param_values,
      57              :                            gpointer      invocation_hint G_GNUC_UNUSED,
      58              :                            gpointer      marshal_data)
      59              : {
      60              :   typedef gboolean (*GMarshalFunc_BOOLEAN__VOID) (gpointer data1,
      61              :                                                   gpointer data2);
      62          318 :   GCClosure *cc = (GCClosure *) closure;
      63              :   gpointer data1, data2;
      64              :   GMarshalFunc_BOOLEAN__VOID callback;
      65              :   gboolean v_return;
      66              : 
      67          318 :   g_return_if_fail (return_value != NULL);
      68          318 :   g_return_if_fail (n_param_values == 1);
      69              : 
      70          318 :   if (G_CCLOSURE_SWAP_DATA (closure))
      71              :     {
      72            0 :       data1 = closure->data;
      73            0 :       data2 = g_value_peek_pointer (param_values + 0);
      74              :     }
      75              :   else
      76              :     {
      77          318 :       data1 = g_value_peek_pointer (param_values + 0);
      78          318 :       data2 = closure->data;
      79              :     }
      80          318 :   callback = (GMarshalFunc_BOOLEAN__VOID) (marshal_data ? marshal_data : cc->callback);
      81              : 
      82          318 :   v_return = callback (data1,
      83              :                        data2);
      84              : 
      85          318 :   g_value_set_boolean (return_value, v_return);
      86              : }
      87              : 
      88              : /* VOID:STRING,ULONG (../pkcs11/gkm/gkm-marshal.list:2) */
      89              : void
      90           11 : gkm_marshal_VOID__STRING_ULONG (GClosure     *closure,
      91              :                                 GValue       *return_value G_GNUC_UNUSED,
      92              :                                 guint         n_param_values,
      93              :                                 const GValue *param_values,
      94              :                                 gpointer      invocation_hint G_GNUC_UNUSED,
      95              :                                 gpointer      marshal_data)
      96              : {
      97              :   typedef void (*GMarshalFunc_VOID__STRING_ULONG) (gpointer data1,
      98              :                                                    gpointer arg1,
      99              :                                                    gulong arg2,
     100              :                                                    gpointer data2);
     101           11 :   GCClosure *cc = (GCClosure *) closure;
     102              :   gpointer data1, data2;
     103              :   GMarshalFunc_VOID__STRING_ULONG callback;
     104              : 
     105           11 :   g_return_if_fail (n_param_values == 3);
     106              : 
     107           11 :   if (G_CCLOSURE_SWAP_DATA (closure))
     108              :     {
     109            0 :       data1 = closure->data;
     110            0 :       data2 = g_value_peek_pointer (param_values + 0);
     111              :     }
     112              :   else
     113              :     {
     114           11 :       data1 = g_value_peek_pointer (param_values + 0);
     115           11 :       data2 = closure->data;
     116              :     }
     117           11 :   callback = (GMarshalFunc_VOID__STRING_ULONG) (marshal_data ? marshal_data : cc->callback);
     118              : 
     119           11 :   callback (data1,
     120           11 :             g_marshal_value_peek_string (param_values + 1),
     121           11 :             g_marshal_value_peek_ulong (param_values + 2),
     122              :             data2);
     123              : }
     124              : 
     125              : /* VOID:OBJECT,ULONG (../pkcs11/gkm/gkm-marshal.list:3) */
     126              : void
     127            4 : gkm_marshal_VOID__OBJECT_ULONG (GClosure     *closure,
     128              :                                 GValue       *return_value G_GNUC_UNUSED,
     129              :                                 guint         n_param_values,
     130              :                                 const GValue *param_values,
     131              :                                 gpointer      invocation_hint G_GNUC_UNUSED,
     132              :                                 gpointer      marshal_data)
     133              : {
     134              :   typedef void (*GMarshalFunc_VOID__OBJECT_ULONG) (gpointer data1,
     135              :                                                    gpointer arg1,
     136              :                                                    gulong arg2,
     137              :                                                    gpointer data2);
     138            4 :   GCClosure *cc = (GCClosure *) closure;
     139              :   gpointer data1, data2;
     140              :   GMarshalFunc_VOID__OBJECT_ULONG callback;
     141              : 
     142            4 :   g_return_if_fail (n_param_values == 3);
     143              : 
     144            4 :   if (G_CCLOSURE_SWAP_DATA (closure))
     145              :     {
     146            0 :       data1 = closure->data;
     147            0 :       data2 = g_value_peek_pointer (param_values + 0);
     148              :     }
     149              :   else
     150              :     {
     151            4 :       data1 = g_value_peek_pointer (param_values + 0);
     152            4 :       data2 = closure->data;
     153              :     }
     154            4 :   callback = (GMarshalFunc_VOID__OBJECT_ULONG) (marshal_data ? marshal_data : cc->callback);
     155              : 
     156            4 :   callback (data1,
     157            4 :             g_marshal_value_peek_object (param_values + 1),
     158            4 :             g_marshal_value_peek_ulong (param_values + 2),
     159              :             data2);
     160              : }
     161              : 
        

Generated by: LCOV version 2.0-1