Skip to content

sd-bus: vtable named argument logic doesn't work for returns? #19468

Closed

Description

@poettering

something is wrong with the argumen naming logic in git main for sd-bus' SD_BUS_METHOD_WITH_ARGS() macro.

if i define a method like this:

        SD_BUS_METHOD_WITH_ARGS("Describe",
                                SD_BUS_NO_ARGS,
                                SD_BUS_RESULT("s", json),
                                method_describe,
                                SD_BUS_VTABLE_UNPRIVILEGED),

I'd expect the return argument to be named "json", but the name doesn't actually appear in the introspection data.

There's something wrong here, but I am not smart enough to grok the preprocessor magic for this.

networkd exports a similar method, and I noticed the same issue is in its introspection data.

Noticed while trying to use SD_BUS_METHOD_WITH_ARGS for #19451.

Activity

  1. added this to the v249 milestone on Apr 29, 2021
  2. poettering commented on Apr 29, 2021

    @poettering
    MemberAuthor

    This issue kinda sucks btw, since the dbus doc scripts pull in this data now and the generated docs say all UNNAMED in big letters with this issue

  3. added
    bug 🐛
    on Apr 29, 2021
  4. added 2 commits that reference this issue on Apr 29, 2021
    ef99d32
    ff04812
  5. added a commit that references this issue on Apr 30, 2021
    c068a17
  6. added a commit that references this issue on May 11, 2021
    618b8bf
  7. added a commit that references this issue on Jan 15, 2023
    be5891e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛sd-bus

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions