summaryrefslogtreecommitdiff
path: root/src/examples/eldbus
diff options
context:
space:
mode:
authorJosé Roberto de Souza <zehortigoza@gmail.com>2013-03-23 00:24:23 -0300
committerLucas De Marchi <lucas.de.marchi@gmail.com>2013-05-04 10:38:55 -0300
commitdd25e02d5c0f96726c7f840369b7cf7707da6868 (patch)
tree7a86d71fadbd82a62685699d4c74c2eab1990dae /src/examples/eldbus
parentd7eb3f74adb5f7ee0c5ca552a19dc20e5f8a760d (diff)
eldbus: Add eldbus_message_iter_fixed_array_append()
Diffstat (limited to 'src/examples/eldbus')
-rw-r--r--src/examples/eldbus/complex-types-server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/examples/eldbus/complex-types-server.c b/src/examples/eldbus/complex-types-server.c
index 125fef8..9e7f395 100644
--- a/src/examples/eldbus/complex-types-server.c
+++ b/src/examples/eldbus/complex-types-server.c
@@ -142,14 +142,13 @@ _send_array_int(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_
142{ 142{
143 Eldbus_Message *reply = eldbus_message_method_return_new(msg); 143 Eldbus_Message *reply = eldbus_message_method_return_new(msg);
144 Eldbus_Message_Iter *iter, *array; 144 Eldbus_Message_Iter *iter, *array;
145 int i; 145 int numbers[] = { 10, 9, 8, 7, 6, 5 };
146 146
147 printf("- sendArrayInt\n\n"); 147 printf("- sendArrayInt\n\n");
148 148
149 iter = eldbus_message_iter_get(reply); 149 iter = eldbus_message_iter_get(reply);
150 array = eldbus_message_iter_container_new(iter, 'a', "i"); 150 array = eldbus_message_iter_container_new(iter, 'a', "i");
151 for (i = 0; i < 5; i++) 151 eldbus_message_iter_fixed_array_append(array, 'i', numbers, EINA_C_ARRAY_LENGTH(numbers));
152 eldbus_message_iter_arguments_append(array, "i", i);
153 eldbus_message_iter_container_close(iter, array); 152 eldbus_message_iter_container_close(iter, array);
154 153
155 return reply; 154 return reply;