dmap-control-share

dmap-control-share

Functions

Description

Functions

lookup_guid ()

gboolean
(*lookup_guid) (DmapControlShare *share,
                gchar *guid);

add_guid ()

void
(*add_guid) (DmapControlShare *share,
             gchar *guid);

remote_found ()

void
(*remote_found) (DmapControlShare *share,
                 gchar *service_name,
                 gchar *remote_name);

remote_lost ()

void
(*remote_lost) (DmapControlShare *share,
                gchar *service_name);

remote_paired ()

void
(*remote_paired) (DmapControlShare *share,
                  gchar *service_name,
                  gboolean connected);

dmap_control_share_new ()

DmapControlShare *
dmap_control_share_new (const gchar *library_name,
                        DmapControlPlayer *player,
                        DmapDb *db,
                        DmapContainerDb *container_db);

Creates a new DACP share and publishes it using mDNS.

Parameters

library_name

The library name that will be shown in the remote.

 

player

A DmapControlPlayer instance, used to retrieve information from a player implementation.

 

db

a media database represented by a DmapDb instance.

 

container_db

a container (album) database represented by a DmapContainerDb instance.

 

Returns

a pointer to a DmapControlShare.


dmap_control_share_pair ()

void
dmap_control_share_pair (DmapControlShare *share,
                         gchar *service_name,
                         gchar passcode[4]);

Pairs a DACP client (Remote) with this server. If the passcode is correct (the same as shown on the remote), the remote will start connecting to this server.

Parameters

share

a DmapControlShare

 

service_name

DACP client (remote) service identifier.

 

passcode

4-Digit PIN code entered by the user.

 

dmap_control_share_start_lookup ()

void
dmap_control_share_start_lookup (DmapControlShare *share);

Start looking up for DACP remotes. Connect to “remote-found” signal to detect new remotes. Be aware that when a DmapControlShare is created, only after calling this function is that it starts looking up for Remotes on the network.

Parameters

share

A DmapControlShare.

 

dmap_control_share_stop_lookup ()

void
dmap_control_share_stop_lookup (DmapControlShare *share);

Stop looking up for DACP remotes.

Parameters

share

A DmapControlShare.

 

dmap_control_share_player_updated ()

void
dmap_control_share_player_updated (DmapControlShare *share);

Types and Values