-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing imports in generated classes #195
Comments
thjomnx/java-systemd |
I am experimenting with a DBus code generator for C#: tmds/Tmds.DBus. |
The correct path is "org.freedesktop.systemd1" and "/org/freedesktop/systemd1". I fixed the issues in code generator you found. Actually there were two bugs. Anyways, this is just a code generator, trying to parse the introspection xml and trys to generate java code as good as possible. Generated code will always be ugly, bad named or badly formatted at some point. |
I'm trying to generate bindings for Systemd (systemd 251 on Ubuntu 22.10).
Running codegen from the introspected interface, following these instructions.
The bus name is "org.freedesktop.systemd1" and the object path is "/org/freedesktop/systemd1".
The primary interface is "/org/freedesktop/systemd1/Manager," though trying that as object path I get
UnknownObject
error.It seems to be happy with the parent node.
I get a bunch of classes, at first glance looks good, more-or-less complete.
Here is the introspected XML for reference:
One curiosity to note:
I get a few extra classes running
InterfaceCodeGenerator
from the introspected XML that aren't produced running it with bus name + object path.Additional classes:
The errors so far consist only of missing imports.
List
I imagine is the standardjava.util
class,DBusPath
must be provided bydbus-java
(likewiseUInt32
, etc.):Apologies for the long code.
The text was updated successfully, but these errors were encountered: