examples/eldbus: Initialize all description members

Better to initialize all members here in the example.
This commit is contained in:
Stefan Schmidt 2014-11-07 15:05:46 +01:00
parent a939e0c5fb
commit 5d7d023124
1 changed files with 10 additions and 10 deletions

View File

@ -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 },
{ }
};