Add handy utilities
This commit is contained in:
parent
a2ac56b2ef
commit
fd19791f8d
5 changed files with 124 additions and 2 deletions
16
source/ddbus/thin.d
Normal file
16
source/ddbus/thin.d
Normal file
|
@ -0,0 +1,16 @@
|
|||
module ddbus.thin;
|
||||
|
||||
import ddbus.c_lib;
|
||||
import std.string;
|
||||
|
||||
struct Message {
|
||||
this(string dest, string path, string iface, string method) {
|
||||
msg = dbus_message_new_method_call(dest.toStringz(), path.toStringz(), iface.toStringz(), method.toStringz());
|
||||
}
|
||||
|
||||
~this() {
|
||||
dbus_message_unref(msg);
|
||||
}
|
||||
|
||||
DBusMessage *msg;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue