~dobey/ubuntu/precise/libubuntuone/release-2-99-2

« back to all changes in this revision

Viewing changes to libubuntuone/u1-marshal.c

  • Committer: Ken VanDine
  • Date: 2011-03-18 21:16:33 UTC
  • mfrom: (83.1.1 libubuntuone)
  • Revision ID: ken.vandine@canonical.com-20110318211633-yqcern6x3xd8mvsz
Tags: 0.9.1-0ubuntu1
releasing version 0.9.1-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
#endif /* !G_ENABLE_DEBUG */
50
50
 
51
51
 
52
 
/* NONE:STRING,OBJECT (u1-marshal.list:1) */
53
 
void
54
 
_u1_marshal_VOID__STRING_OBJECT (GClosure     *closure,
55
 
                                 GValue       *return_value G_GNUC_UNUSED,
56
 
                                 guint         n_param_values,
57
 
                                 const GValue *param_values,
58
 
                                 gpointer      invocation_hint G_GNUC_UNUSED,
59
 
                                 gpointer      marshal_data)
60
 
{
61
 
  typedef void (*GMarshalFunc_VOID__STRING_OBJECT) (gpointer     data1,
62
 
                                                    gpointer     arg_1,
63
 
                                                    gpointer     arg_2,
64
 
                                                    gpointer     data2);
65
 
  register GMarshalFunc_VOID__STRING_OBJECT callback;
66
 
  register GCClosure *cc = (GCClosure*) closure;
67
 
  register gpointer data1, data2;
68
 
 
69
 
  g_return_if_fail (n_param_values == 3);
70
 
 
71
 
  if (G_CCLOSURE_SWAP_DATA (closure))
72
 
    {
73
 
      data1 = closure->data;
74
 
      data2 = g_value_peek_pointer (param_values + 0);
75
 
    }
76
 
  else
77
 
    {
78
 
      data1 = g_value_peek_pointer (param_values + 0);
79
 
      data2 = closure->data;
80
 
    }
81
 
  callback = (GMarshalFunc_VOID__STRING_OBJECT) (marshal_data ? marshal_data : cc->callback);
82
 
 
83
 
  callback (data1,
84
 
            g_marshal_value_peek_string (param_values + 1),
85
 
            g_marshal_value_peek_object (param_values + 2),
86
 
            data2);
87
 
}
88
 
 
89
 
/* NONE:STRING,STRING (u1-marshal.list:2) */
 
52
/* NONE:STRING,STRING (u1-marshal.list:1) */
90
53
void
91
54
_u1_marshal_VOID__STRING_STRING (GClosure     *closure,
92
55
                                 GValue       *return_value G_GNUC_UNUSED,