Add handy utilities

This commit is contained in:
Tristan Hume 2015-04-26 19:31:39 -04:00
parent a2ac56b2ef
commit fd19791f8d
5 changed files with 124 additions and 2 deletions

16
source/ddbus/thin.d Normal file
View 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;
}