summaryrefslogtreecommitdiff
path: root/src/examples/eldbus
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-11-07 15:05:46 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-07 15:05:46 +0100
commit5d7d0231243b64f31aab5b3d0c052aa51a05bb48 (patch)
tree67815dbd0176c7b6b81c7b097772b53906355b5e /src/examples/eldbus
parenta939e0c5fb094a8881e12ceba7d9aa9b01de528f (diff)
examples/eldbus: Initialize all description members
Better to initialize all members here in the example.
Diffstat (limited to 'src/examples/eldbus')
-rw-r--r--src/examples/eldbus/complex-types-server.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/examples/eldbus/complex-types-server.c b/src/examples/eldbus/complex-types-server.c
index fb87b71..30321e8 100644
--- a/src/examples/eldbus/complex-types-server.c
+++ b/src/examples/eldbus/complex-types-server.c
@@ -282,7 +282,7 @@ invalid_signature:
282static const Eldbus_Method methods[] = { 282static const Eldbus_Method methods[] = {
283 { 283 {
284 "ReceiveArray", ELDBUS_ARGS({"as", "array_of_strings"}), 284 "ReceiveArray", ELDBUS_ARGS({"as", "array_of_strings"}),
285 NULL, _receive_array 285 NULL, _receive_array, 0
286 }, 286 },
287 { 287 {
288 "ReceiveArrayOfStringIntWithSize", 288 "ReceiveArrayOfStringIntWithSize",
@@ -291,11 +291,11 @@ static const Eldbus_Method methods[] = {
291 }, 291 },
292 { 292 {
293 "SendVariantData", ELDBUS_ARGS({"v", "variant_data"}), 293 "SendVariantData", ELDBUS_ARGS({"v", "variant_data"}),
294 NULL, _send_variant 294 NULL, _send_variant, 0
295 }, 295 },
296 { 296 {
297 "ReceiveVariantData", NULL, ELDBUS_ARGS({"v", "variant_data"}), 297 "ReceiveVariantData", NULL, ELDBUS_ARGS({"v", "variant_data"}),
298 _receive_variant 298 _receive_variant, 0
299 }, 299 },
300 { 300 {
301 "SendArrayInt", NULL, 301 "SendArrayInt", NULL,
@@ -303,24 +303,24 @@ static const Eldbus_Method methods[] = {
303 }, 303 },
304 { 304 {
305 "SendArray", NULL, ELDBUS_ARGS({"as", "array_string"}), 305 "SendArray", NULL, ELDBUS_ARGS({"as", "array_string"}),
306 _send_array 306 _send_array, 0
307 }, 307 },
308 { 308 {
309 "PlusOne", ELDBUS_ARGS({"i", "integer"}), 309 "PlusOne", ELDBUS_ARGS({"i", "integer"}),
310 ELDBUS_ARGS({"i", "integer_plus_one"}), _plus_one 310 ELDBUS_ARGS({"i", "integer_plus_one"}), _plus_one, 0
311 }, 311 },
312 { 312 {
313 "DoubleContainner", ELDBUS_ARGS({"a(ii)", "array1"}, {"a(ii)", "array2"}), 313 "DoubleContainner", ELDBUS_ARGS({"a(ii)", "array1"}, {"a(ii)", "array2"}),
314 NULL, _double_container 314 NULL, _double_container, 0
315 }, 315 },
316 { } 316 { }
317}; 317};
318 318
319static const Eldbus_Property properties[] = { 319static const Eldbus_Property properties[] = {
320 { "Resp2", "s", NULL, _properties_set }, 320 { "Resp2", "s", NULL, _properties_set, 0 },
321 { "text", "s" }, 321 { "text", "s", NULL, NULL, 0 },
322 { "int32", "i", NULL, _properties_set }, 322 { "int32", "i", NULL, _properties_set, 0 },
323 { "st", "(ss)" }, 323 { "st", "(ss)", NULL, NULL, 0 },
324 { } 324 { }
325}; 325};
326 326