File: dmap-mdns-browser.vapi

package info (click to toggle)
abraca 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,480 kB
  • sloc: python: 4,992; xml: 1,147; ansic: 530; sh: 157; makefile: 13
file content (43 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
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 ();
	}
}