~ubuntu-branches/ubuntu/precise/libzeitgeist/precise-proposed

« back to all changes in this revision

Viewing changes to src/eggzeitgeistbindingsmarshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-08-02 18:22:32 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100802182232-47ohrpyfxep802pr
Tags: 0.2.3-0ubuntu1
* New upstream release.
  - New API to talk to the Data Source Registry extension of Zeitgeist
    (Michal Hruby)
  - A new "connected" property on ZeitgeistLog telling you whether or
    not the Zeitgeist daemon is running (Michal Hruby)
  - Fix a crasher when finalizing a ZeitgeistLog with active monitors
    installed (Michal Hruby)

Show diffs side-by-side

added added

removed removed

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