libopendaap man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

LIBOPENDAAP(3)							LIBOPENDAAP(3)

NAME
       libopendaap - library for accessing DAAP shares

SYNOPSIS
       #include <daap/client.h>

       typedef	void  (*DAAP_fnClientStatus)(DAAP_SClient *, DAAP_Status, int,
       void*);

       typedef int (*DAAP_fnClientEnumerateHosts)(DAAP_SClient *, DAAP_SClien‐
       tHost *host, void *);

       DAAP_SClient  *DAAP_Client_Create(DAAP_fnClientStatus pfnCallback, void
       *pvCallbackContext);

       int  DAAP_Client_SetDebug(DAAP_SClient  *pCThis,	 const	 char	*const
       debug);

       unsigned int DAAP_Client_AddRef(DAAP_SClient *pCThis);

       unsigned int DAAP_Client_Release(DAAP_SClient *pCThis);

       unsigned	    int	   DAAP_Client_EnumerateHosts(DAAP_SClient    *pCThis,
       DAAP_fnClientEnumerateHosts pfnCallback, void *context);

       unsigned int DAAP_ClientHost_AddRef(DAAP_SClientHost *pCHThis);

       unsigned int DAAP_ClientHost_Release(DAAP_SClientHost *pCHThis);

       unsigned	 int  DAAP_ClientHost_GetSharename(DAAP_SClientHost  *pCHThis,
       char *buf, int bufsize);

       unsigned int DAAP_ClientHost_Connect(DAAP_SClientHost *pCHThis);

       unsigned int DAAP_ClientHost_Disconnect(DAAP_SClientHost *pCHThis);

       unsigned	 int  DAAP_ClientHost_GetDatabases(DAAP_SClientHost  *pCHThis,
       DAAP_ClientHost_Database *buffer, int *n, int bufsize);

       int  DAAP_ClientHost_GetDatabaseItems(DAAP_SClientHost  *pCHThis,   int
       databaseid, DAAP_ClientHost_DatabaseItem *buffer, int *n, int bufsize);

       int DAAP_ClientHost_GetAudioFile(DAAP_SClientHost *pCHThis, int databa‐
       seid, int songid, const char *songformat, DAAP_ClientHost_Song *song);

       int	DAAP_ClientHost_FreeAudioFile(DAAP_SClientHost	     *pCHThis,
       DAAP_ClientHost_Song *song);

       int  DAAP_ClientHost_AsyncGetAudioFile(DAAP_SClientHost	*pCHThis,  int
       databaseid, int songid, const char *songformat, int fd);

       int DAAP_ClientHost_AsyncStop(DAAP_SClientHost *pCHThis);

       int DAAP_ClientHost_AsyncWaitUpdate(DAAP_SClientHost *pCHThis);

       int DAAP_ClientHost_AsyncStopUpdate(DAAP_SClientHost *pCHThis);

DESCRIPTION
       libopendaap currently  exposes  two  classes,  Client  and  ClientHost.
       DAAP_Client  can be used to manage a set of available DAAP clients.  On
       Creation, DAAP_Client will create several threads using	the  available
       system  threads libraries. It will watch the network using Apple's mDNS
       protocol for new DAAP shares to	become	available,  and	 report	 their
       existance    to	  the	 installed    DAAP_fnClientStatus    callback.
       DAAP_Client_EnumerateHosts can then be used to enumerate the  available
       hosts.	DAAP_ClientHost_AddRef	must be used if a pointer to a host is
       to be held.

       Furhter manipulation of the hosts is then possible with the DAAP_Clien‐
       tHost  interface.  For  futhre information about the available methods,
       please consult the documentation in the header file.

ENUMERATION TYPES
       typedef enum {
	   DAAP_STATUS_error	    = -2,
	   DAAP_STATUS_dying	    = -1,
	   DAAP_STATUS_idle	    =  0,
	   DAAP_STATUS_connecting,
	   DAAP_STATUS_negotiating,
	   DAAP_STATUS_updating,
	   DAAP_STATUS_downloading,
	   DAAP_STATUS_hostschanged } DAAP_Status;

       The DAAP_Status enumeration type contains a  list  of  possible	status
       callback commands.

OTHER INFO
       For  more  information  regarding  libopendaap  please visit the tunes‐
       browser homepage: http://craz.net/programs/itunes/libopendaap.html

       Further information about the libopendaap API  is  available  from  the
       libopendaap header file.

AUTHOR
       libopendaap was written by David Hammerton <craz@crazney.net>

       This   manual   page  was  written  by  Simon  Freiberg	<fryboy@optus‐
       net.com.au>, for the Debian project (but may be used by others).

			       December 29, 2004		LIBOPENDAAP(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net