1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-13 13:17:43 +03:00

bus: make sure introspection can be generated correctly with NULL method signatures

This commit is contained in:
Lennart Poettering 2013-10-11 23:01:35 +02:00
parent dfa927250e
commit f11ca85a89

View File

@ -129,8 +129,8 @@ int introspect_write_interface(struct introspect *i, const char *interface, cons
case _SD_BUS_VTABLE_METHOD: case _SD_BUS_VTABLE_METHOD:
fprintf(i->f, " <method name=\"%s\">\n", v->x.method.member); fprintf(i->f, " <method name=\"%s\">\n", v->x.method.member);
introspect_write_arguments(i, v->x.method.signature, "in"); introspect_write_arguments(i, strempty(v->x.method.signature), "in");
introspect_write_arguments(i, v->x.method.result, "out"); introspect_write_arguments(i, strempty(v->x.method.result), "out");
introspect_write_flags(i, v->type, v->flags); introspect_write_flags(i, v->type, v->flags);
fputs(" </method>\n", i->f); fputs(" </method>\n", i->f);
break; break;
@ -147,7 +147,7 @@ int introspect_write_interface(struct introspect *i, const char *interface, cons
case _SD_BUS_VTABLE_SIGNAL: case _SD_BUS_VTABLE_SIGNAL:
fprintf(i->f, " <signal name=\"%s\">\n", v->x.signal.member); fprintf(i->f, " <signal name=\"%s\">\n", v->x.signal.member);
introspect_write_arguments(i, v->x.signal.signature, NULL); introspect_write_arguments(i, strempty(v->x.signal.signature), NULL);
introspect_write_flags(i, v->type, v->flags); introspect_write_flags(i, v->type, v->flags);
fputs(" </signal>\n", i->f); fputs(" </signal>\n", i->f);
break; break;