1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
[CCode (cheader_filename="src/components/server/zeroconf/dmap-mdns-browser.h")]
namespace DMAP {
public errordomain MdnsBrowserError {
NOT_RUNNING, FAILED
}
public enum MdnsBrowserServiceType {
INVALID = 0,
DAAP,
DPAP,
DACP,
RAOP,
XMMS2
}
public enum MdnsBrowserTransportProtocol {
TCP,
UDP
}
[Compact]
public struct MdnsBrowserService {
public string service_name;
public string name;
public string host;
public uint port;
public bool password_protected;
public string pair;
public MdnsBrowserTransportProtocol transport_protocol;
}
public class MdnsBrowser : GLib.Object {
public signal void service_added (MdnsBrowserService service);
public signal void service_removed (MdnsBrowserService service);
public MdnsBrowser (MdnsBrowserServiceType service_type);
public bool start () throws MdnsBrowserError;
public bool stop () throws MdnsBrowserError;
public unowned GLib.SList<unowned MdnsBrowserService> get_services ();
MdnsBrowserServiceType get_service_type ();
}
}
|