Toutes les langues

dbus

DBus server example

0
Your rating: Aucun
[DBus (name = "org.gnome.TestServer")]
public class TestServer : Object {
    int64 counter;
 
    public int64 ping (string msg) {
        message ("%s", msg);
        return counter++;
    }
}
 
void main () {
    var loop = new MainLoop (null, false);
 
    try {
        var conn = DBus.Bus.get (DBus.BusType.

Purple - Instant Messaging with D-Bus

0
Your rating: Aucun
using DBus;
 
public class DBusSample : GLib.Object {
 
    private DBus.Connection conn;
    private dynamic DBus.Object purple;
 
    public void run () throws DBus.Error, GLib.Error {
        // remove the space before SESSION, it is only required for this wiki
        conn = DBus.Bus.get (DBus.BusType.

Bluetooth discovery with D-Bus

5
Your rating: Aucun Average: 5 (1 vote)
public class BlueZDiscoverySample : Object {
 
    private DBus.Connection conn;
    private dynamic DBus.Object bluez;
    public MainLoop loop { set; get; }
 
    public void run () throws DBus.Error, Error {
        // remove the space before SYSTEM, it is just needed for this wiki
        this.conn = DBus.Bus.get (DBus.BusType.
Syndiquer le contenu