From 5d7d0231243b64f31aab5b3d0c052aa51a05bb48 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 7 Nov 2014 15:05:46 +0100 Subject: [PATCH] examples/eldbus: Initialize all description members Better to initialize all members here in the example. --- src/examples/eldbus/complex-types-server.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/examples/eldbus/complex-types-server.c b/src/examples/eldbus/complex-types-server.c index fb87b71832..30321e88b8 100644 --- a/src/examples/eldbus/complex-types-server.c +++ b/src/examples/eldbus/complex-types-server.c @@ -282,7 +282,7 @@ invalid_signature: static const Eldbus_Method methods[] = { { "ReceiveArray", ELDBUS_ARGS({"as", "array_of_strings"}), - NULL, _receive_array + NULL, _receive_array, 0 }, { "ReceiveArrayOfStringIntWithSize", @@ -291,11 +291,11 @@ static const Eldbus_Method methods[] = { }, { "SendVariantData", ELDBUS_ARGS({"v", "variant_data"}), - NULL, _send_variant + NULL, _send_variant, 0 }, { "ReceiveVariantData", NULL, ELDBUS_ARGS({"v", "variant_data"}), - _receive_variant + _receive_variant, 0 }, { "SendArrayInt", NULL, @@ -303,24 +303,24 @@ static const Eldbus_Method methods[] = { }, { "SendArray", NULL, ELDBUS_ARGS({"as", "array_string"}), - _send_array + _send_array, 0 }, { "PlusOne", ELDBUS_ARGS({"i", "integer"}), - ELDBUS_ARGS({"i", "integer_plus_one"}), _plus_one + ELDBUS_ARGS({"i", "integer_plus_one"}), _plus_one, 0 }, { "DoubleContainner", ELDBUS_ARGS({"a(ii)", "array1"}, {"a(ii)", "array2"}), - NULL, _double_container + NULL, _double_container, 0 }, { } }; static const Eldbus_Property properties[] = { - { "Resp2", "s", NULL, _properties_set }, - { "text", "s" }, - { "int32", "i", NULL, _properties_set }, - { "st", "(ss)" }, + { "Resp2", "s", NULL, _properties_set, 0 }, + { "text", "s", NULL, NULL, 0 }, + { "int32", "i", NULL, _properties_set, 0 }, + { "st", "(ss)", NULL, NULL, 0 }, { } };