DAAPConnection

DAAPConnection

Synopsis

#define             DAAP_TYPE_CONNECTION
#define             DAAP_CONNECTION                     (o)
#define             DAAP_CONNECTION_CLASS               (k)
#define             IS_DAAP_CONNECTION                  (o)
#define             IS_DAAP_CONNECTION_CLASS            (k)
#define             DAAP_CONNECTION_GET_CLASS           (o)
typedef             DAAPConnectionPrivate;
                    DAAPConnectionClass;
GType               daap_connection_get_type            (void);
DAAPConnection *    daap_connection_new                 (const char *name,
                                                         const char *host,
                                                         guint port,
                                                         gboolean password_protected,
                                                         DMAPDb *db,
                                                         DMAPRecordFactory *factory);

Description

Details

DAAP_TYPE_CONNECTION

#define DAAP_TYPE_CONNECTION		(daap_connection_get_type ())

The type for DAAPConnection.


DAAP_CONNECTION()

#define DAAP_CONNECTION(o)		(G_TYPE_CHECK_INSTANCE_CAST ((o), DAAP_TYPE_CONNECTION, DAAPConnection))

Casts a DAAPConnection or derived pointer into a (DAAPConnection *) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.

o :

Object which is subject to casting.

DAAP_CONNECTION_CLASS()

#define DAAP_CONNECTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DAAP_TYPE_CONNECTION, DAAPConnectionClass))

Casts a derived DAAPConnectionClass structure into a DAAPConnectionClass structure.

k :

a valid DAAPConnectionClass

IS_DAAP_CONNECTION()

#define IS_DAAP_CONNECTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DAAP_TYPE_CONNECTION))

Checks whether a valid GTypeInstance pointer is of type DAAP_TYPE_CONNECTION.

o :

Instance to check for being a DAAP_TYPE_CONNECTION.

IS_DAAP_CONNECTION_CLASS()

#define IS_DAAP_CONNECTION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DAAP_TYPE_CONNECTION))

Checks whether k "is a" valid DAAPConnectionClass structure of type DAAP_CONNECTION or derived.


DAAP_CONNECTION_GET_CLASS()

#define DAAP_CONNECTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DAAP_TYPE_CONNECTION, DAAPConnectionClass))

Get the class structure associated to a DAAPConnection instance.

o :

a DAAPConnection instance.

Returns :

pointer to object class structure.

DAAPConnectionPrivate

typedef struct DAAPConnectionPrivate DAAPConnectionPrivate;


DAAPConnectionClass

typedef struct {
	DMAPConnectionClass dmap_connection_class;
} DAAPConnectionClass;


daap_connection_get_type ()

GType               daap_connection_get_type            (void);

Returns :


daap_connection_new ()

DAAPConnection *    daap_connection_new                 (const char *name,
                                                         const char *host,
                                                         guint port,
                                                         gboolean password_protected,
                                                         DMAPDb *db,
                                                         DMAPRecordFactory *factory);

name :

host :

port :

password_protected :

db :

factory :

Returns :