File: client-internals.xml

package info (click to toggle)
libdmapsharing 3.9.13-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,340 kB
  • sloc: ansic: 17,285; sh: 4,782; xml: 556; makefile: 459
file content (42 lines) | stat: -rw-r--r-- 1,565 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
]>
<refentry id="client-internals">
	<refmeta>
		<refentrytitle>Libdmapsharing Client Internals</refentrytitle>
		<manvolnum>3</manvolnum>
		<refmiscinfo>Libdmapsharing</refmiscinfo>
	</refmeta>

	<refnamediv>
		<refname>Libdmapsharing Client Internals</refname>
		<refpurpose>
			Description of libdmapsharing's internal client code
		</refpurpose>
	</refnamediv>

	<refsect1>
		<title>Libdmapsharing Client Internals</title>
		<para>
The DMAPMdnsBrowser class allows for asynchronous interaction with a DMAP
server using mDNS.
		
		</para>
		<para>
The DmapConnection class's dmap_connection_start sets up a connection to a
DMAP server using libsoup, stores the application-provided callback, sets
the connection state to DMAP_GET_INFO, adds dmap_connection_do_something
as a GLib loop idle function, and connects the function _connected_cb
to the "operation-done" signal. The connection state progresses
from DMAP_GET_INFO to DMAP_GET_PASSWORD then DMAP_LOGIN then
DMAP_GET_REVISION_NUMBER then DMAP_GET_DB_INFO then DMAP_GET_MEDIA
then DMAP_GET_PLAYLISTS then (possibly) DMAP_GET_PLAYLIST_ENTRIES. Each
time the state changes, dmap_connection_do_something executes as an idle
function. By the time these state transitions are complete, DMAPConnection
has populated the media database. The _connected_cb function, in turn,
executes the application-provided callback.

		</para>
	</refsect1>
</refentry>