summaryrefslogtreecommitdiff
path: root/legacy/ethumb/src/lib/client/ethumb_client.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-18 20:06:25 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-18 20:06:25 +0000
commit9803c435e067516f284dd50707dafd2395aec8d2 (patch)
treef2ce3bdfc18f0b647ef3d52949d19d582f2633a9 /legacy/ethumb/src/lib/client/ethumb_client.c
parent6b18b0d02da55baab0ae0326ad1d6ecc458384d8 (diff)
ethumb: rename edbus functions
SVN revision: 81298
Diffstat (limited to '')
-rw-r--r--legacy/ethumb/src/lib/client/ethumb_client.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/legacy/ethumb/src/lib/client/ethumb_client.c b/legacy/ethumb/src/lib/client/ethumb_client.c
index f9c18d3ed2..aee29003cd 100644
--- a/legacy/ethumb/src/lib/client/ethumb_client.c
+++ b/legacy/ethumb/src/lib/client/ethumb_client.c
@@ -673,7 +673,7 @@ static EDBus_Message_Iter *
673_setup_iterator_open(EDBus_Message_Iter *array, EDBus_Message_Iter **config, const char *key, const char *type) 673_setup_iterator_open(EDBus_Message_Iter *array, EDBus_Message_Iter **config, const char *key, const char *type)
674{ 674{
675 EDBus_Message_Iter *variant, *_struct; 675 EDBus_Message_Iter *variant, *_struct;
676 edbus_message_iter_arguments_set(array, "{sv}", &_struct); 676 edbus_message_iter_arguments_append(array, "{sv}", &_struct);
677 edbus_message_iter_basic_append(_struct, 's', key); 677 edbus_message_iter_basic_append(_struct, 's', key);
678 variant = edbus_message_iter_container_new(_struct, 'v', type); 678 variant = edbus_message_iter_container_new(_struct, 'v', type);
679 679
@@ -719,50 +719,50 @@ ethumb_client_ethumb_setup(Ethumb_Client *client)
719 719
720 msg = edbus_proxy_method_call_new(client->proxy, "ethumb_setup"); 720 msg = edbus_proxy_method_call_new(client->proxy, "ethumb_setup");
721 main = edbus_message_iter_get(msg); 721 main = edbus_message_iter_get(msg);
722 edbus_message_iter_arguments_set(main, "a{sv}", &array); 722 edbus_message_iter_arguments_append(main, "a{sv}", &array);
723 723
724 /* starting array elements */ 724 /* starting array elements */
725 variant = _setup_iterator_open(array, &config, "size", "(ii)"); 725 variant = _setup_iterator_open(array, &config, "size", "(ii)");
726 edbus_message_iter_arguments_set(variant, "(ii)", &sub_struct); 726 edbus_message_iter_arguments_append(variant, "(ii)", &sub_struct);
727 ethumb_thumb_size_get(e, &tw, &th); 727 ethumb_thumb_size_get(e, &tw, &th);
728 edbus_message_iter_arguments_set(sub_struct, "ii", tw, th); 728 edbus_message_iter_arguments_append(sub_struct, "ii", tw, th);
729 edbus_message_iter_container_close(sub_struct, variant); 729 edbus_message_iter_container_close(sub_struct, variant);
730 _setup_iterator_close(array, config, variant); 730 _setup_iterator_close(array, config, variant);
731 731
732 variant = _setup_iterator_open(array, &config, "format", "i"); 732 variant = _setup_iterator_open(array, &config, "format", "i");
733 format = ethumb_thumb_format_get(e); 733 format = ethumb_thumb_format_get(e);
734 edbus_message_iter_arguments_set(variant, "i", format); 734 edbus_message_iter_arguments_append(variant, "i", format);
735 _setup_iterator_close(array, config, variant); 735 _setup_iterator_close(array, config, variant);
736 736
737 variant = _setup_iterator_open(array, &config, "aspect", "i"); 737 variant = _setup_iterator_open(array, &config, "aspect", "i");
738 aspect = ethumb_thumb_aspect_get(e); 738 aspect = ethumb_thumb_aspect_get(e);
739 edbus_message_iter_arguments_set(variant, "i", aspect); 739 edbus_message_iter_arguments_append(variant, "i", aspect);
740 _setup_iterator_close(array, config, variant); 740 _setup_iterator_close(array, config, variant);
741 741
742 variant = _setup_iterator_open(array, &config, "orientation", "i"); 742 variant = _setup_iterator_open(array, &config, "orientation", "i");
743 orientation = ethumb_thumb_orientation_get(e); 743 orientation = ethumb_thumb_orientation_get(e);
744 edbus_message_iter_arguments_set(variant, "i", orientation); 744 edbus_message_iter_arguments_append(variant, "i", orientation);
745 _setup_iterator_close(array, config, variant); 745 _setup_iterator_close(array, config, variant);
746 746
747 variant = _setup_iterator_open(array, &config, "crop", "(dd)"); 747 variant = _setup_iterator_open(array, &config, "crop", "(dd)");
748 edbus_message_iter_arguments_set(variant, "(dd)", &sub_struct); 748 edbus_message_iter_arguments_append(variant, "(dd)", &sub_struct);
749 ethumb_thumb_crop_align_get(e, &cx, &cy); 749 ethumb_thumb_crop_align_get(e, &cx, &cy);
750 edbus_message_iter_arguments_set(sub_struct, "dd", (double)cx, (double)cy); 750 edbus_message_iter_arguments_append(sub_struct, "dd", (double)cx, (double)cy);
751 edbus_message_iter_container_close(sub_struct, variant); 751 edbus_message_iter_container_close(sub_struct, variant);
752 _setup_iterator_close(array, config, variant); 752 _setup_iterator_close(array, config, variant);
753 753
754 variant = _setup_iterator_open(array, &config, "quality", "i"); 754 variant = _setup_iterator_open(array, &config, "quality", "i");
755 quality = ethumb_thumb_quality_get(e); 755 quality = ethumb_thumb_quality_get(e);
756 edbus_message_iter_arguments_set(variant, "i", quality); 756 edbus_message_iter_arguments_append(variant, "i", quality);
757 _setup_iterator_close(array, config, variant); 757 _setup_iterator_close(array, config, variant);
758 758
759 variant = _setup_iterator_open(array, &config, "compress", "i"); 759 variant = _setup_iterator_open(array, &config, "compress", "i");
760 quality = ethumb_thumb_quality_get(e); 760 quality = ethumb_thumb_quality_get(e);
761 edbus_message_iter_arguments_set(variant, "i", compress); 761 edbus_message_iter_arguments_append(variant, "i", compress);
762 _setup_iterator_close(array, config, variant); 762 _setup_iterator_close(array, config, variant);
763 763
764 variant = _setup_iterator_open(array, &config, "frame", "(ayayay)"); 764 variant = _setup_iterator_open(array, &config, "frame", "(ayayay)");
765 edbus_message_iter_arguments_set(variant, "(ayayay)", &sub_struct); 765 edbus_message_iter_arguments_append(variant, "(ayayay)", &sub_struct);
766 ethumb_frame_get(e, &theme_file, &group, &swallow); 766 ethumb_frame_get(e, &theme_file, &group, &swallow);
767 _ethumb_client_dbus_append_bytearray(sub_struct, theme_file); 767 _ethumb_client_dbus_append_bytearray(sub_struct, theme_file);
768 _ethumb_client_dbus_append_bytearray(sub_struct, group); 768 _ethumb_client_dbus_append_bytearray(sub_struct, group);
@@ -781,32 +781,32 @@ ethumb_client_ethumb_setup(Ethumb_Client *client)
781 781
782 variant = _setup_iterator_open(array, &config, "video_time", "d"); 782 variant = _setup_iterator_open(array, &config, "video_time", "d");
783 video_time = ethumb_video_time_get(e); 783 video_time = ethumb_video_time_get(e);
784 edbus_message_iter_arguments_set(variant, "d", video_time); 784 edbus_message_iter_arguments_append(variant, "d", video_time);
785 _setup_iterator_close(array, config, variant); 785 _setup_iterator_close(array, config, variant);
786 786
787 variant = _setup_iterator_open(array, &config, "video_start", "d"); 787 variant = _setup_iterator_open(array, &config, "video_start", "d");
788 video_start = ethumb_video_start_get(e); 788 video_start = ethumb_video_start_get(e);
789 edbus_message_iter_arguments_set(variant, "d", video_start); 789 edbus_message_iter_arguments_append(variant, "d", video_start);
790 _setup_iterator_close(array, config, variant); 790 _setup_iterator_close(array, config, variant);
791 791
792 variant = _setup_iterator_open(array, &config, "video_interval", "d"); 792 variant = _setup_iterator_open(array, &config, "video_interval", "d");
793 video_interval = ethumb_video_interval_get(e); 793 video_interval = ethumb_video_interval_get(e);
794 edbus_message_iter_arguments_set(variant, "d", video_interval); 794 edbus_message_iter_arguments_append(variant, "d", video_interval);
795 _setup_iterator_close(array, config, variant); 795 _setup_iterator_close(array, config, variant);
796 796
797 variant = _setup_iterator_open(array, &config, "video_ntimes", "u"); 797 variant = _setup_iterator_open(array, &config, "video_ntimes", "u");
798 video_ntimes = ethumb_video_ntimes_get(e); 798 video_ntimes = ethumb_video_ntimes_get(e);
799 edbus_message_iter_arguments_set(variant, "u", video_ntimes); 799 edbus_message_iter_arguments_append(variant, "u", video_ntimes);
800 _setup_iterator_close(array, config, variant); 800 _setup_iterator_close(array, config, variant);
801 801
802 variant = _setup_iterator_open(array, &config, "video_fps", "u"); 802 variant = _setup_iterator_open(array, &config, "video_fps", "u");
803 video_fps = ethumb_video_fps_get(e); 803 video_fps = ethumb_video_fps_get(e);
804 edbus_message_iter_arguments_set(variant, "u", video_fps); 804 edbus_message_iter_arguments_append(variant, "u", video_fps);
805 _setup_iterator_close(array, config, variant); 805 _setup_iterator_close(array, config, variant);
806 806
807 variant = _setup_iterator_open(array, &config, "document_page", "u"); 807 variant = _setup_iterator_open(array, &config, "document_page", "u");
808 document_page = ethumb_document_page_get(e); 808 document_page = ethumb_document_page_get(e);
809 edbus_message_iter_arguments_set(variant, "u", document_page); 809 edbus_message_iter_arguments_append(variant, "u", document_page);
810 _setup_iterator_close(array, config, variant); 810 _setup_iterator_close(array, config, variant);
811 811
812 edbus_message_iter_container_close(main, array); 812 edbus_message_iter_container_close(main, array);