~ubuntu-branches/ubuntu/vivid/clutter-1.0/vivid-proposed

« back to all changes in this revision

Viewing changes to clutter/clutter-marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2010-07-18 17:21:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20100718172149-j6s9u4chocaoykme
Tags: 1.2.12-1
* New upstream release.
* debian/libclutter-1.0-0.symbols,
  debian/rules:
  - Add a symbols file.
* debian/rules,
  debian/source/format:
  - Switch to source format 3.0 (quilt).
* debian/control.in:
  - Standards-Version is 3.9.0, no changes needed.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
23
23
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
24
24
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
 
25
#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
25
26
#else /* !G_ENABLE_DEBUG */
26
27
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
27
28
 *          Do not access GValues directly in your code. Instead, use the
45
46
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
46
47
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
47
48
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
 
49
#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
48
50
#endif /* !G_ENABLE_DEBUG */
49
51
 
50
52
 
479
481
            data2);
480
482
}
481
483
 
482
 
/* VOID:STRING,BOOLEAN,BOOLEAN (./clutter-marshal.list:15) */
 
484
/* VOID:POINTER (./clutter-marshal.list:15) */
 
485
 
 
486
/* VOID:STRING,BOOLEAN,BOOLEAN (./clutter-marshal.list:16) */
483
487
void
484
488
clutter_marshal_VOID__STRING_BOOLEAN_BOOLEAN (GClosure     *closure,
485
489
                                              GValue       *return_value G_GNUC_UNUSED,
518
522
            data2);
519
523
}
520
524
 
521
 
/* VOID:STRING,INT (./clutter-marshal.list:16) */
 
525
/* VOID:STRING,INT (./clutter-marshal.list:17) */
522
526
void
523
527
clutter_marshal_VOID__STRING_INT (GClosure     *closure,
524
528
                                  GValue       *return_value G_GNUC_UNUSED,
555
559
            data2);
556
560
}
557
561
 
558
 
/* VOID:UINT (./clutter-marshal.list:17) */
559
 
 
560
 
/* VOID:VOID (./clutter-marshal.list:18) */
 
562
/* VOID:UINT (./clutter-marshal.list:18) */
 
563
 
 
564
/* VOID:VOID (./clutter-marshal.list:19) */
 
565
 
 
566
/* VOID:STRING,INT,POINTER (./clutter-marshal.list:20) */
 
567
void
 
568
clutter_marshal_VOID__STRING_INT_POINTER (GClosure     *closure,
 
569
                                          GValue       *return_value G_GNUC_UNUSED,
 
570
                                          guint         n_param_values,
 
571
                                          const GValue *param_values,
 
572
                                          gpointer      invocation_hint G_GNUC_UNUSED,
 
573
                                          gpointer      marshal_data)
 
574
{
 
575
  typedef void (*GMarshalFunc_VOID__STRING_INT_POINTER) (gpointer     data1,
 
576
                                                         gpointer     arg_1,
 
577
                                                         gint         arg_2,
 
578
                                                         gpointer     arg_3,
 
579
                                                         gpointer     data2);
 
580
  register GMarshalFunc_VOID__STRING_INT_POINTER callback;
 
581
  register GCClosure *cc = (GCClosure*) closure;
 
582
  register gpointer data1, data2;
 
583
 
 
584
  g_return_if_fail (n_param_values == 4);
 
585
 
 
586
  if (G_CCLOSURE_SWAP_DATA (closure))
 
587
    {
 
588
      data1 = closure->data;
 
589
      data2 = g_value_peek_pointer (param_values + 0);
 
590
    }
 
591
  else
 
592
    {
 
593
      data1 = g_value_peek_pointer (param_values + 0);
 
594
      data2 = closure->data;
 
595
    }
 
596
  callback = (GMarshalFunc_VOID__STRING_INT_POINTER) (marshal_data ? marshal_data : cc->callback);
 
597
 
 
598
  callback (data1,
 
599
            g_marshal_value_peek_string (param_values + 1),
 
600
            g_marshal_value_peek_int (param_values + 2),
 
601
            g_marshal_value_peek_pointer (param_values + 3),
 
602
            data2);
 
603
}
561
604