~ubuntu-branches/ubuntu/precise/rhythmbox/precise-201203091205

« back to all changes in this revision

Viewing changes to lib/rb-marshal.c

Tags: upstream-0.9.2cvs20060102
ImportĀ upstreamĀ versionĀ 0.9.2cvs20060102

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
            data2);
505
505
}
506
506
 
 
507
/* VOID:BOOLEAN,BOOLEAN (./rb-marshal.list:12) */
 
508
extern void rb_marshal_VOID__BOOLEAN_BOOLEAN (GClosure     *closure,
 
509
                                              GValue       *return_value,
 
510
                                              guint         n_param_values,
 
511
                                              const GValue *param_values,
 
512
                                              gpointer      invocation_hint,
 
513
                                              gpointer      marshal_data);
 
514
void
 
515
rb_marshal_VOID__BOOLEAN_BOOLEAN (GClosure     *closure,
 
516
                                  GValue       *return_value,
 
517
                                  guint         n_param_values,
 
518
                                  const GValue *param_values,
 
519
                                  gpointer      invocation_hint,
 
520
                                  gpointer      marshal_data)
 
521
{
 
522
  typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer     data1,
 
523
                                                      gboolean     arg_1,
 
524
                                                      gboolean     arg_2,
 
525
                                                      gpointer     data2);
 
526
  register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback;
 
527
  register GCClosure *cc = (GCClosure*) closure;
 
528
  register gpointer data1, data2;
 
529
 
 
530
  g_return_if_fail (n_param_values == 3);
 
531
 
 
532
  if (G_CCLOSURE_SWAP_DATA (closure))
 
533
    {
 
534
      data1 = closure->data;
 
535
      data2 = g_value_peek_pointer (param_values + 0);
 
536
    }
 
537
  else
 
538
    {
 
539
      data1 = g_value_peek_pointer (param_values + 0);
 
540
      data2 = closure->data;
 
541
    }
 
542
  callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
 
543
 
 
544
  callback (data1,
 
545
            g_marshal_value_peek_boolean (param_values + 1),
 
546
            g_marshal_value_peek_boolean (param_values + 2),
 
547
            data2);
 
548
}
 
549
 
507
550
G_END_DECLS
508
551
 
509
552
#endif /* __rb_marshal_MARSHAL_H__ */