mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 06:40:07 +01:00
* mono/BusDriver.cs: Update method names: ListServices becomes ListNames; GetOwner becomes GetNameOwner.
37 lines
825 B
C#
37 lines
825 B
C#
namespace DBus
|
|
{
|
|
|
|
using System;
|
|
|
|
public delegate void NameOwnerChangedHandler (string name,
|
|
string oldOwner,
|
|
string newOwner);
|
|
|
|
[Interface ("org.freedesktop.DBus")]
|
|
public abstract class BusDriver
|
|
{
|
|
[Method]
|
|
public abstract string[] ListNames ();
|
|
|
|
[Method]
|
|
public abstract string GetNameOwner (string name);
|
|
|
|
[Method]
|
|
public abstract UInt32 GetConnectionUnixUser (string connectionName);
|
|
|
|
|
|
[Signal]
|
|
public virtual event NameOwnerChangedHandler NameOwnerChanged;
|
|
|
|
static public BusDriver New (Connection connection)
|
|
{
|
|
Service service;
|
|
service = Service.Get (connection, "org.freedesktop.DBus");
|
|
|
|
BusDriver driver;
|
|
driver = (BusDriver) service.GetObject (typeof (BusDriver), "/org/freedesktop/DBus");
|
|
|
|
return driver;
|
|
}
|
|
}
|
|
}
|