~ubuntu-branches/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tools/inspect/utils.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-06-10 11:28:11 UTC
  • mfrom: (1.2.11 upstream) (4.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110610112811-whyeodbo9mjezxfp
Tags: 0.5.2-1ubuntu1
* Merge with Debian experimental, remaining Ubuntu changes:
  - debian/control:
    + Add Vcs-Bzr link

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* utils.c generated by valac 0.11.7, the Vala compiler
 
1
/* utils.c generated by valac 0.12.0, the Vala compiler
2
2
 * generated from utils.vala, do not modify */
3
3
 
4
4
/*
26
26
#include <stdlib.h>
27
27
#include <string.h>
28
28
#include <gee.h>
29
 
#include <folks.h>
 
29
#include <folks/folks.h>
30
30
#include <stdarg.h>
31
31
#include <stdio.h>
32
32
#include <gio/gio.h>
55
55
typedef struct _FolksInspectCommandClass FolksInspectCommandClass;
56
56
#define _g_free0(var) (var = (g_free (var), NULL))
57
57
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
58
 
typedef struct _Block2Data Block2Data;
59
 
typedef struct _Block3Data Block3Data;
60
 
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
61
 
typedef struct _Block4Data Block4Data;
62
58
 
63
59
#define FOLKS_INSPECT_TYPE_CLIENT (folks_inspect_client_get_type ())
64
60
#define FOLKS_INSPECT_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FOLKS_INSPECT_TYPE_CLIENT, FolksInspectClient))
83
79
        void (*finalize) (FolksInspectUtils *self);
84
80
};
85
81
 
86
 
struct _Block2Data {
87
 
        int _ref_count_;
88
 
        gchar* output_string;
89
 
};
90
 
 
91
 
struct _Block3Data {
92
 
        int _ref_count_;
93
 
        Block2Data * _data2_;
94
 
        gboolean first;
95
 
};
96
 
 
97
 
struct _Block4Data {
98
 
        int _ref_count_;
99
 
        Block2Data * _data2_;
100
 
        gboolean first;
101
 
};
102
 
 
103
82
struct _FolksInspectClient {
104
83
        GObject parent_instance;
105
84
        FolksInspectClientPrivate * priv;
122
101
static gchar* folks_inspect_utils_indentation_string = NULL;
123
102
static GeeMapIterator* folks_inspect_utils_command_name_iter;
124
103
static GeeMapIterator* folks_inspect_utils_command_name_iter = NULL;
125
 
static GHashTableIter* folks_inspect_utils_individual_id_iter;
126
 
static GHashTableIter* folks_inspect_utils_individual_id_iter = NULL;
127
 
static GList* folks_inspect_utils_persona_uid_iter;
128
 
static GList* folks_inspect_utils_persona_uid_iter = NULL;
 
104
static GeeMapIterator* folks_inspect_utils_individual_id_iter;
 
105
static GeeMapIterator* folks_inspect_utils_individual_id_iter = NULL;
 
106
static GeeIterator* folks_inspect_utils_persona_uid_iter;
 
107
static GeeIterator* folks_inspect_utils_persona_uid_iter = NULL;
129
108
static GeeIterator* folks_inspect_utils_backend_name_iter;
130
109
static GeeIterator* folks_inspect_utils_backend_name_iter = NULL;
131
 
static GHashTableIter* folks_inspect_utils_persona_store_id_iter;
132
 
static GHashTableIter* folks_inspect_utils_persona_store_id_iter = NULL;
 
110
static GeeMapIterator* folks_inspect_utils_persona_store_id_iter;
 
111
static GeeMapIterator* folks_inspect_utils_persona_store_id_iter = NULL;
133
112
extern FolksInspectClient* main_client;
134
113
 
135
114
gpointer folks_inspect_utils_ref (gpointer instance);
163
142
static gchar* folks_inspect_utils_property_to_string (GType object_type, const gchar* prop_name, GValue* prop_value);
164
143
void folks_inspect_utils_print_persona (FolksPersona* persona);
165
144
void folks_inspect_utils_print_persona_store (FolksPersonaStore* store, gboolean show_personas);
166
 
static void _lambda2_ (const gchar* k, FolksPersona* v);
167
 
static void __lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self);
168
 
static Block2Data* block2_data_ref (Block2Data* _data2_);
169
 
static void block2_data_unref (Block2Data* _data2_);
170
 
static Block3Data* block3_data_ref (Block3Data* _data3_);
171
 
static void block3_data_unref (Block3Data* _data3_);
172
 
static void _lambda0_ (const gchar* k, gboolean v, Block3Data* _data3_);
173
 
static void __lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self);
174
 
static Block4Data* block4_data_ref (Block4Data* _data4_);
175
 
static void block4_data_unref (Block4Data* _data4_);
176
 
static void _lambda1_ (const gchar* k, FolksLinkedHashSet* v, Block4Data* _data4_);
177
 
static void __lambda1__gh_func (gconstpointer key, gconstpointer value, gpointer self);
178
145
gchar* folks_inspect_utils_transform_value_to_string (GValue* prop_value);
179
146
gchar* folks_inspect_utils_command_name_completion_cb (const gchar* word, gint state);
180
147
GType folks_inspect_client_get_type (void) G_GNUC_CONST;
181
148
gchar* folks_inspect_utils_individual_id_completion_cb (const gchar* word, gint state);
182
149
FolksIndividualAggregator* folks_inspect_client_get_aggregator (FolksInspectClient* self);
183
 
static GHashTableIter* _g_hash_table_iter_dup (GHashTableIter* self);
184
150
gchar* folks_inspect_utils_persona_uid_completion_cb (const gchar* word, gint state);
185
151
gchar* folks_inspect_utils_backend_name_completion_cb (const gchar* word, gint state);
186
152
FolksBackendStore* folks_inspect_client_get_backend_store (FolksInspectClient* self);
402
368
 
403
369
void folks_inspect_utils_print_individual (FolksIndividual* individual, gboolean show_personas) {
404
370
        const gchar* _tmp0_ = NULL;
405
 
        GList* _tmp1_ = NULL;
406
 
        guint _tmp2_;
 
371
        GeeSet* _tmp1_ = NULL;
 
372
        gint _tmp2_;
407
373
        GObjectClass* _tmp3_ = NULL;
408
374
        guint _tmp4_;
409
375
        GParamSpec** _tmp5_ = NULL;
413
379
        g_return_if_fail (individual != NULL);
414
380
        _tmp0_ = folks_individual_get_id (individual);
415
381
        _tmp1_ = folks_individual_get_personas (individual);
416
 
        _tmp2_ = g_list_length (_tmp1_);
417
 
        folks_inspect_utils_print_line ("Individual '%s' with %u personas:", _tmp0_, _tmp2_);
 
382
        _tmp2_ = gee_collection_get_size ((GeeCollection*) _tmp1_);
 
383
        folks_inspect_utils_print_line ("Individual '%s' with %u personas:", _tmp0_, (guint) _tmp2_);
418
384
        _tmp3_ = G_OBJECT_GET_CLASS ((GObject*) individual);
419
385
        _tmp5_ = g_object_class_list_properties (_tmp3_, &_tmp4_);
420
386
        properties = _tmp5_;
472
438
                }
473
439
        }
474
440
        if (show_personas == TRUE) {
475
 
                GList* _tmp15_ = NULL;
476
441
                folks_inspect_utils_print_line ("");
477
442
                folks_inspect_utils_print_line ("Personas:");
478
443
                folks_inspect_utils_indent ();
479
 
                _tmp15_ = folks_individual_get_personas (individual);
480
444
                {
481
 
                        GList* persona_collection;
482
 
                        GList* persona_it;
483
 
                        persona_collection = _tmp15_;
484
 
                        for (persona_it = persona_collection; persona_it != NULL; persona_it = persona_it->next) {
485
 
                                FolksPersona* _tmp16_;
 
445
                        GeeSet* _tmp15_ = NULL;
 
446
                        GeeIterator* _tmp16_ = NULL;
 
447
                        GeeIterator* _persona_it;
 
448
                        _tmp15_ = folks_individual_get_personas (individual);
 
449
                        _tmp16_ = gee_iterable_iterator ((GeeIterable*) _tmp15_);
 
450
                        _persona_it = _tmp16_;
 
451
                        while (TRUE) {
 
452
                                gboolean _tmp17_;
 
453
                                gpointer _tmp18_ = NULL;
486
454
                                FolksPersona* persona;
487
 
                                _tmp16_ = _g_object_ref0 ((FolksPersona*) persona_it->data);
488
 
                                persona = _tmp16_;
489
 
                                {
490
 
                                        folks_inspect_utils_print_persona (persona);
491
 
                                        _g_object_unref0 (persona);
 
455
                                _tmp17_ = gee_iterator_next (_persona_it);
 
456
                                if (!_tmp17_) {
 
457
                                        break;
492
458
                                }
 
459
                                _tmp18_ = gee_iterator_get (_persona_it);
 
460
                                persona = (FolksPersona*) _tmp18_;
 
461
                                folks_inspect_utils_print_persona (persona);
 
462
                                _g_object_unref0 (persona);
493
463
                        }
 
464
                        _g_object_unref0 (_persona_it);
494
465
                }
495
466
                folks_inspect_utils_unindent ();
496
467
        }
556
527
}
557
528
 
558
529
 
559
 
static void _lambda2_ (const gchar* k, FolksPersona* v) {
560
 
        g_return_if_fail (k != NULL);
561
 
        g_return_if_fail (v != NULL);
562
 
        folks_inspect_utils_print_persona (FOLKS_PERSONA (v));
563
 
}
564
 
 
565
 
 
566
 
static void __lambda2__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
567
 
        _lambda2_ (key, value);
568
 
}
569
 
 
570
 
 
571
530
void folks_inspect_utils_print_persona_store (FolksPersonaStore* store, gboolean show_personas) {
572
531
        const gchar* _tmp0_ = NULL;
573
 
        GHashTable* _tmp1_ = NULL;
574
 
        guint _tmp2_;
 
532
        GeeMap* _tmp1_ = NULL;
 
533
        gint _tmp2_;
575
534
        GObjectClass* _tmp3_ = NULL;
576
535
        guint _tmp4_;
577
536
        GParamSpec** _tmp5_ = NULL;
581
540
        g_return_if_fail (store != NULL);
582
541
        _tmp0_ = folks_persona_store_get_id (store);
583
542
        _tmp1_ = folks_persona_store_get_personas (store);
584
 
        _tmp2_ = g_hash_table_size (_tmp1_);
585
 
        folks_inspect_utils_print_line ("Persona store '%s' with %u personas:", _tmp0_, _tmp2_);
 
543
        _tmp2_ = gee_map_get_size (_tmp1_);
 
544
        folks_inspect_utils_print_line ("Persona store '%s' with %u personas:", _tmp0_, (guint) _tmp2_);
586
545
        _tmp3_ = G_OBJECT_GET_CLASS ((GObject*) store);
587
546
        _tmp5_ = g_object_class_list_properties (_tmp3_, &_tmp4_);
588
547
        properties = _tmp5_;
640
599
                }
641
600
        }
642
601
        if (show_personas == TRUE) {
643
 
                GHashTable* _tmp15_ = NULL;
644
602
                folks_inspect_utils_print_line ("");
645
603
                folks_inspect_utils_print_line ("Personas:");
646
604
                folks_inspect_utils_indent ();
647
 
                _tmp15_ = folks_persona_store_get_personas (store);
648
 
                g_hash_table_foreach (_tmp15_, __lambda2__gh_func, NULL);
 
605
                {
 
606
                        GeeMap* _tmp15_ = NULL;
 
607
                        GeeCollection* _tmp16_ = NULL;
 
608
                        GeeCollection* _tmp17_;
 
609
                        GeeIterator* _tmp18_ = NULL;
 
610
                        GeeIterator* _tmp19_;
 
611
                        GeeIterator* _persona_it;
 
612
                        _tmp15_ = folks_persona_store_get_personas (store);
 
613
                        _tmp16_ = gee_map_get_values (_tmp15_);
 
614
                        _tmp17_ = _tmp16_;
 
615
                        _tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
 
616
                        _tmp19_ = _tmp18_;
 
617
                        _g_object_unref0 (_tmp17_);
 
618
                        _persona_it = _tmp19_;
 
619
                        while (TRUE) {
 
620
                                gboolean _tmp20_;
 
621
                                gpointer _tmp21_ = NULL;
 
622
                                FolksPersona* persona;
 
623
                                _tmp20_ = gee_iterator_next (_persona_it);
 
624
                                if (!_tmp20_) {
 
625
                                        break;
 
626
                                }
 
627
                                _tmp21_ = gee_iterator_get (_persona_it);
 
628
                                persona = (FolksPersona*) _tmp21_;
 
629
                                folks_inspect_utils_print_persona (persona);
 
630
                                _g_object_unref0 (persona);
 
631
                        }
 
632
                        _g_object_unref0 (_persona_it);
 
633
                }
649
634
                folks_inspect_utils_unindent ();
650
635
        }
651
636
        folks_inspect_utils_unindent ();
652
637
}
653
638
 
654
639
 
655
 
static Block2Data* block2_data_ref (Block2Data* _data2_) {
656
 
        g_atomic_int_inc (&_data2_->_ref_count_);
657
 
        return _data2_;
658
 
}
659
 
 
660
 
 
661
 
static void block2_data_unref (Block2Data* _data2_) {
662
 
        if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
663
 
                _g_free0 (_data2_->output_string);
664
 
                g_slice_free (Block2Data, _data2_);
665
 
        }
666
 
}
667
 
 
668
 
 
669
 
static Block3Data* block3_data_ref (Block3Data* _data3_) {
670
 
        g_atomic_int_inc (&_data3_->_ref_count_);
671
 
        return _data3_;
672
 
}
673
 
 
674
 
 
675
 
static void block3_data_unref (Block3Data* _data3_) {
676
 
        if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
677
 
                block2_data_unref (_data3_->_data2_);
678
 
                _data3_->_data2_ = NULL;
679
 
                g_slice_free (Block3Data, _data3_);
680
 
        }
681
 
}
682
 
 
683
 
 
684
 
static gpointer _g_hash_table_ref0 (gpointer self) {
685
 
        return self ? g_hash_table_ref (self) : NULL;
686
 
}
687
 
 
688
 
 
689
 
static void _lambda0_ (const gchar* k, gboolean v, Block3Data* _data3_) {
690
 
        Block2Data* _data2_;
691
 
        _data2_ = _data3_->_data2_;
692
 
        g_return_if_fail (k != NULL);
693
 
        if (((gboolean) v) == TRUE) {
694
 
                gchar* _tmp1_ = NULL;
695
 
                gchar* _tmp2_;
696
 
                gchar* _tmp3_;
697
 
                if (_data3_->first == FALSE) {
698
 
                        gchar* _tmp0_;
699
 
                        _tmp0_ = g_strconcat (_data2_->output_string, ", ", NULL);
700
 
                        _g_free0 (_data2_->output_string);
701
 
                        _data2_->output_string = _tmp0_;
702
 
                }
703
 
                _tmp1_ = g_strdup_printf ("'%s'", (const gchar*) k);
704
 
                _tmp2_ = _tmp1_;
705
 
                _tmp3_ = g_strconcat (_data2_->output_string, _tmp2_, NULL);
706
 
                _g_free0 (_data2_->output_string);
707
 
                _data2_->output_string = _tmp3_;
708
 
                _g_free0 (_tmp2_);
709
 
                _data3_->first = FALSE;
710
 
        }
711
 
}
712
 
 
713
 
 
714
 
static void __lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
715
 
        _lambda0_ (key, value, self);
716
 
}
717
 
 
718
 
 
719
 
static Block4Data* block4_data_ref (Block4Data* _data4_) {
720
 
        g_atomic_int_inc (&_data4_->_ref_count_);
721
 
        return _data4_;
722
 
}
723
 
 
724
 
 
725
 
static void block4_data_unref (Block4Data* _data4_) {
726
 
        if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
727
 
                block2_data_unref (_data4_->_data2_);
728
 
                _data4_->_data2_ = NULL;
729
 
                g_slice_free (Block4Data, _data4_);
730
 
        }
731
 
}
732
 
 
733
 
 
734
 
static void _lambda1_ (const gchar* k, FolksLinkedHashSet* v, Block4Data* _data4_) {
735
 
        Block2Data* _data2_;
736
 
        gchar* _tmp1_ = NULL;
737
 
        gchar* _tmp2_;
738
 
        gchar* _tmp3_;
739
 
        FolksLinkedHashSet* _tmp4_;
740
 
        FolksLinkedHashSet* addresses;
741
 
        gboolean _first;
742
 
        gchar* _tmp12_;
743
 
        _data2_ = _data4_->_data2_;
744
 
        g_return_if_fail (k != NULL);
745
 
        g_return_if_fail (v != NULL);
746
 
        if (_data4_->first == FALSE) {
747
 
                gchar* _tmp0_;
748
 
                _tmp0_ = g_strconcat (_data2_->output_string, ", ", NULL);
749
 
                _g_free0 (_data2_->output_string);
750
 
                _data2_->output_string = _tmp0_;
751
 
        }
752
 
        _tmp1_ = g_strdup_printf ("'%s' : { ", (const gchar*) k);
753
 
        _tmp2_ = _tmp1_;
754
 
        _tmp3_ = g_strconcat (_data2_->output_string, _tmp2_, NULL);
755
 
        _g_free0 (_data2_->output_string);
756
 
        _data2_->output_string = _tmp3_;
757
 
        _g_free0 (_tmp2_);
758
 
        _data4_->first = FALSE;
759
 
        _tmp4_ = _g_object_ref0 (FOLKS_LINKED_HASH_SET (v));
760
 
        addresses = _tmp4_;
761
 
        _first = TRUE;
762
 
        {
763
 
                FolksLinkedHashSet* _tmp5_;
764
 
                FolksLinkedHashSet* _a_list;
765
 
                gint _tmp6_;
766
 
                gint _a_size;
767
 
                gint _a_index;
768
 
                _tmp5_ = _g_object_ref0 (addresses);
769
 
                _a_list = _tmp5_;
770
 
                _tmp6_ = gee_collection_get_size ((GeeCollection*) _a_list);
771
 
                _a_size = _tmp6_;
772
 
                _a_index = -1;
773
 
                while (TRUE) {
774
 
                        gpointer _tmp7_ = NULL;
775
 
                        gchar* a;
776
 
                        gchar* _tmp9_ = NULL;
777
 
                        gchar* _tmp10_;
778
 
                        gchar* _tmp11_;
779
 
                        _a_index = _a_index + 1;
780
 
                        if (!(_a_index < _a_size)) {
781
 
                                break;
782
 
                        }
783
 
                        _tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _a_list, _a_index);
784
 
                        a = (gchar*) _tmp7_;
785
 
                        if (_first == FALSE) {
786
 
                                gchar* _tmp8_;
787
 
                                _tmp8_ = g_strconcat (_data2_->output_string, ", ", NULL);
788
 
                                _g_free0 (_data2_->output_string);
789
 
                                _data2_->output_string = _tmp8_;
790
 
                        }
791
 
                        _tmp9_ = g_strdup_printf ("'%s'", (const gchar*) a);
792
 
                        _tmp10_ = _tmp9_;
793
 
                        _tmp11_ = g_strconcat (_data2_->output_string, _tmp10_, NULL);
794
 
                        _g_free0 (_data2_->output_string);
795
 
                        _data2_->output_string = _tmp11_;
796
 
                        _g_free0 (_tmp10_);
797
 
                        _first = FALSE;
798
 
                        _g_free0 (a);
799
 
                }
800
 
                _g_object_unref0 (_a_list);
801
 
        }
802
 
        _tmp12_ = g_strconcat (_data2_->output_string, " }", NULL);
803
 
        _g_free0 (_data2_->output_string);
804
 
        _data2_->output_string = _tmp12_;
805
 
        _g_object_unref0 (addresses);
806
 
}
807
 
 
808
 
 
809
 
static void __lambda1__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
810
 
        _lambda1_ (key, value, self);
811
 
}
812
 
 
813
 
 
814
640
static gchar* g_date_time_to_string (GDateTime* self) {
815
641
        gchar* result = NULL;
816
642
        gchar* _tmp0_ = NULL;
823
649
 
824
650
static gchar* folks_inspect_utils_property_to_string (GType object_type, const gchar* prop_name, GValue* prop_value) {
825
651
        gchar* result = NULL;
826
 
        Block2Data* _data2_;
 
652
        gchar* output_string = NULL;
827
653
        gboolean _tmp0_ = FALSE;
828
654
        gboolean _tmp1_;
829
 
        gchar* _tmp47_ = NULL;
 
655
        gchar* _tmp123_ = NULL;
830
656
        g_return_val_if_fail (prop_name != NULL, NULL);
831
 
        _data2_ = g_slice_new0 (Block2Data);
832
 
        _data2_->_ref_count_ = 1;
833
657
        _tmp1_ = g_type_is_a (object_type, FOLKS_TYPE_INDIVIDUAL);
834
658
        if (_tmp1_) {
835
659
                _tmp0_ = g_strcmp0 (prop_name, "personas") == 0;
837
661
                _tmp0_ = FALSE;
838
662
        }
839
663
        if (_tmp0_) {
840
 
                void* _tmp2_ = NULL;
841
 
                GList* personas;
842
 
                guint _tmp3_;
843
 
                gchar* _tmp4_ = NULL;
844
 
                _tmp2_ = g_value_get_pointer (prop_value);
845
 
                personas = (GList*) _tmp2_;
846
 
                _tmp3_ = g_list_length (personas);
847
 
                _tmp4_ = g_strdup_printf ("List of %u personas", _tmp3_);
848
 
                result = _tmp4_;
849
 
                block2_data_unref (_data2_);
850
 
                _data2_ = NULL;
 
664
                GObject* _tmp2_ = NULL;
 
665
                GeeSet* _tmp3_;
 
666
                GeeSet* personas;
 
667
                gint _tmp4_;
 
668
                gchar* _tmp5_ = NULL;
 
669
                _tmp2_ = g_value_get_object (prop_value);
 
670
                _tmp3_ = _g_object_ref0 (GEE_SET (_tmp2_));
 
671
                personas = _tmp3_;
 
672
                _tmp4_ = gee_collection_get_size ((GeeCollection*) personas);
 
673
                _tmp5_ = g_strdup_printf ("List of %u personas", (guint) _tmp4_);
 
674
                result = _tmp5_;
 
675
                _g_object_unref0 (personas);
 
676
                _g_free0 (output_string);
851
677
                return result;
852
678
        } else {
853
 
                gboolean _tmp5_ = FALSE;
854
 
                gboolean _tmp6_;
855
 
                _tmp6_ = g_type_is_a (object_type, FOLKS_TYPE_PERSONA_STORE);
 
679
                gboolean _tmp6_ = FALSE;
 
680
                gboolean _tmp7_;
 
681
                _tmp7_ = g_type_is_a (object_type, FOLKS_TYPE_PERSONA_STORE);
 
682
                if (_tmp7_) {
 
683
                        _tmp6_ = g_strcmp0 (prop_name, "personas") == 0;
 
684
                } else {
 
685
                        _tmp6_ = FALSE;
 
686
                }
856
687
                if (_tmp6_) {
857
 
                        _tmp5_ = g_strcmp0 (prop_name, "personas") == 0;
858
 
                } else {
859
 
                        _tmp5_ = FALSE;
860
 
                }
861
 
                if (_tmp5_) {
862
 
                        void* _tmp7_ = NULL;
863
 
                        GHashTable* personas;
864
 
                        guint _tmp8_;
865
 
                        gchar* _tmp9_ = NULL;
866
 
                        _tmp7_ = g_value_get_boxed (prop_value);
867
 
                        personas = (GHashTable*) _tmp7_;
868
 
                        _tmp8_ = g_hash_table_size (personas);
869
 
                        _tmp9_ = g_strdup_printf ("Set of %u personas", _tmp8_);
870
 
                        result = _tmp9_;
871
 
                        block2_data_unref (_data2_);
872
 
                        _data2_ = NULL;
 
688
                        GObject* _tmp8_ = NULL;
 
689
                        GeeMap* _tmp9_;
 
690
                        GeeMap* personas;
 
691
                        gint _tmp10_;
 
692
                        gchar* _tmp11_ = NULL;
 
693
                        _tmp8_ = g_value_get_object (prop_value);
 
694
                        _tmp9_ = _g_object_ref0 (GEE_MAP (_tmp8_));
 
695
                        personas = _tmp9_;
 
696
                        _tmp10_ = gee_map_get_size (personas);
 
697
                        _tmp11_ = g_strdup_printf ("Set of %u personas", (guint) _tmp10_);
 
698
                        result = _tmp11_;
 
699
                        _g_object_unref0 (personas);
 
700
                        _g_free0 (output_string);
873
701
                        return result;
874
702
                } else {
 
703
                        gboolean _tmp12_ = FALSE;
875
704
                        if (g_strcmp0 (prop_name, "groups") == 0) {
876
 
                                Block3Data* _data3_;
877
 
                                void* _tmp10_ = NULL;
878
 
                                GHashTable* _tmp11_;
879
 
                                GHashTable* groups;
880
 
                                gchar* _tmp12_;
881
 
                                gchar* _tmp13_;
882
 
                                gchar* _tmp14_;
883
 
                                _data3_ = g_slice_new0 (Block3Data);
884
 
                                _data3_->_ref_count_ = 1;
885
 
                                _data3_->_data2_ = block2_data_ref (_data2_);
886
 
                                _tmp10_ = g_value_get_boxed (prop_value);
887
 
                                _tmp11_ = _g_hash_table_ref0 ((GHashTable*) _tmp10_);
888
 
                                groups = _tmp11_;
889
 
                                _tmp12_ = g_strdup ("{ ");
890
 
                                _g_free0 (_data2_->output_string);
891
 
                                _data2_->output_string = _tmp12_;
892
 
                                _data3_->first = TRUE;
893
 
                                g_hash_table_foreach (groups, __lambda0__gh_func, _data3_);
894
 
                                _tmp13_ = g_strconcat (_data2_->output_string, " }", NULL);
895
 
                                _g_free0 (_data2_->output_string);
896
 
                                _data2_->output_string = _tmp13_;
897
 
                                _tmp14_ = g_strdup (_data2_->output_string);
898
 
                                result = _tmp14_;
899
 
                                _g_hash_table_unref0 (groups);
900
 
                                block3_data_unref (_data3_);
901
 
                                _data3_ = NULL;
902
 
                                block2_data_unref (_data2_);
903
 
                                _data2_ = NULL;
 
705
                                _tmp12_ = TRUE;
 
706
                        } else {
 
707
                                _tmp12_ = g_strcmp0 (prop_name, "local-ids") == 0;
 
708
                        }
 
709
                        if (_tmp12_) {
 
710
                                GObject* _tmp13_ = NULL;
 
711
                                GeeSet* _tmp14_;
 
712
                                GeeSet* groups;
 
713
                                gchar* _tmp15_;
 
714
                                gboolean first;
 
715
                                gchar* _tmp23_;
 
716
                                _tmp13_ = g_value_get_object (prop_value);
 
717
                                _tmp14_ = _g_object_ref0 (GEE_SET (_tmp13_));
 
718
                                groups = _tmp14_;
 
719
                                _tmp15_ = g_strdup ("{ ");
 
720
                                _g_free0 (output_string);
 
721
                                output_string = _tmp15_;
 
722
                                first = TRUE;
 
723
                                {
 
724
                                        GeeIterator* _tmp16_ = NULL;
 
725
                                        GeeIterator* _group_it;
 
726
                                        _tmp16_ = gee_iterable_iterator ((GeeIterable*) groups);
 
727
                                        _group_it = _tmp16_;
 
728
                                        while (TRUE) {
 
729
                                                gboolean _tmp17_;
 
730
                                                gpointer _tmp18_ = NULL;
 
731
                                                gchar* group;
 
732
                                                gchar* _tmp20_ = NULL;
 
733
                                                gchar* _tmp21_;
 
734
                                                gchar* _tmp22_;
 
735
                                                _tmp17_ = gee_iterator_next (_group_it);
 
736
                                                if (!_tmp17_) {
 
737
                                                        break;
 
738
                                                }
 
739
                                                _tmp18_ = gee_iterator_get (_group_it);
 
740
                                                group = (gchar*) _tmp18_;
 
741
                                                if (first == FALSE) {
 
742
                                                        gchar* _tmp19_;
 
743
                                                        _tmp19_ = g_strconcat (output_string, ", ", NULL);
 
744
                                                        _g_free0 (output_string);
 
745
                                                        output_string = _tmp19_;
 
746
                                                }
 
747
                                                _tmp20_ = g_strdup_printf ("'%s'", group);
 
748
                                                _tmp21_ = _tmp20_;
 
749
                                                _tmp22_ = g_strconcat (output_string, _tmp21_, NULL);
 
750
                                                _g_free0 (output_string);
 
751
                                                output_string = _tmp22_;
 
752
                                                _g_free0 (_tmp21_);
 
753
                                                first = FALSE;
 
754
                                                _g_free0 (group);
 
755
                                        }
 
756
                                        _g_object_unref0 (_group_it);
 
757
                                }
 
758
                                _tmp23_ = g_strconcat (output_string, " }", NULL);
 
759
                                _g_free0 (output_string);
 
760
                                output_string = _tmp23_;
 
761
                                result = output_string;
 
762
                                _g_object_unref0 (groups);
904
763
                                return result;
905
764
                        } else {
906
765
                                if (g_strcmp0 (prop_name, "avatar") == 0) {
907
766
                                        gchar* ret;
908
 
                                        GObject* _tmp15_ = NULL;
909
 
                                        GFile* _tmp16_;
 
767
                                        GObject* _tmp24_ = NULL;
 
768
                                        GFile* _tmp25_;
910
769
                                        GFile* avatar;
911
770
                                        ret = NULL;
912
 
                                        _tmp15_ = g_value_get_object (prop_value);
913
 
                                        _tmp16_ = _g_object_ref0 (G_FILE (_tmp15_));
914
 
                                        avatar = _tmp16_;
 
771
                                        _tmp24_ = g_value_get_object (prop_value);
 
772
                                        _tmp25_ = _g_object_ref0 (G_FILE (_tmp24_));
 
773
                                        avatar = _tmp25_;
915
774
                                        if (avatar != NULL) {
916
 
                                                gchar* _tmp17_ = NULL;
917
 
                                                _tmp17_ = g_file_get_uri (avatar);
 
775
                                                gchar* _tmp26_ = NULL;
 
776
                                                _tmp26_ = g_file_get_uri (avatar);
918
777
                                                _g_free0 (ret);
919
 
                                                ret = _tmp17_;
 
778
                                                ret = _tmp26_;
920
779
                                        }
921
780
                                        result = ret;
922
781
                                        _g_object_unref0 (avatar);
923
 
                                        block2_data_unref (_data2_);
924
 
                                        _data2_ = NULL;
 
782
                                        _g_free0 (output_string);
925
783
                                        return result;
926
784
                                } else {
927
785
                                        if (g_strcmp0 (prop_name, "im-addresses") == 0) {
928
 
                                                Block4Data* _data4_;
929
 
                                                void* _tmp18_ = NULL;
930
 
                                                GHashTable* _tmp19_;
931
 
                                                GHashTable* im_addresses;
932
 
                                                gchar* _tmp20_;
933
 
                                                gchar* _tmp21_;
934
 
                                                gchar* _tmp22_;
935
 
                                                _data4_ = g_slice_new0 (Block4Data);
936
 
                                                _data4_->_ref_count_ = 1;
937
 
                                                _data4_->_data2_ = block2_data_ref (_data2_);
938
 
                                                _tmp18_ = g_value_get_boxed (prop_value);
939
 
                                                _tmp19_ = _g_hash_table_ref0 ((GHashTable*) _tmp18_);
940
 
                                                im_addresses = _tmp19_;
941
 
                                                _tmp20_ = g_strdup ("{ ");
942
 
                                                _g_free0 (_data2_->output_string);
943
 
                                                _data2_->output_string = _tmp20_;
944
 
                                                _data4_->first = TRUE;
945
 
                                                g_hash_table_foreach (im_addresses, __lambda1__gh_func, _data4_);
946
 
                                                _tmp21_ = g_strconcat (_data2_->output_string, " }", NULL);
947
 
                                                _g_free0 (_data2_->output_string);
948
 
                                                _data2_->output_string = _tmp21_;
949
 
                                                _tmp22_ = g_strdup (_data2_->output_string);
950
 
                                                result = _tmp22_;
951
 
                                                _g_hash_table_unref0 (im_addresses);
952
 
                                                block4_data_unref (_data4_);
953
 
                                                _data4_ = NULL;
954
 
                                                block2_data_unref (_data2_);
955
 
                                                _data2_ = NULL;
 
786
                                                GObject* _tmp27_ = NULL;
 
787
                                                GeeMultiMap* _tmp28_;
 
788
                                                GeeMultiMap* im_addresses;
 
789
                                                gchar* _tmp29_;
 
790
                                                gboolean first;
 
791
                                                gchar* _tmp49_;
 
792
                                                _tmp27_ = g_value_get_object (prop_value);
 
793
                                                _tmp28_ = _g_object_ref0 (GEE_MULTI_MAP (_tmp27_));
 
794
                                                im_addresses = _tmp28_;
 
795
                                                _tmp29_ = g_strdup ("{ ");
 
796
                                                _g_free0 (output_string);
 
797
                                                output_string = _tmp29_;
 
798
                                                first = TRUE;
 
799
                                                {
 
800
                                                        GeeSet* _tmp30_ = NULL;
 
801
                                                        GeeSet* _tmp31_;
 
802
                                                        GeeIterator* _tmp32_ = NULL;
 
803
                                                        GeeIterator* _tmp33_;
 
804
                                                        GeeIterator* _protocol_it;
 
805
                                                        _tmp30_ = gee_multi_map_get_keys (im_addresses);
 
806
                                                        _tmp31_ = _tmp30_;
 
807
                                                        _tmp32_ = gee_iterable_iterator ((GeeIterable*) _tmp31_);
 
808
                                                        _tmp33_ = _tmp32_;
 
809
                                                        _g_object_unref0 (_tmp31_);
 
810
                                                        _protocol_it = _tmp33_;
 
811
                                                        while (TRUE) {
 
812
                                                                gboolean _tmp34_;
 
813
                                                                gpointer _tmp35_ = NULL;
 
814
                                                                gchar* protocol;
 
815
                                                                gchar* _tmp37_ = NULL;
 
816
                                                                gchar* _tmp38_;
 
817
                                                                gchar* _tmp39_;
 
818
                                                                GeeCollection* _tmp40_ = NULL;
 
819
                                                                GeeCollection* addresses;
 
820
                                                                gboolean _first;
 
821
                                                                gchar* _tmp48_;
 
822
                                                                _tmp34_ = gee_iterator_next (_protocol_it);
 
823
                                                                if (!_tmp34_) {
 
824
                                                                        break;
 
825
                                                                }
 
826
                                                                _tmp35_ = gee_iterator_get (_protocol_it);
 
827
                                                                protocol = (gchar*) _tmp35_;
 
828
                                                                if (first == FALSE) {
 
829
                                                                        gchar* _tmp36_;
 
830
                                                                        _tmp36_ = g_strconcat (output_string, ", ", NULL);
 
831
                                                                        _g_free0 (output_string);
 
832
                                                                        output_string = _tmp36_;
 
833
                                                                }
 
834
                                                                _tmp37_ = g_strdup_printf ("'%s' : { ", protocol);
 
835
                                                                _tmp38_ = _tmp37_;
 
836
                                                                _tmp39_ = g_strconcat (output_string, _tmp38_, NULL);
 
837
                                                                _g_free0 (output_string);
 
838
                                                                output_string = _tmp39_;
 
839
                                                                _g_free0 (_tmp38_);
 
840
                                                                first = FALSE;
 
841
                                                                _tmp40_ = gee_multi_map_get (im_addresses, protocol);
 
842
                                                                addresses = _tmp40_;
 
843
                                                                _first = TRUE;
 
844
                                                                {
 
845
                                                                        GeeIterator* _tmp41_ = NULL;
 
846
                                                                        GeeIterator* _a_it;
 
847
                                                                        _tmp41_ = gee_iterable_iterator ((GeeIterable*) addresses);
 
848
                                                                        _a_it = _tmp41_;
 
849
                                                                        while (TRUE) {
 
850
                                                                                gboolean _tmp42_;
 
851
                                                                                gpointer _tmp43_ = NULL;
 
852
                                                                                gchar* a;
 
853
                                                                                gchar* _tmp45_ = NULL;
 
854
                                                                                gchar* _tmp46_;
 
855
                                                                                gchar* _tmp47_;
 
856
                                                                                _tmp42_ = gee_iterator_next (_a_it);
 
857
                                                                                if (!_tmp42_) {
 
858
                                                                                        break;
 
859
                                                                                }
 
860
                                                                                _tmp43_ = gee_iterator_get (_a_it);
 
861
                                                                                a = (gchar*) _tmp43_;
 
862
                                                                                if (_first == FALSE) {
 
863
                                                                                        gchar* _tmp44_;
 
864
                                                                                        _tmp44_ = g_strconcat (output_string, ", ", NULL);
 
865
                                                                                        _g_free0 (output_string);
 
866
                                                                                        output_string = _tmp44_;
 
867
                                                                                }
 
868
                                                                                _tmp45_ = g_strdup_printf ("'%s'", (const gchar*) a);
 
869
                                                                                _tmp46_ = _tmp45_;
 
870
                                                                                _tmp47_ = g_strconcat (output_string, _tmp46_, NULL);
 
871
                                                                                _g_free0 (output_string);
 
872
                                                                                output_string = _tmp47_;
 
873
                                                                                _g_free0 (_tmp46_);
 
874
                                                                                _first = FALSE;
 
875
                                                                                _g_free0 (a);
 
876
                                                                        }
 
877
                                                                        _g_object_unref0 (_a_it);
 
878
                                                                }
 
879
                                                                _tmp48_ = g_strconcat (output_string, " }", NULL);
 
880
                                                                _g_free0 (output_string);
 
881
                                                                output_string = _tmp48_;
 
882
                                                                _g_object_unref0 (addresses);
 
883
                                                                _g_free0 (protocol);
 
884
                                                        }
 
885
                                                        _g_object_unref0 (_protocol_it);
 
886
                                                }
 
887
                                                _tmp49_ = g_strconcat (output_string, " }", NULL);
 
888
                                                _g_free0 (output_string);
 
889
                                                output_string = _tmp49_;
 
890
                                                result = output_string;
 
891
                                                _g_object_unref0 (im_addresses);
956
892
                                                return result;
957
893
                                        } else {
958
 
                                                gboolean _tmp23_ = FALSE;
959
 
                                                gboolean _tmp24_ = FALSE;
960
 
                                                if (g_strcmp0 (prop_name, "email-addresses") == 0) {
961
 
                                                        _tmp24_ = TRUE;
962
 
                                                } else {
963
 
                                                        _tmp24_ = g_strcmp0 (prop_name, "urls") == 0;
964
 
                                                }
965
 
                                                if (_tmp24_) {
966
 
                                                        _tmp23_ = TRUE;
967
 
                                                } else {
968
 
                                                        _tmp23_ = g_strcmp0 (prop_name, "phone-numbers") == 0;
969
 
                                                }
970
 
                                                if (_tmp23_) {
971
 
                                                        gchar* _tmp25_;
 
894
                                                const gchar* _tmp50_ = NULL;
 
895
                                                _tmp50_ = folks_persona_store_detail_key (FOLKS_PERSONA_DETAIL_WEB_SERVICE_ADDRESSES);
 
896
                                                if (g_strcmp0 (prop_name, _tmp50_) == 0) {
 
897
                                                        GObject* _tmp51_ = NULL;
 
898
                                                        GeeMultiMap* _tmp52_;
 
899
                                                        GeeMultiMap* web_service_addresses;
 
900
                                                        gchar* _tmp53_;
972
901
                                                        gboolean first;
973
 
                                                        void* _tmp26_ = NULL;
974
 
                                                        GList* prop_list;
975
 
                                                        gchar* _tmp31_;
976
 
                                                        gchar* _tmp32_;
977
 
                                                        _tmp25_ = g_strdup ("{ ");
978
 
                                                        _g_free0 (_data2_->output_string);
979
 
                                                        _data2_->output_string = _tmp25_;
 
902
                                                        gchar* _tmp73_;
 
903
                                                        _tmp51_ = g_value_get_object (prop_value);
 
904
                                                        _tmp52_ = _g_object_ref0 (GEE_MULTI_MAP (_tmp51_));
 
905
                                                        web_service_addresses = _tmp52_;
 
906
                                                        _tmp53_ = g_strdup ("{ ");
 
907
                                                        _g_free0 (output_string);
 
908
                                                        output_string = _tmp53_;
980
909
                                                        first = TRUE;
981
 
                                                        _tmp26_ = g_value_get_pointer (prop_value);
982
 
                                                        prop_list = (GList*) _tmp26_;
983
910
                                                        {
984
 
                                                                GList* p_collection;
985
 
                                                                GList* p_it;
986
 
                                                                p_collection = prop_list;
987
 
                                                                for (p_it = p_collection; p_it != NULL; p_it = p_it->next) {
988
 
                                                                        FolksFieldDetails* _tmp27_;
989
 
                                                                        FolksFieldDetails* p;
990
 
                                                                        _tmp27_ = _g_object_ref0 ((FolksFieldDetails*) p_it->data);
991
 
                                                                        p = _tmp27_;
 
911
                                                                GeeSet* _tmp54_ = NULL;
 
912
                                                                GeeSet* _tmp55_;
 
913
                                                                GeeIterator* _tmp56_ = NULL;
 
914
                                                                GeeIterator* _tmp57_;
 
915
                                                                GeeIterator* _web_service_it;
 
916
                                                                _tmp54_ = gee_multi_map_get_keys (web_service_addresses);
 
917
                                                                _tmp55_ = _tmp54_;
 
918
                                                                _tmp56_ = gee_iterable_iterator ((GeeIterable*) _tmp55_);
 
919
                                                                _tmp57_ = _tmp56_;
 
920
                                                                _g_object_unref0 (_tmp55_);
 
921
                                                                _web_service_it = _tmp57_;
 
922
                                                                while (TRUE) {
 
923
                                                                        gboolean _tmp58_;
 
924
                                                                        gpointer _tmp59_ = NULL;
 
925
                                                                        gchar* web_service;
 
926
                                                                        gchar* _tmp61_ = NULL;
 
927
                                                                        gchar* _tmp62_;
 
928
                                                                        gchar* _tmp63_;
 
929
                                                                        GeeCollection* _tmp64_ = NULL;
 
930
                                                                        GeeCollection* addresses;
 
931
                                                                        gboolean _first;
 
932
                                                                        gchar* _tmp72_;
 
933
                                                                        _tmp58_ = gee_iterator_next (_web_service_it);
 
934
                                                                        if (!_tmp58_) {
 
935
                                                                                break;
 
936
                                                                        }
 
937
                                                                        _tmp59_ = gee_iterator_get (_web_service_it);
 
938
                                                                        web_service = (gchar*) _tmp59_;
 
939
                                                                        if (first == FALSE) {
 
940
                                                                                gchar* _tmp60_;
 
941
                                                                                _tmp60_ = g_strconcat (output_string, ", ", NULL);
 
942
                                                                                _g_free0 (output_string);
 
943
                                                                                output_string = _tmp60_;
 
944
                                                                        }
 
945
                                                                        _tmp61_ = g_strdup_printf ("'%s' : { ", web_service);
 
946
                                                                        _tmp62_ = _tmp61_;
 
947
                                                                        _tmp63_ = g_strconcat (output_string, _tmp62_, NULL);
 
948
                                                                        _g_free0 (output_string);
 
949
                                                                        output_string = _tmp63_;
 
950
                                                                        _g_free0 (_tmp62_);
 
951
                                                                        first = FALSE;
 
952
                                                                        _tmp64_ = gee_multi_map_get (web_service_addresses, web_service);
 
953
                                                                        addresses = _tmp64_;
 
954
                                                                        _first = TRUE;
992
955
                                                                        {
993
 
                                                                                const gchar* _tmp29_ = NULL;
994
 
                                                                                gchar* _tmp30_;
 
956
                                                                                GeeIterator* _tmp65_ = NULL;
 
957
                                                                                GeeIterator* _a_it;
 
958
                                                                                _tmp65_ = gee_iterable_iterator ((GeeIterable*) addresses);
 
959
                                                                                _a_it = _tmp65_;
 
960
                                                                                while (TRUE) {
 
961
                                                                                        gboolean _tmp66_;
 
962
                                                                                        gpointer _tmp67_ = NULL;
 
963
                                                                                        gchar* a;
 
964
                                                                                        gchar* _tmp69_ = NULL;
 
965
                                                                                        gchar* _tmp70_;
 
966
                                                                                        gchar* _tmp71_;
 
967
                                                                                        _tmp66_ = gee_iterator_next (_a_it);
 
968
                                                                                        if (!_tmp66_) {
 
969
                                                                                                break;
 
970
                                                                                        }
 
971
                                                                                        _tmp67_ = gee_iterator_get (_a_it);
 
972
                                                                                        a = (gchar*) _tmp67_;
 
973
                                                                                        if (_first == FALSE) {
 
974
                                                                                                gchar* _tmp68_;
 
975
                                                                                                _tmp68_ = g_strconcat (output_string, ", ", NULL);
 
976
                                                                                                _g_free0 (output_string);
 
977
                                                                                                output_string = _tmp68_;
 
978
                                                                                        }
 
979
                                                                                        _tmp69_ = g_strdup_printf ("'%s'", (const gchar*) a);
 
980
                                                                                        _tmp70_ = _tmp69_;
 
981
                                                                                        _tmp71_ = g_strconcat (output_string, _tmp70_, NULL);
 
982
                                                                                        _g_free0 (output_string);
 
983
                                                                                        output_string = _tmp71_;
 
984
                                                                                        _g_free0 (_tmp70_);
 
985
                                                                                        _first = FALSE;
 
986
                                                                                        _g_free0 (a);
 
987
                                                                                }
 
988
                                                                                _g_object_unref0 (_a_it);
 
989
                                                                        }
 
990
                                                                        _tmp72_ = g_strconcat (output_string, " }", NULL);
 
991
                                                                        _g_free0 (output_string);
 
992
                                                                        output_string = _tmp72_;
 
993
                                                                        _g_object_unref0 (addresses);
 
994
                                                                        _g_free0 (web_service);
 
995
                                                                }
 
996
                                                                _g_object_unref0 (_web_service_it);
 
997
                                                        }
 
998
                                                        _tmp73_ = g_strconcat (output_string, " }", NULL);
 
999
                                                        _g_free0 (output_string);
 
1000
                                                        output_string = _tmp73_;
 
1001
                                                        result = output_string;
 
1002
                                                        _g_object_unref0 (web_service_addresses);
 
1003
                                                        return result;
 
1004
                                                } else {
 
1005
                                                        gboolean _tmp74_ = FALSE;
 
1006
                                                        gboolean _tmp75_ = FALSE;
 
1007
                                                        if (g_strcmp0 (prop_name, "email-addresses") == 0) {
 
1008
                                                                _tmp75_ = TRUE;
 
1009
                                                        } else {
 
1010
                                                                _tmp75_ = g_strcmp0 (prop_name, "phone-numbers") == 0;
 
1011
                                                        }
 
1012
                                                        if (_tmp75_) {
 
1013
                                                                _tmp74_ = TRUE;
 
1014
                                                        } else {
 
1015
                                                                _tmp74_ = g_strcmp0 (prop_name, "urls") == 0;
 
1016
                                                        }
 
1017
                                                        if (_tmp74_) {
 
1018
                                                                gchar* _tmp76_;
 
1019
                                                                gboolean first;
 
1020
                                                                GObject* _tmp77_ = NULL;
 
1021
                                                                GeeSet* _tmp78_;
 
1022
                                                                GeeSet* prop_list;
 
1023
                                                                gchar* _tmp85_;
 
1024
                                                                _tmp76_ = g_strdup ("{ ");
 
1025
                                                                _g_free0 (output_string);
 
1026
                                                                output_string = _tmp76_;
 
1027
                                                                first = TRUE;
 
1028
                                                                _tmp77_ = g_value_get_object (prop_value);
 
1029
                                                                _tmp78_ = _g_object_ref0 (GEE_SET (_tmp77_));
 
1030
                                                                prop_list = _tmp78_;
 
1031
                                                                {
 
1032
                                                                        GeeIterator* _tmp79_ = NULL;
 
1033
                                                                        GeeIterator* _p_it;
 
1034
                                                                        _tmp79_ = gee_iterable_iterator ((GeeIterable*) prop_list);
 
1035
                                                                        _p_it = _tmp79_;
 
1036
                                                                        while (TRUE) {
 
1037
                                                                                gboolean _tmp80_;
 
1038
                                                                                gpointer _tmp81_ = NULL;
 
1039
                                                                                FolksFieldDetails* p;
 
1040
                                                                                const gchar* _tmp83_ = NULL;
 
1041
                                                                                gchar* _tmp84_;
 
1042
                                                                                _tmp80_ = gee_iterator_next (_p_it);
 
1043
                                                                                if (!_tmp80_) {
 
1044
                                                                                        break;
 
1045
                                                                                }
 
1046
                                                                                _tmp81_ = gee_iterator_get (_p_it);
 
1047
                                                                                p = (FolksFieldDetails*) _tmp81_;
995
1048
                                                                                if (!first) {
996
 
                                                                                        gchar* _tmp28_;
997
 
                                                                                        _tmp28_ = g_strconcat (_data2_->output_string, ", ", NULL);
998
 
                                                                                        _g_free0 (_data2_->output_string);
999
 
                                                                                        _data2_->output_string = _tmp28_;
 
1049
                                                                                        gchar* _tmp82_;
 
1050
                                                                                        _tmp82_ = g_strconcat (output_string, ", ", NULL);
 
1051
                                                                                        _g_free0 (output_string);
 
1052
                                                                                        output_string = _tmp82_;
1000
1053
                                                                                }
1001
 
                                                                                _tmp29_ = folks_field_details_get_value (p);
1002
 
                                                                                _tmp30_ = g_strconcat (_data2_->output_string, _tmp29_, NULL);
1003
 
                                                                                _g_free0 (_data2_->output_string);
1004
 
                                                                                _data2_->output_string = _tmp30_;
 
1054
                                                                                _tmp83_ = folks_field_details_get_value (p);
 
1055
                                                                                _tmp84_ = g_strconcat (output_string, _tmp83_, NULL);
 
1056
                                                                                _g_free0 (output_string);
 
1057
                                                                                output_string = _tmp84_;
1005
1058
                                                                                first = FALSE;
1006
1059
                                                                                _g_object_unref0 (p);
1007
1060
                                                                        }
 
1061
                                                                        _g_object_unref0 (_p_it);
1008
1062
                                                                }
1009
 
                                                        }
1010
 
                                                        _tmp31_ = g_strconcat (_data2_->output_string, " }", NULL);
1011
 
                                                        _g_free0 (_data2_->output_string);
1012
 
                                                        _data2_->output_string = _tmp31_;
1013
 
                                                        _tmp32_ = g_strdup (_data2_->output_string);
1014
 
                                                        result = _tmp32_;
1015
 
                                                        block2_data_unref (_data2_);
1016
 
                                                        _data2_ = NULL;
1017
 
                                                        return result;
1018
 
                                                } else {
1019
 
                                                        if (g_strcmp0 (prop_name, "birthday") == 0) {
1020
 
                                                                void* _tmp33_ = NULL;
1021
 
                                                                GDateTime* dobj;
1022
 
                                                                _tmp33_ = g_value_get_boxed (prop_value);
1023
 
                                                                dobj = (GDateTime*) _tmp33_;
1024
 
                                                                if (dobj != NULL) {
1025
 
                                                                        gchar* _tmp34_ = NULL;
1026
 
                                                                        _tmp34_ = g_date_time_to_string (dobj);
1027
 
                                                                        result = _tmp34_;
1028
 
                                                                        block2_data_unref (_data2_);
1029
 
                                                                        _data2_ = NULL;
1030
 
                                                                        return result;
 
1063
                                                                _tmp85_ = g_strconcat (output_string, " }", NULL);
 
1064
                                                                _g_free0 (output_string);
 
1065
                                                                output_string = _tmp85_;
 
1066
                                                                result = output_string;
 
1067
                                                                _g_object_unref0 (prop_list);
 
1068
                                                                return result;
 
1069
                                                        } else {
 
1070
                                                                if (g_strcmp0 (prop_name, "birthday") == 0) {
 
1071
                                                                        void* _tmp86_ = NULL;
 
1072
                                                                        GDateTime* dobj;
 
1073
                                                                        _tmp86_ = g_value_get_boxed (prop_value);
 
1074
                                                                        dobj = (GDateTime*) _tmp86_;
 
1075
                                                                        if (dobj != NULL) {
 
1076
                                                                                gchar* _tmp87_ = NULL;
 
1077
                                                                                _tmp87_ = g_date_time_to_string (dobj);
 
1078
                                                                                result = _tmp87_;
 
1079
                                                                                _g_free0 (output_string);
 
1080
                                                                                return result;
 
1081
                                                                        } else {
 
1082
                                                                                gchar* _tmp88_;
 
1083
                                                                                _tmp88_ = g_strdup ("");
 
1084
                                                                                result = _tmp88_;
 
1085
                                                                                _g_free0 (output_string);
 
1086
                                                                                return result;
 
1087
                                                                        }
1031
1088
                                                                } else {
1032
 
                                                                        gchar* _tmp35_;
1033
 
                                                                        _tmp35_ = g_strdup ("");
1034
 
                                                                        result = _tmp35_;
1035
 
                                                                        block2_data_unref (_data2_);
1036
 
                                                                        _data2_ = NULL;
1037
 
                                                                        return result;
1038
 
                                                                }
1039
 
                                                        } else {
1040
 
                                                                if (g_strcmp0 (prop_name, "postal-addresses") == 0) {
1041
 
                                                                        gchar* _tmp36_;
1042
 
                                                                        gboolean first;
1043
 
                                                                        void* _tmp37_ = NULL;
1044
 
                                                                        GList* prop_list;
1045
 
                                                                        gchar* _tmp43_;
1046
 
                                                                        gchar* _tmp44_;
1047
 
                                                                        _tmp36_ = g_strdup ("{ ");
1048
 
                                                                        _g_free0 (_data2_->output_string);
1049
 
                                                                        _data2_->output_string = _tmp36_;
1050
 
                                                                        first = TRUE;
1051
 
                                                                        _tmp37_ = g_value_get_pointer (prop_value);
1052
 
                                                                        prop_list = (GList*) _tmp37_;
1053
 
                                                                        {
1054
 
                                                                                GList* p_collection;
1055
 
                                                                                GList* p_it;
1056
 
                                                                                p_collection = prop_list;
1057
 
                                                                                for (p_it = p_collection; p_it != NULL; p_it = p_it->next) {
1058
 
                                                                                        FolksPostalAddress* _tmp38_;
1059
 
                                                                                        FolksPostalAddress* p;
1060
 
                                                                                        _tmp38_ = _g_object_ref0 ((FolksPostalAddress*) p_it->data);
1061
 
                                                                                        p = _tmp38_;
1062
 
                                                                                        {
1063
 
                                                                                                gchar* _tmp40_ = NULL;
1064
 
                                                                                                gchar* _tmp41_;
1065
 
                                                                                                gchar* _tmp42_;
 
1089
                                                                        if (g_strcmp0 (prop_name, "postal-addresses") == 0) {
 
1090
                                                                                gchar* _tmp89_;
 
1091
                                                                                gboolean first;
 
1092
                                                                                GObject* _tmp90_ = NULL;
 
1093
                                                                                GeeSet* _tmp91_;
 
1094
                                                                                GeeSet* prop_list;
 
1095
                                                                                gchar* _tmp99_;
 
1096
                                                                                _tmp89_ = g_strdup ("{ ");
 
1097
                                                                                _g_free0 (output_string);
 
1098
                                                                                output_string = _tmp89_;
 
1099
                                                                                first = TRUE;
 
1100
                                                                                _tmp90_ = g_value_get_object (prop_value);
 
1101
                                                                                _tmp91_ = _g_object_ref0 (GEE_SET (_tmp90_));
 
1102
                                                                                prop_list = _tmp91_;
 
1103
                                                                                {
 
1104
                                                                                        GeeIterator* _tmp92_ = NULL;
 
1105
                                                                                        GeeIterator* _p_it;
 
1106
                                                                                        _tmp92_ = gee_iterable_iterator ((GeeIterable*) prop_list);
 
1107
                                                                                        _p_it = _tmp92_;
 
1108
                                                                                        while (TRUE) {
 
1109
                                                                                                gboolean _tmp93_;
 
1110
                                                                                                gpointer _tmp94_ = NULL;
 
1111
                                                                                                FolksPostalAddress* p;
 
1112
                                                                                                gchar* _tmp96_ = NULL;
 
1113
                                                                                                gchar* _tmp97_;
 
1114
                                                                                                gchar* _tmp98_;
 
1115
                                                                                                _tmp93_ = gee_iterator_next (_p_it);
 
1116
                                                                                                if (!_tmp93_) {
 
1117
                                                                                                        break;
 
1118
                                                                                                }
 
1119
                                                                                                _tmp94_ = gee_iterator_get (_p_it);
 
1120
                                                                                                p = (FolksPostalAddress*) _tmp94_;
1066
1121
                                                                                                if (!first) {
1067
 
                                                                                                        gchar* _tmp39_;
1068
 
                                                                                                        _tmp39_ = g_strconcat (_data2_->output_string, ". ", NULL);
1069
 
                                                                                                        _g_free0 (_data2_->output_string);
1070
 
                                                                                                        _data2_->output_string = _tmp39_;
 
1122
                                                                                                        gchar* _tmp95_;
 
1123
                                                                                                        _tmp95_ = g_strconcat (output_string, ". ", NULL);
 
1124
                                                                                                        _g_free0 (output_string);
 
1125
                                                                                                        output_string = _tmp95_;
1071
1126
                                                                                                }
1072
 
                                                                                                _tmp40_ = folks_postal_address_to_string (p);
1073
 
                                                                                                _tmp41_ = _tmp40_;
1074
 
                                                                                                _tmp42_ = g_strconcat (_data2_->output_string, _tmp41_, NULL);
1075
 
                                                                                                _g_free0 (_data2_->output_string);
1076
 
                                                                                                _data2_->output_string = _tmp42_;
1077
 
                                                                                                _g_free0 (_tmp41_);
 
1127
                                                                                                _tmp96_ = folks_postal_address_to_string (p);
 
1128
                                                                                                _tmp97_ = _tmp96_;
 
1129
                                                                                                _tmp98_ = g_strconcat (output_string, _tmp97_, NULL);
 
1130
                                                                                                _g_free0 (output_string);
 
1131
                                                                                                output_string = _tmp98_;
 
1132
                                                                                                _g_free0 (_tmp97_);
1078
1133
                                                                                                first = FALSE;
1079
1134
                                                                                                _g_object_unref0 (p);
1080
1135
                                                                                        }
1081
 
                                                                                }
1082
 
                                                                        }
1083
 
                                                                        _tmp43_ = g_strconcat (_data2_->output_string, " }", NULL);
1084
 
                                                                        _g_free0 (_data2_->output_string);
1085
 
                                                                        _data2_->output_string = _tmp43_;
1086
 
                                                                        _tmp44_ = g_strdup (_data2_->output_string);
1087
 
                                                                        result = _tmp44_;
1088
 
                                                                        block2_data_unref (_data2_);
1089
 
                                                                        _data2_ = NULL;
1090
 
                                                                        return result;
1091
 
                                                                } else {
1092
 
                                                                        if (g_strcmp0 (prop_name, "structured-name") == 0) {
1093
 
                                                                                GObject* _tmp45_ = NULL;
1094
 
                                                                                FolksStructuredName* sn;
1095
 
                                                                                gchar* ret;
1096
 
                                                                                _tmp45_ = g_value_get_object (prop_value);
1097
 
                                                                                sn = FOLKS_STRUCTURED_NAME (_tmp45_);
1098
 
                                                                                ret = NULL;
1099
 
                                                                                if (sn != NULL) {
1100
 
                                                                                        gchar* _tmp46_ = NULL;
1101
 
                                                                                        _tmp46_ = folks_structured_name_to_string (sn);
1102
 
                                                                                        _g_free0 (ret);
1103
 
                                                                                        ret = _tmp46_;
1104
 
                                                                                }
1105
 
                                                                                result = ret;
1106
 
                                                                                block2_data_unref (_data2_);
1107
 
                                                                                _data2_ = NULL;
 
1136
                                                                                        _g_object_unref0 (_p_it);
 
1137
                                                                                }
 
1138
                                                                                _tmp99_ = g_strconcat (output_string, " }", NULL);
 
1139
                                                                                _g_free0 (output_string);
 
1140
                                                                                output_string = _tmp99_;
 
1141
                                                                                result = output_string;
 
1142
                                                                                _g_object_unref0 (prop_list);
1108
1143
                                                                                return result;
 
1144
                                                                        } else {
 
1145
                                                                                if (g_strcmp0 (prop_name, "notes") == 0) {
 
1146
                                                                                        GObject* _tmp100_ = NULL;
 
1147
                                                                                        GeeSet* _tmp101_;
 
1148
                                                                                        GeeSet* notes;
 
1149
                                                                                        gchar* _tmp102_;
 
1150
                                                                                        gboolean first;
 
1151
                                                                                        gchar* _tmp109_;
 
1152
                                                                                        _tmp100_ = g_value_get_object (prop_value);
 
1153
                                                                                        _tmp101_ = _g_object_ref0 (GEE_SET (_tmp100_));
 
1154
                                                                                        notes = _tmp101_;
 
1155
                                                                                        _tmp102_ = g_strdup ("{ ");
 
1156
                                                                                        _g_free0 (output_string);
 
1157
                                                                                        output_string = _tmp102_;
 
1158
                                                                                        first = TRUE;
 
1159
                                                                                        {
 
1160
                                                                                                GeeIterator* _tmp103_ = NULL;
 
1161
                                                                                                GeeIterator* _note_it;
 
1162
                                                                                                _tmp103_ = gee_iterable_iterator ((GeeIterable*) notes);
 
1163
                                                                                                _note_it = _tmp103_;
 
1164
                                                                                                while (TRUE) {
 
1165
                                                                                                        gboolean _tmp104_;
 
1166
                                                                                                        gpointer _tmp105_ = NULL;
 
1167
                                                                                                        FolksNote* note;
 
1168
                                                                                                        const gchar* _tmp107_ = NULL;
 
1169
                                                                                                        gchar* _tmp108_;
 
1170
                                                                                                        _tmp104_ = gee_iterator_next (_note_it);
 
1171
                                                                                                        if (!_tmp104_) {
 
1172
                                                                                                                break;
 
1173
                                                                                                        }
 
1174
                                                                                                        _tmp105_ = gee_iterator_get (_note_it);
 
1175
                                                                                                        note = (FolksNote*) _tmp105_;
 
1176
                                                                                                        if (!first) {
 
1177
                                                                                                                gchar* _tmp106_;
 
1178
                                                                                                                _tmp106_ = g_strconcat (output_string, ", ", NULL);
 
1179
                                                                                                                _g_free0 (output_string);
 
1180
                                                                                                                output_string = _tmp106_;
 
1181
                                                                                                        }
 
1182
                                                                                                        _tmp107_ = folks_note_get_uid (note);
 
1183
                                                                                                        _tmp108_ = g_strconcat (output_string, _tmp107_, NULL);
 
1184
                                                                                                        _g_free0 (output_string);
 
1185
                                                                                                        output_string = _tmp108_;
 
1186
                                                                                                        first = FALSE;
 
1187
                                                                                                        _g_object_unref0 (note);
 
1188
                                                                                                }
 
1189
                                                                                                _g_object_unref0 (_note_it);
 
1190
                                                                                        }
 
1191
                                                                                        _tmp109_ = g_strconcat (output_string, " }", NULL);
 
1192
                                                                                        _g_free0 (output_string);
 
1193
                                                                                        output_string = _tmp109_;
 
1194
                                                                                        result = output_string;
 
1195
                                                                                        _g_object_unref0 (notes);
 
1196
                                                                                        return result;
 
1197
                                                                                } else {
 
1198
                                                                                        if (g_strcmp0 (prop_name, "roles") == 0) {
 
1199
                                                                                                GObject* _tmp110_ = NULL;
 
1200
                                                                                                GeeSet* _tmp111_;
 
1201
                                                                                                GeeSet* roles;
 
1202
                                                                                                gchar* _tmp112_;
 
1203
                                                                                                gboolean first;
 
1204
                                                                                                gchar* _tmp120_;
 
1205
                                                                                                _tmp110_ = g_value_get_object (prop_value);
 
1206
                                                                                                _tmp111_ = _g_object_ref0 (GEE_SET (_tmp110_));
 
1207
                                                                                                roles = _tmp111_;
 
1208
                                                                                                _tmp112_ = g_strdup ("{ ");
 
1209
                                                                                                _g_free0 (output_string);
 
1210
                                                                                                output_string = _tmp112_;
 
1211
                                                                                                first = TRUE;
 
1212
                                                                                                {
 
1213
                                                                                                        GeeIterator* _tmp113_ = NULL;
 
1214
                                                                                                        GeeIterator* _role_it;
 
1215
                                                                                                        _tmp113_ = gee_iterable_iterator ((GeeIterable*) roles);
 
1216
                                                                                                        _role_it = _tmp113_;
 
1217
                                                                                                        while (TRUE) {
 
1218
                                                                                                                gboolean _tmp114_;
 
1219
                                                                                                                gpointer _tmp115_ = NULL;
 
1220
                                                                                                                FolksRole* role;
 
1221
                                                                                                                gchar* _tmp117_ = NULL;
 
1222
                                                                                                                gchar* _tmp118_;
 
1223
                                                                                                                gchar* _tmp119_;
 
1224
                                                                                                                _tmp114_ = gee_iterator_next (_role_it);
 
1225
                                                                                                                if (!_tmp114_) {
 
1226
                                                                                                                        break;
 
1227
                                                                                                                }
 
1228
                                                                                                                _tmp115_ = gee_iterator_get (_role_it);
 
1229
                                                                                                                role = (FolksRole*) _tmp115_;
 
1230
                                                                                                                if (!first) {
 
1231
                                                                                                                        gchar* _tmp116_;
 
1232
                                                                                                                        _tmp116_ = g_strconcat (output_string, ", ", NULL);
 
1233
                                                                                                                        _g_free0 (output_string);
 
1234
                                                                                                                        output_string = _tmp116_;
 
1235
                                                                                                                }
 
1236
                                                                                                                _tmp117_ = folks_role_to_string (role);
 
1237
                                                                                                                _tmp118_ = _tmp117_;
 
1238
                                                                                                                _tmp119_ = g_strconcat (output_string, _tmp118_, NULL);
 
1239
                                                                                                                _g_free0 (output_string);
 
1240
                                                                                                                output_string = _tmp119_;
 
1241
                                                                                                                _g_free0 (_tmp118_);
 
1242
                                                                                                                first = FALSE;
 
1243
                                                                                                                _g_object_unref0 (role);
 
1244
                                                                                                        }
 
1245
                                                                                                        _g_object_unref0 (_role_it);
 
1246
                                                                                                }
 
1247
                                                                                                _tmp120_ = g_strconcat (output_string, " }", NULL);
 
1248
                                                                                                _g_free0 (output_string);
 
1249
                                                                                                output_string = _tmp120_;
 
1250
                                                                                                result = output_string;
 
1251
                                                                                                _g_object_unref0 (roles);
 
1252
                                                                                                return result;
 
1253
                                                                                        } else {
 
1254
                                                                                                if (g_strcmp0 (prop_name, "structured-name") == 0) {
 
1255
                                                                                                        GObject* _tmp121_ = NULL;
 
1256
                                                                                                        FolksStructuredName* sn;
 
1257
                                                                                                        gchar* ret;
 
1258
                                                                                                        _tmp121_ = g_value_get_object (prop_value);
 
1259
                                                                                                        sn = FOLKS_STRUCTURED_NAME (_tmp121_);
 
1260
                                                                                                        ret = NULL;
 
1261
                                                                                                        if (sn != NULL) {
 
1262
                                                                                                                gchar* _tmp122_ = NULL;
 
1263
                                                                                                                _tmp122_ = folks_structured_name_to_string (sn);
 
1264
                                                                                                                _g_free0 (ret);
 
1265
                                                                                                                ret = _tmp122_;
 
1266
                                                                                                        }
 
1267
                                                                                                        result = ret;
 
1268
                                                                                                        _g_free0 (output_string);
 
1269
                                                                                                        return result;
 
1270
                                                                                                }
 
1271
                                                                                        }
 
1272
                                                                                }
1109
1273
                                                                        }
1110
1274
                                                                }
1111
1275
                                                        }
1115
1279
                        }
1116
1280
                }
1117
1281
        }
1118
 
        _tmp47_ = folks_inspect_utils_transform_value_to_string (prop_value);
1119
 
        result = _tmp47_;
1120
 
        block2_data_unref (_data2_);
1121
 
        _data2_ = NULL;
 
1282
        _tmp123_ = folks_inspect_utils_transform_value_to_string (prop_value);
 
1283
        result = _tmp123_;
 
1284
        _g_free0 (output_string);
1122
1285
        return result;
1123
1286
}
1124
1287
 
1189
1352
}
1190
1353
 
1191
1354
 
1192
 
static GHashTableIter* _g_hash_table_iter_dup (GHashTableIter* self) {
1193
 
        GHashTableIter* dup;
1194
 
        dup = g_new0 (GHashTableIter, 1);
1195
 
        memcpy (dup, self, sizeof (GHashTableIter));
1196
 
        return dup;
1197
 
}
1198
 
 
1199
 
 
1200
 
static gpointer __g_hash_table_iter_dup0 (gpointer self) {
1201
 
        return self ? _g_hash_table_iter_dup (self) : NULL;
1202
 
}
1203
 
 
1204
 
 
1205
1355
gchar* folks_inspect_utils_individual_id_completion_cb (const gchar* word, gint state) {
1206
1356
        gchar* result = NULL;
1207
 
        gchar* id = NULL;
1208
 
        FolksIndividual* individual = NULL;
1209
1357
        g_return_val_if_fail (word != NULL, NULL);
1210
1358
        if (state == 0) {
1211
1359
                FolksIndividualAggregator* _tmp0_ = NULL;
1212
 
                GHashTable* _tmp1_ = NULL;
1213
 
                GHashTableIter _tmp2_ = {0};
1214
 
                GHashTableIter _tmp3_ = {0};
1215
 
                GHashTableIter* _tmp4_;
 
1360
                GeeMap* _tmp1_ = NULL;
 
1361
                GeeMapIterator* _tmp2_ = NULL;
1216
1362
                _tmp0_ = folks_inspect_client_get_aggregator (main_client);
1217
1363
                _tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
1218
 
                g_hash_table_iter_init (&_tmp2_, _tmp1_);
1219
 
                _tmp3_ = _tmp2_;
1220
 
                _tmp4_ = __g_hash_table_iter_dup0 (&_tmp3_);
1221
 
                _g_free0 (folks_inspect_utils_individual_id_iter);
1222
 
                folks_inspect_utils_individual_id_iter = _tmp4_;
 
1364
                _tmp2_ = gee_map_map_iterator (_tmp1_);
 
1365
                _g_object_unref0 (folks_inspect_utils_individual_id_iter);
 
1366
                folks_inspect_utils_individual_id_iter = _tmp2_;
1223
1367
        }
1224
1368
        while (TRUE) {
1225
 
                gconstpointer _tmp5_ = NULL;
1226
 
                gconstpointer _tmp6_ = NULL;
1227
 
                gboolean _tmp7_;
1228
 
                gchar* _tmp8_;
1229
 
                FolksIndividual* _tmp9_;
1230
 
                gboolean _tmp10_;
1231
 
                _tmp7_ = g_hash_table_iter_next (folks_inspect_utils_individual_id_iter, &_tmp5_, &_tmp6_);
1232
 
                _g_free0 (id);
1233
 
                _tmp8_ = g_strdup (_tmp5_);
1234
 
                id = _tmp8_;
1235
 
                _g_object_unref0 (individual);
1236
 
                _tmp9_ = _g_object_ref0 (_tmp6_);
1237
 
                individual = _tmp9_;
1238
 
                if (!(_tmp7_ == TRUE)) {
 
1369
                gboolean _tmp3_;
 
1370
                gpointer _tmp4_ = NULL;
 
1371
                gchar* id;
 
1372
                gboolean _tmp5_;
 
1373
                _tmp3_ = gee_map_iterator_next (folks_inspect_utils_individual_id_iter);
 
1374
                if (!(_tmp3_ == TRUE)) {
1239
1375
                        break;
1240
1376
                }
1241
 
                _tmp10_ = g_str_has_prefix (id, word);
1242
 
                if (_tmp10_) {
 
1377
                _tmp4_ = gee_map_iterator_get_key (folks_inspect_utils_individual_id_iter);
 
1378
                id = (gchar*) _tmp4_;
 
1379
                _tmp5_ = g_str_has_prefix (id, word);
 
1380
                if (_tmp5_) {
1243
1381
                        result = id;
1244
 
                        _g_object_unref0 (individual);
1245
1382
                        return result;
1246
1383
                }
 
1384
                _g_free0 (id);
1247
1385
        }
1248
 
        _g_free0 (folks_inspect_utils_individual_id_iter);
 
1386
        _g_object_unref0 (folks_inspect_utils_individual_id_iter);
1249
1387
        folks_inspect_utils_individual_id_iter = NULL;
1250
1388
        result = NULL;
1251
 
        _g_object_unref0 (individual);
1252
 
        _g_free0 (id);
1253
1389
        return result;
1254
1390
}
1255
1391
 
1256
1392
 
1257
1393
gchar* folks_inspect_utils_persona_uid_completion_cb (const gchar* word, gint state) {
1258
1394
        gchar* result = NULL;
1259
 
        FolksIndividual* individual;
1260
1395
        g_return_val_if_fail (word != NULL, NULL);
1261
1396
        if (state == 0) {
1262
1397
                FolksIndividualAggregator* _tmp0_ = NULL;
1263
 
                GHashTable* _tmp1_ = NULL;
1264
 
                GHashTableIter _tmp2_ = {0};
1265
 
                GHashTableIter _tmp3_ = {0};
1266
 
                GHashTableIter* _tmp4_;
 
1398
                GeeMap* _tmp1_ = NULL;
 
1399
                GeeMapIterator* _tmp2_ = NULL;
1267
1400
                _tmp0_ = folks_inspect_client_get_aggregator (main_client);
1268
1401
                _tmp1_ = folks_individual_aggregator_get_individuals (_tmp0_);
1269
 
                g_hash_table_iter_init (&_tmp2_, _tmp1_);
1270
 
                _tmp3_ = _tmp2_;
1271
 
                _tmp4_ = __g_hash_table_iter_dup0 (&_tmp3_);
1272
 
                _g_free0 (folks_inspect_utils_individual_id_iter);
1273
 
                folks_inspect_utils_individual_id_iter = _tmp4_;
 
1402
                _tmp2_ = gee_map_map_iterator (_tmp1_);
 
1403
                _g_object_unref0 (folks_inspect_utils_individual_id_iter);
 
1404
                folks_inspect_utils_individual_id_iter = _tmp2_;
 
1405
                _g_object_unref0 (folks_inspect_utils_persona_uid_iter);
1274
1406
                folks_inspect_utils_persona_uid_iter = NULL;
1275
1407
        }
1276
 
        individual = NULL;
1277
1408
        while (TRUE) {
1278
 
                gboolean _tmp5_ = FALSE;
 
1409
                gboolean _tmp3_ = FALSE;
 
1410
                gpointer _tmp5_ = NULL;
 
1411
                FolksIndividual* individual;
1279
1412
                if (folks_inspect_utils_persona_uid_iter != NULL) {
1280
 
                        _tmp5_ = TRUE;
 
1413
                        _tmp3_ = TRUE;
1281
1414
                } else {
1282
 
                        gconstpointer _tmp6_ = NULL;
1283
 
                        gboolean _tmp7_;
1284
 
                        FolksIndividual* _tmp8_;
1285
 
                        _tmp7_ = g_hash_table_iter_next (folks_inspect_utils_individual_id_iter, NULL, &_tmp6_);
1286
 
                        _g_object_unref0 (individual);
1287
 
                        _tmp8_ = _g_object_ref0 (_tmp6_);
1288
 
                        individual = _tmp8_;
1289
 
                        _tmp5_ = _tmp7_ == TRUE;
 
1415
                        gboolean _tmp4_;
 
1416
                        _tmp4_ = gee_map_iterator_next (folks_inspect_utils_individual_id_iter);
 
1417
                        _tmp3_ = _tmp4_ == TRUE;
1290
1418
                }
1291
 
                if (!_tmp5_) {
 
1419
                if (!_tmp3_) {
1292
1420
                        break;
1293
1421
                }
 
1422
                _tmp5_ = gee_map_iterator_get_value (folks_inspect_utils_individual_id_iter);
 
1423
                individual = (FolksIndividual*) _tmp5_;
1294
1424
                if (folks_inspect_utils_persona_uid_iter == NULL) {
1295
 
                        GList* _tmp9_ = NULL;
 
1425
                        GeeSet* _tmp6_ = NULL;
 
1426
                        GeeIterator* _tmp7_ = NULL;
1296
1427
                        g_assert (individual != NULL);
1297
 
                        _tmp9_ = folks_individual_get_personas (individual);
1298
 
                        folks_inspect_utils_persona_uid_iter = _tmp9_;
 
1428
                        _tmp6_ = folks_individual_get_personas (individual);
 
1429
                        _tmp7_ = gee_iterable_iterator ((GeeIterable*) _tmp6_);
 
1430
                        _g_object_unref0 (folks_inspect_utils_persona_uid_iter);
 
1431
                        folks_inspect_utils_persona_uid_iter = _tmp7_;
1299
1432
                }
1300
1433
                while (TRUE) {
 
1434
                        gboolean _tmp8_;
 
1435
                        gpointer _tmp9_ = NULL;
1301
1436
                        FolksPersona* persona;
1302
1437
                        const gchar* _tmp10_ = NULL;
1303
1438
                        gboolean _tmp11_;
1304
 
                        if (!(folks_inspect_utils_persona_uid_iter != NULL)) {
 
1439
                        _tmp8_ = gee_iterator_next (folks_inspect_utils_persona_uid_iter);
 
1440
                        if (!_tmp8_) {
1305
1441
                                break;
1306
1442
                        }
1307
 
                        persona = FOLKS_PERSONA ((FolksPersona*) folks_inspect_utils_persona_uid_iter->data);
1308
 
                        folks_inspect_utils_persona_uid_iter = folks_inspect_utils_persona_uid_iter->next;
 
1443
                        _tmp9_ = gee_iterator_get (folks_inspect_utils_persona_uid_iter);
 
1444
                        persona = (FolksPersona*) _tmp9_;
1309
1445
                        _tmp10_ = folks_persona_get_uid (persona);
1310
1446
                        _tmp11_ = g_str_has_prefix (_tmp10_, word);
1311
1447
                        if (_tmp11_) {
1314
1450
                                _tmp12_ = folks_persona_get_uid (persona);
1315
1451
                                _tmp13_ = g_strdup (_tmp12_);
1316
1452
                                result = _tmp13_;
 
1453
                                _g_object_unref0 (persona);
1317
1454
                                _g_object_unref0 (individual);
1318
1455
                                return result;
1319
1456
                        }
 
1457
                        _g_object_unref0 (persona);
1320
1458
                }
 
1459
                _g_object_unref0 (folks_inspect_utils_persona_uid_iter);
 
1460
                folks_inspect_utils_persona_uid_iter = NULL;
 
1461
                _g_object_unref0 (individual);
1321
1462
        }
1322
 
        _g_free0 (folks_inspect_utils_individual_id_iter);
 
1463
        _g_object_unref0 (folks_inspect_utils_individual_id_iter);
1323
1464
        folks_inspect_utils_individual_id_iter = NULL;
1324
1465
        result = NULL;
1325
 
        _g_object_unref0 (individual);
1326
1466
        return result;
1327
1467
}
1328
1468
 
1390
1530
                _g_object_unref0 (folks_inspect_utils_backend_name_iter);
1391
1531
                folks_inspect_utils_backend_name_iter = _tmp3_;
1392
1532
                _g_object_unref0 (_tmp2_);
1393
 
                _g_free0 (folks_inspect_utils_persona_store_id_iter);
 
1533
                _g_object_unref0 (folks_inspect_utils_persona_store_id_iter);
1394
1534
                folks_inspect_utils_persona_store_id_iter = NULL;
1395
1535
        }
1396
1536
        while (TRUE) {
1397
1537
                gboolean _tmp4_ = FALSE;
1398
 
                gchar* id = NULL;
1399
 
                FolksPersonaStore* store = NULL;
1400
1538
                if (folks_inspect_utils_persona_store_id_iter != NULL) {
1401
1539
                        _tmp4_ = TRUE;
1402
1540
                } else {
1410
1548
                if (folks_inspect_utils_persona_store_id_iter == NULL) {
1411
1549
                        gpointer _tmp6_ = NULL;
1412
1550
                        FolksBackend* backend;
1413
 
                        GHashTable* _tmp7_ = NULL;
1414
 
                        GHashTableIter _tmp8_ = {0};
1415
 
                        GHashTableIter _tmp9_ = {0};
1416
 
                        GHashTableIter* _tmp10_;
 
1551
                        GeeMap* _tmp7_ = NULL;
 
1552
                        GeeMapIterator* _tmp8_ = NULL;
1417
1553
                        _tmp6_ = gee_iterator_get (folks_inspect_utils_backend_name_iter);
1418
1554
                        backend = (FolksBackend*) _tmp6_;
1419
1555
                        _tmp7_ = folks_backend_get_persona_stores (backend);
1420
 
                        g_hash_table_iter_init (&_tmp8_, _tmp7_);
1421
 
                        _tmp9_ = _tmp8_;
1422
 
                        _tmp10_ = __g_hash_table_iter_dup0 (&_tmp9_);
1423
 
                        _g_free0 (folks_inspect_utils_persona_store_id_iter);
1424
 
                        folks_inspect_utils_persona_store_id_iter = _tmp10_;
 
1556
                        _tmp8_ = gee_map_map_iterator (_tmp7_);
 
1557
                        _g_object_unref0 (folks_inspect_utils_persona_store_id_iter);
 
1558
                        folks_inspect_utils_persona_store_id_iter = _tmp8_;
1425
1559
                        _g_object_unref0 (backend);
1426
1560
                }
1427
1561
                while (TRUE) {
1428
 
                        gconstpointer _tmp11_ = NULL;
1429
 
                        gconstpointer _tmp12_ = NULL;
1430
 
                        gboolean _tmp13_;
1431
 
                        gchar* _tmp14_;
1432
 
                        FolksPersonaStore* _tmp15_;
1433
 
                        gboolean _tmp16_;
1434
 
                        _tmp13_ = g_hash_table_iter_next (folks_inspect_utils_persona_store_id_iter, &_tmp11_, &_tmp12_);
 
1562
                        gboolean _tmp9_;
 
1563
                        gpointer _tmp10_ = NULL;
 
1564
                        gchar* id;
 
1565
                        gboolean _tmp11_;
 
1566
                        _tmp9_ = gee_map_iterator_next (folks_inspect_utils_persona_store_id_iter);
 
1567
                        if (!(_tmp9_ == TRUE)) {
 
1568
                                break;
 
1569
                        }
 
1570
                        _tmp10_ = gee_map_iterator_get_key (folks_inspect_utils_persona_store_id_iter);
 
1571
                        id = (gchar*) _tmp10_;
 
1572
                        _tmp11_ = g_str_has_prefix (id, word);
 
1573
                        if (_tmp11_) {
 
1574
                                result = id;
 
1575
                                return result;
 
1576
                        }
1435
1577
                        _g_free0 (id);
1436
 
                        _tmp14_ = g_strdup (_tmp11_);
1437
 
                        id = _tmp14_;
1438
 
                        _g_object_unref0 (store);
1439
 
                        _tmp15_ = _g_object_ref0 (_tmp12_);
1440
 
                        store = _tmp15_;
1441
 
                        if (!(_tmp13_ == TRUE)) {
1442
 
                                break;
1443
 
                        }
1444
 
                        _tmp16_ = g_str_has_prefix (id, word);
1445
 
                        if (_tmp16_) {
1446
 
                                result = id;
1447
 
                                _g_object_unref0 (store);
1448
 
                                return result;
1449
 
                        }
1450
1578
                }
1451
 
                _g_free0 (folks_inspect_utils_persona_store_id_iter);
 
1579
                _g_object_unref0 (folks_inspect_utils_persona_store_id_iter);
1452
1580
                folks_inspect_utils_persona_store_id_iter = NULL;
1453
 
                _g_object_unref0 (store);
1454
 
                _g_free0 (id);
1455
1581
        }
1456
1582
        _g_object_unref0 (folks_inspect_utils_backend_name_iter);
1457
1583
        folks_inspect_utils_backend_name_iter = NULL;