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);
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_);
615
_tmp18_ = gee_iterable_iterator ((GeeIterable*) _tmp17_);
617
_g_object_unref0 (_tmp17_);
618
_persona_it = _tmp19_;
621
gpointer _tmp21_ = NULL;
622
FolksPersona* persona;
623
_tmp20_ = gee_iterator_next (_persona_it);
627
_tmp21_ = gee_iterator_get (_persona_it);
628
persona = (FolksPersona*) _tmp21_;
629
folks_inspect_utils_print_persona (persona);
630
_g_object_unref0 (persona);
632
_g_object_unref0 (_persona_it);
649
634
folks_inspect_utils_unindent ();
651
636
folks_inspect_utils_unindent ();
655
static Block2Data* block2_data_ref (Block2Data* _data2_) {
656
g_atomic_int_inc (&_data2_->_ref_count_);
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_);
669
static Block3Data* block3_data_ref (Block3Data* _data3_) {
670
g_atomic_int_inc (&_data3_->_ref_count_);
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_);
684
static gpointer _g_hash_table_ref0 (gpointer self) {
685
return self ? g_hash_table_ref (self) : NULL;
689
static void _lambda0_ (const gchar* k, gboolean v, Block3Data* _data3_) {
691
_data2_ = _data3_->_data2_;
692
g_return_if_fail (k != NULL);
693
if (((gboolean) v) == TRUE) {
694
gchar* _tmp1_ = NULL;
697
if (_data3_->first == FALSE) {
699
_tmp0_ = g_strconcat (_data2_->output_string, ", ", NULL);
700
_g_free0 (_data2_->output_string);
701
_data2_->output_string = _tmp0_;
703
_tmp1_ = g_strdup_printf ("'%s'", (const gchar*) k);
705
_tmp3_ = g_strconcat (_data2_->output_string, _tmp2_, NULL);
706
_g_free0 (_data2_->output_string);
707
_data2_->output_string = _tmp3_;
709
_data3_->first = FALSE;
714
static void __lambda0__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
715
_lambda0_ (key, value, self);
719
static Block4Data* block4_data_ref (Block4Data* _data4_) {
720
g_atomic_int_inc (&_data4_->_ref_count_);
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_);
734
static void _lambda1_ (const gchar* k, FolksLinkedHashSet* v, Block4Data* _data4_) {
736
gchar* _tmp1_ = NULL;
739
FolksLinkedHashSet* _tmp4_;
740
FolksLinkedHashSet* addresses;
743
_data2_ = _data4_->_data2_;
744
g_return_if_fail (k != NULL);
745
g_return_if_fail (v != NULL);
746
if (_data4_->first == FALSE) {
748
_tmp0_ = g_strconcat (_data2_->output_string, ", ", NULL);
749
_g_free0 (_data2_->output_string);
750
_data2_->output_string = _tmp0_;
752
_tmp1_ = g_strdup_printf ("'%s' : { ", (const gchar*) k);
754
_tmp3_ = g_strconcat (_data2_->output_string, _tmp2_, NULL);
755
_g_free0 (_data2_->output_string);
756
_data2_->output_string = _tmp3_;
758
_data4_->first = FALSE;
759
_tmp4_ = _g_object_ref0 (FOLKS_LINKED_HASH_SET (v));
763
FolksLinkedHashSet* _tmp5_;
764
FolksLinkedHashSet* _a_list;
768
_tmp5_ = _g_object_ref0 (addresses);
770
_tmp6_ = gee_collection_get_size ((GeeCollection*) _a_list);
774
gpointer _tmp7_ = NULL;
776
gchar* _tmp9_ = NULL;
779
_a_index = _a_index + 1;
780
if (!(_a_index < _a_size)) {
783
_tmp7_ = gee_abstract_list_get ((GeeAbstractList*) _a_list, _a_index);
785
if (_first == FALSE) {
787
_tmp8_ = g_strconcat (_data2_->output_string, ", ", NULL);
788
_g_free0 (_data2_->output_string);
789
_data2_->output_string = _tmp8_;
791
_tmp9_ = g_strdup_printf ("'%s'", (const gchar*) a);
793
_tmp11_ = g_strconcat (_data2_->output_string, _tmp10_, NULL);
794
_g_free0 (_data2_->output_string);
795
_data2_->output_string = _tmp11_;
800
_g_object_unref0 (_a_list);
802
_tmp12_ = g_strconcat (_data2_->output_string, " }", NULL);
803
_g_free0 (_data2_->output_string);
804
_data2_->output_string = _tmp12_;
805
_g_object_unref0 (addresses);
809
static void __lambda1__gh_func (gconstpointer key, gconstpointer value, gpointer self) {
810
_lambda1_ (key, value, self);
814
640
static gchar* g_date_time_to_string (GDateTime* self) {
815
641
gchar* result = NULL;
816
642
gchar* _tmp0_ = NULL;
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_);
849
block2_data_unref (_data2_);
664
GObject* _tmp2_ = NULL;
668
gchar* _tmp5_ = NULL;
669
_tmp2_ = g_value_get_object (prop_value);
670
_tmp3_ = _g_object_ref0 (GEE_SET (_tmp2_));
672
_tmp4_ = gee_collection_get_size ((GeeCollection*) personas);
673
_tmp5_ = g_strdup_printf ("List of %u personas", (guint) _tmp4_);
675
_g_object_unref0 (personas);
676
_g_free0 (output_string);
853
gboolean _tmp5_ = FALSE;
855
_tmp6_ = g_type_is_a (object_type, FOLKS_TYPE_PERSONA_STORE);
679
gboolean _tmp6_ = FALSE;
681
_tmp7_ = g_type_is_a (object_type, FOLKS_TYPE_PERSONA_STORE);
683
_tmp6_ = g_strcmp0 (prop_name, "personas") == 0;
857
_tmp5_ = g_strcmp0 (prop_name, "personas") == 0;
863
GHashTable* personas;
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_);
871
block2_data_unref (_data2_);
688
GObject* _tmp8_ = NULL;
692
gchar* _tmp11_ = NULL;
693
_tmp8_ = g_value_get_object (prop_value);
694
_tmp9_ = _g_object_ref0 (GEE_MAP (_tmp8_));
696
_tmp10_ = gee_map_get_size (personas);
697
_tmp11_ = g_strdup_printf ("Set of %u personas", (guint) _tmp10_);
699
_g_object_unref0 (personas);
700
_g_free0 (output_string);
703
gboolean _tmp12_ = FALSE;
875
704
if (g_strcmp0 (prop_name, "groups") == 0) {
877
void* _tmp10_ = NULL;
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_);
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);
899
_g_hash_table_unref0 (groups);
900
block3_data_unref (_data3_);
902
block2_data_unref (_data2_);
707
_tmp12_ = g_strcmp0 (prop_name, "local-ids") == 0;
710
GObject* _tmp13_ = NULL;
716
_tmp13_ = g_value_get_object (prop_value);
717
_tmp14_ = _g_object_ref0 (GEE_SET (_tmp13_));
719
_tmp15_ = g_strdup ("{ ");
720
_g_free0 (output_string);
721
output_string = _tmp15_;
724
GeeIterator* _tmp16_ = NULL;
725
GeeIterator* _group_it;
726
_tmp16_ = gee_iterable_iterator ((GeeIterable*) groups);
730
gpointer _tmp18_ = NULL;
732
gchar* _tmp20_ = NULL;
735
_tmp17_ = gee_iterator_next (_group_it);
739
_tmp18_ = gee_iterator_get (_group_it);
740
group = (gchar*) _tmp18_;
741
if (first == FALSE) {
743
_tmp19_ = g_strconcat (output_string, ", ", NULL);
744
_g_free0 (output_string);
745
output_string = _tmp19_;
747
_tmp20_ = g_strdup_printf ("'%s'", group);
749
_tmp22_ = g_strconcat (output_string, _tmp21_, NULL);
750
_g_free0 (output_string);
751
output_string = _tmp22_;
756
_g_object_unref0 (_group_it);
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);
906
765
if (g_strcmp0 (prop_name, "avatar") == 0) {
908
GObject* _tmp15_ = NULL;
767
GObject* _tmp24_ = NULL;
912
_tmp15_ = g_value_get_object (prop_value);
913
_tmp16_ = _g_object_ref0 (G_FILE (_tmp15_));
771
_tmp24_ = g_value_get_object (prop_value);
772
_tmp25_ = _g_object_ref0 (G_FILE (_tmp24_));
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);
922
781
_g_object_unref0 (avatar);
923
block2_data_unref (_data2_);
782
_g_free0 (output_string);
927
785
if (g_strcmp0 (prop_name, "im-addresses") == 0) {
929
void* _tmp18_ = NULL;
931
GHashTable* im_addresses;
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);
951
_g_hash_table_unref0 (im_addresses);
952
block4_data_unref (_data4_);
954
block2_data_unref (_data2_);
786
GObject* _tmp27_ = NULL;
787
GeeMultiMap* _tmp28_;
788
GeeMultiMap* im_addresses;
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_;
800
GeeSet* _tmp30_ = NULL;
802
GeeIterator* _tmp32_ = NULL;
803
GeeIterator* _tmp33_;
804
GeeIterator* _protocol_it;
805
_tmp30_ = gee_multi_map_get_keys (im_addresses);
807
_tmp32_ = gee_iterable_iterator ((GeeIterable*) _tmp31_);
809
_g_object_unref0 (_tmp31_);
810
_protocol_it = _tmp33_;
813
gpointer _tmp35_ = NULL;
815
gchar* _tmp37_ = NULL;
818
GeeCollection* _tmp40_ = NULL;
819
GeeCollection* addresses;
822
_tmp34_ = gee_iterator_next (_protocol_it);
826
_tmp35_ = gee_iterator_get (_protocol_it);
827
protocol = (gchar*) _tmp35_;
828
if (first == FALSE) {
830
_tmp36_ = g_strconcat (output_string, ", ", NULL);
831
_g_free0 (output_string);
832
output_string = _tmp36_;
834
_tmp37_ = g_strdup_printf ("'%s' : { ", protocol);
836
_tmp39_ = g_strconcat (output_string, _tmp38_, NULL);
837
_g_free0 (output_string);
838
output_string = _tmp39_;
841
_tmp40_ = gee_multi_map_get (im_addresses, protocol);
845
GeeIterator* _tmp41_ = NULL;
847
_tmp41_ = gee_iterable_iterator ((GeeIterable*) addresses);
851
gpointer _tmp43_ = NULL;
853
gchar* _tmp45_ = NULL;
856
_tmp42_ = gee_iterator_next (_a_it);
860
_tmp43_ = gee_iterator_get (_a_it);
861
a = (gchar*) _tmp43_;
862
if (_first == FALSE) {
864
_tmp44_ = g_strconcat (output_string, ", ", NULL);
865
_g_free0 (output_string);
866
output_string = _tmp44_;
868
_tmp45_ = g_strdup_printf ("'%s'", (const gchar*) a);
870
_tmp47_ = g_strconcat (output_string, _tmp46_, NULL);
871
_g_free0 (output_string);
872
output_string = _tmp47_;
877
_g_object_unref0 (_a_it);
879
_tmp48_ = g_strconcat (output_string, " }", NULL);
880
_g_free0 (output_string);
881
output_string = _tmp48_;
882
_g_object_unref0 (addresses);
885
_g_object_unref0 (_protocol_it);
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);
958
gboolean _tmp23_ = FALSE;
959
gboolean _tmp24_ = FALSE;
960
if (g_strcmp0 (prop_name, "email-addresses") == 0) {
963
_tmp24_ = g_strcmp0 (prop_name, "urls") == 0;
968
_tmp23_ = g_strcmp0 (prop_name, "phone-numbers") == 0;
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;
973
void* _tmp26_ = NULL;
977
_tmp25_ = g_strdup ("{ ");
978
_g_free0 (_data2_->output_string);
979
_data2_->output_string = _tmp25_;
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_;
981
_tmp26_ = g_value_get_pointer (prop_value);
982
prop_list = (GList*) _tmp26_;
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);
911
GeeSet* _tmp54_ = NULL;
913
GeeIterator* _tmp56_ = NULL;
914
GeeIterator* _tmp57_;
915
GeeIterator* _web_service_it;
916
_tmp54_ = gee_multi_map_get_keys (web_service_addresses);
918
_tmp56_ = gee_iterable_iterator ((GeeIterable*) _tmp55_);
920
_g_object_unref0 (_tmp55_);
921
_web_service_it = _tmp57_;
924
gpointer _tmp59_ = NULL;
926
gchar* _tmp61_ = NULL;
929
GeeCollection* _tmp64_ = NULL;
930
GeeCollection* addresses;
933
_tmp58_ = gee_iterator_next (_web_service_it);
937
_tmp59_ = gee_iterator_get (_web_service_it);
938
web_service = (gchar*) _tmp59_;
939
if (first == FALSE) {
941
_tmp60_ = g_strconcat (output_string, ", ", NULL);
942
_g_free0 (output_string);
943
output_string = _tmp60_;
945
_tmp61_ = g_strdup_printf ("'%s' : { ", web_service);
947
_tmp63_ = g_strconcat (output_string, _tmp62_, NULL);
948
_g_free0 (output_string);
949
output_string = _tmp63_;
952
_tmp64_ = gee_multi_map_get (web_service_addresses, web_service);
993
const gchar* _tmp29_ = NULL;
956
GeeIterator* _tmp65_ = NULL;
958
_tmp65_ = gee_iterable_iterator ((GeeIterable*) addresses);
962
gpointer _tmp67_ = NULL;
964
gchar* _tmp69_ = NULL;
967
_tmp66_ = gee_iterator_next (_a_it);
971
_tmp67_ = gee_iterator_get (_a_it);
972
a = (gchar*) _tmp67_;
973
if (_first == FALSE) {
975
_tmp68_ = g_strconcat (output_string, ", ", NULL);
976
_g_free0 (output_string);
977
output_string = _tmp68_;
979
_tmp69_ = g_strdup_printf ("'%s'", (const gchar*) a);
981
_tmp71_ = g_strconcat (output_string, _tmp70_, NULL);
982
_g_free0 (output_string);
983
output_string = _tmp71_;
988
_g_object_unref0 (_a_it);
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);
996
_g_object_unref0 (_web_service_it);
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);
1005
gboolean _tmp74_ = FALSE;
1006
gboolean _tmp75_ = FALSE;
1007
if (g_strcmp0 (prop_name, "email-addresses") == 0) {
1010
_tmp75_ = g_strcmp0 (prop_name, "phone-numbers") == 0;
1015
_tmp74_ = g_strcmp0 (prop_name, "urls") == 0;
1020
GObject* _tmp77_ = NULL;
1024
_tmp76_ = g_strdup ("{ ");
1025
_g_free0 (output_string);
1026
output_string = _tmp76_;
1028
_tmp77_ = g_value_get_object (prop_value);
1029
_tmp78_ = _g_object_ref0 (GEE_SET (_tmp77_));
1030
prop_list = _tmp78_;
1032
GeeIterator* _tmp79_ = NULL;
1034
_tmp79_ = gee_iterable_iterator ((GeeIterable*) prop_list);
1038
gpointer _tmp81_ = NULL;
1039
FolksFieldDetails* p;
1040
const gchar* _tmp83_ = NULL;
1042
_tmp80_ = gee_iterator_next (_p_it);
1046
_tmp81_ = gee_iterator_get (_p_it);
1047
p = (FolksFieldDetails*) _tmp81_;
997
_tmp28_ = g_strconcat (_data2_->output_string, ", ", NULL);
998
_g_free0 (_data2_->output_string);
999
_data2_->output_string = _tmp28_;
1050
_tmp82_ = g_strconcat (output_string, ", ", NULL);
1051
_g_free0 (output_string);
1052
output_string = _tmp82_;
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_;
1006
1059
_g_object_unref0 (p);
1061
_g_object_unref0 (_p_it);
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);
1015
block2_data_unref (_data2_);
1019
if (g_strcmp0 (prop_name, "birthday") == 0) {
1020
void* _tmp33_ = NULL;
1022
_tmp33_ = g_value_get_boxed (prop_value);
1023
dobj = (GDateTime*) _tmp33_;
1025
gchar* _tmp34_ = NULL;
1026
_tmp34_ = g_date_time_to_string (dobj);
1028
block2_data_unref (_data2_);
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);
1070
if (g_strcmp0 (prop_name, "birthday") == 0) {
1071
void* _tmp86_ = NULL;
1073
_tmp86_ = g_value_get_boxed (prop_value);
1074
dobj = (GDateTime*) _tmp86_;
1076
gchar* _tmp87_ = NULL;
1077
_tmp87_ = g_date_time_to_string (dobj);
1079
_g_free0 (output_string);
1083
_tmp88_ = g_strdup ("");
1085
_g_free0 (output_string);
1033
_tmp35_ = g_strdup ("");
1035
block2_data_unref (_data2_);
1040
if (g_strcmp0 (prop_name, "postal-addresses") == 0) {
1043
void* _tmp37_ = NULL;
1047
_tmp36_ = g_strdup ("{ ");
1048
_g_free0 (_data2_->output_string);
1049
_data2_->output_string = _tmp36_;
1051
_tmp37_ = g_value_get_pointer (prop_value);
1052
prop_list = (GList*) _tmp37_;
1054
GList* p_collection;
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);
1063
gchar* _tmp40_ = NULL;
1089
if (g_strcmp0 (prop_name, "postal-addresses") == 0) {
1092
GObject* _tmp90_ = NULL;
1096
_tmp89_ = g_strdup ("{ ");
1097
_g_free0 (output_string);
1098
output_string = _tmp89_;
1100
_tmp90_ = g_value_get_object (prop_value);
1101
_tmp91_ = _g_object_ref0 (GEE_SET (_tmp90_));
1102
prop_list = _tmp91_;
1104
GeeIterator* _tmp92_ = NULL;
1106
_tmp92_ = gee_iterable_iterator ((GeeIterable*) prop_list);
1110
gpointer _tmp94_ = NULL;
1111
FolksPostalAddress* p;
1112
gchar* _tmp96_ = NULL;
1115
_tmp93_ = gee_iterator_next (_p_it);
1119
_tmp94_ = gee_iterator_get (_p_it);
1120
p = (FolksPostalAddress*) _tmp94_;
1068
_tmp39_ = g_strconcat (_data2_->output_string, ". ", NULL);
1069
_g_free0 (_data2_->output_string);
1070
_data2_->output_string = _tmp39_;
1123
_tmp95_ = g_strconcat (output_string, ". ", NULL);
1124
_g_free0 (output_string);
1125
output_string = _tmp95_;
1072
_tmp40_ = folks_postal_address_to_string (p);
1074
_tmp42_ = g_strconcat (_data2_->output_string, _tmp41_, NULL);
1075
_g_free0 (_data2_->output_string);
1076
_data2_->output_string = _tmp42_;
1127
_tmp96_ = folks_postal_address_to_string (p);
1129
_tmp98_ = g_strconcat (output_string, _tmp97_, NULL);
1130
_g_free0 (output_string);
1131
output_string = _tmp98_;
1079
1134
_g_object_unref0 (p);
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);
1088
block2_data_unref (_data2_);
1092
if (g_strcmp0 (prop_name, "structured-name") == 0) {
1093
GObject* _tmp45_ = NULL;
1094
FolksStructuredName* sn;
1096
_tmp45_ = g_value_get_object (prop_value);
1097
sn = FOLKS_STRUCTURED_NAME (_tmp45_);
1100
gchar* _tmp46_ = NULL;
1101
_tmp46_ = folks_structured_name_to_string (sn);
1106
block2_data_unref (_data2_);
1136
_g_object_unref0 (_p_it);
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);
1145
if (g_strcmp0 (prop_name, "notes") == 0) {
1146
GObject* _tmp100_ = NULL;
1152
_tmp100_ = g_value_get_object (prop_value);
1153
_tmp101_ = _g_object_ref0 (GEE_SET (_tmp100_));
1155
_tmp102_ = g_strdup ("{ ");
1156
_g_free0 (output_string);
1157
output_string = _tmp102_;
1160
GeeIterator* _tmp103_ = NULL;
1161
GeeIterator* _note_it;
1162
_tmp103_ = gee_iterable_iterator ((GeeIterable*) notes);
1163
_note_it = _tmp103_;
1166
gpointer _tmp105_ = NULL;
1168
const gchar* _tmp107_ = NULL;
1170
_tmp104_ = gee_iterator_next (_note_it);
1174
_tmp105_ = gee_iterator_get (_note_it);
1175
note = (FolksNote*) _tmp105_;
1178
_tmp106_ = g_strconcat (output_string, ", ", NULL);
1179
_g_free0 (output_string);
1180
output_string = _tmp106_;
1182
_tmp107_ = folks_note_get_uid (note);
1183
_tmp108_ = g_strconcat (output_string, _tmp107_, NULL);
1184
_g_free0 (output_string);
1185
output_string = _tmp108_;
1187
_g_object_unref0 (note);
1189
_g_object_unref0 (_note_it);
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);
1198
if (g_strcmp0 (prop_name, "roles") == 0) {
1199
GObject* _tmp110_ = NULL;
1205
_tmp110_ = g_value_get_object (prop_value);
1206
_tmp111_ = _g_object_ref0 (GEE_SET (_tmp110_));
1208
_tmp112_ = g_strdup ("{ ");
1209
_g_free0 (output_string);
1210
output_string = _tmp112_;
1213
GeeIterator* _tmp113_ = NULL;
1214
GeeIterator* _role_it;
1215
_tmp113_ = gee_iterable_iterator ((GeeIterable*) roles);
1216
_role_it = _tmp113_;
1219
gpointer _tmp115_ = NULL;
1221
gchar* _tmp117_ = NULL;
1224
_tmp114_ = gee_iterator_next (_role_it);
1228
_tmp115_ = gee_iterator_get (_role_it);
1229
role = (FolksRole*) _tmp115_;
1232
_tmp116_ = g_strconcat (output_string, ", ", NULL);
1233
_g_free0 (output_string);
1234
output_string = _tmp116_;
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_);
1243
_g_object_unref0 (role);
1245
_g_object_unref0 (_role_it);
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);
1254
if (g_strcmp0 (prop_name, "structured-name") == 0) {
1255
GObject* _tmp121_ = NULL;
1256
FolksStructuredName* sn;
1258
_tmp121_ = g_value_get_object (prop_value);
1259
sn = FOLKS_STRUCTURED_NAME (_tmp121_);
1262
gchar* _tmp122_ = NULL;
1263
_tmp122_ = folks_structured_name_to_string (sn);
1268
_g_free0 (output_string);
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));
1200
static gpointer __g_hash_table_iter_dup0 (gpointer self) {
1201
return self ? _g_hash_table_iter_dup (self) : NULL;
1205
1355
gchar* folks_inspect_utils_individual_id_completion_cb (const gchar* word, gint state) {
1206
1356
gchar* result = 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_);
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_;
1225
gconstpointer _tmp5_ = NULL;
1226
gconstpointer _tmp6_ = NULL;
1229
FolksIndividual* _tmp9_;
1231
_tmp7_ = g_hash_table_iter_next (folks_inspect_utils_individual_id_iter, &_tmp5_, &_tmp6_);
1233
_tmp8_ = g_strdup (_tmp5_);
1235
_g_object_unref0 (individual);
1236
_tmp9_ = _g_object_ref0 (_tmp6_);
1237
individual = _tmp9_;
1238
if (!(_tmp7_ == TRUE)) {
1370
gpointer _tmp4_ = NULL;
1373
_tmp3_ = gee_map_iterator_next (folks_inspect_utils_individual_id_iter);
1374
if (!(_tmp3_ == TRUE)) {
1241
_tmp10_ = g_str_has_prefix (id, word);
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);
1244
_g_object_unref0 (individual);
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;
1251
_g_object_unref0 (individual);
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_);
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;
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) {
1282
gconstpointer _tmp6_ = NULL;
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;
1416
_tmp4_ = gee_map_iterator_next (folks_inspect_utils_individual_id_iter);
1417
_tmp3_ = _tmp4_ == TRUE;
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_;
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);
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);