Exemplo n.º 1
0
static gboolean
foreach_cb (ClutterActor *actor,
            gpointer      data)
{
  ForeachClosure *clos = data;

  clos->callback (actor, clos->data);

  return TRUE;
}
Exemplo n.º 2
0
static void
json_object_foreach_internal (gpointer key,
                              gpointer value,
                              gpointer data)
{
  ForeachClosure *clos = data;
  const gchar *member_name = key;
  JsonNode *member_node = value;

  clos->func (clos->object, member_name, member_node, clos->data);
}
Exemplo n.º 3
0
static void
json_scanner_foreach_internal (gpointer _key,
                               gpointer _value,
                               gpointer _user_data)
{
  JsonScannerKey *key = _value;
  ForeachClosure *closure = _user_data;

  if (key->scope_id == closure->scope_id)
    closure->func (key->symbol, key->value, closure->data);
}