![]() |
![]() |
![]() |
libdmapsharing Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define DMAP_TYPE_CONNECTION #define DMAP_CONNECTION (o) #define DMAP_CONNECTION_CLASS (k) #define IS_DMAP_CONNECTION (o) #define IS_DMAP_CONNECTION_CLASS (k) #define DMAP_CONNECTION_GET_CLASS (o) typedef DMAPConnectionPrivate; enum DMAPConnectionState; DMAPContentCode (*get_protocol_version_cc) (DMAPConnection *connection
); gchar * (*get_query_metadata) (DMAPConnection *connection
); DMAPRecord * (*handle_mlcl) (DMAPConnection *connection
,DMAPRecordFactory *factory
,GNode *mlcl
,gint *item_id
); void (*connected) (DMAPConnection *connection
); void (*disconnected) (DMAPConnection *connection
); char * (*authenticate) (DMAPConnection *connection
,const char *name
); void (*connecting) (DMAPConnection *connection
,DMAPConnectionState state
,float progress
); void (*operation_done) (DMAPConnection *connection
); gboolean (*DMAPConnectionCallback) (DMAPConnection *connection
,gboolean result
,const char *reason
,gpointer user_data
); void (*DMAPResponseHandler) (DMAPConnection *connection
,guint status
,GNode *structure
,gpointer user_data
); GType dmap_connection_get_type (void
); gboolean dmap_connection_is_connected (DMAPConnection *connection
); void dmap_connection_setup (DMAPConnection *connection
); void dmap_connection_connect (DMAPConnection *connection
,DMAPConnectionCallback callback
,gpointer user_data
); void dmap_connection_disconnect (DMAPConnection *connection
,DMAPConnectionCallback callback
,gpointer user_data
); SoupMessageHeaders * dmap_connection_get_headers (DMAPConnection *connection
,const char *uri
); GSList * dmap_connection_get_playlists (DMAPConnection *connection
); SoupMessage * dmap_connection_build_message (DMAPConnection *connection
,const gchar *path
,gboolean need_hash
,gdouble version
,gint req_id
,gboolean send_close
); gboolean dmap_connection_get (DMAPConnection *self
,const gchar *path
,gboolean need_hash
,DMAPResponseHandler handler
,gpointer user_data
);
#define DMAP_TYPE_CONNECTION (dmap_connection_get_type ())
The type for DMAPConnection.
#define DMAP_CONNECTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DMAP_TYPE_CONNECTION, DMAPConnection))
Casts a DMAPConnection or derived pointer into a (DMAPConnection *) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.
|
Object which is subject to casting. |
#define DMAP_CONNECTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DMAP_TYPE_CONNECTION, DMAPConnectionClass))
Casts a derived DMAPConnectionClass structure into a DMAPConnectionClass structure.
|
a valid DMAPConnectionClass |
#define IS_DMAP_CONNECTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DMAP_TYPE_CONNECTION))
Checks whether a valid GTypeInstance pointer is of type DMAP_TYPE_CONNECTION
.
|
Instance to check for being a DMAP_TYPE_CONNECTION . |
#define IS_DMAP_CONNECTION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DMAP_TYPE_CONNECTION))
Checks whether k
"is a" valid DMAPConnectionClass structure of type
DMAP_CONNECTION
or derived.
|
a DMAPConnectionClass |
#define DMAP_CONNECTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DMAP_TYPE_CONNECTION, DMAPConnectionClass))
Get the class structure associated to a DMAPConnection instance.
|
a DMAPConnection instance. |
Returns : |
pointer to object class structure. |
typedef enum { DMAP_GET_INFO = 0, DMAP_LOGIN, DMAP_GET_REVISION_NUMBER, DMAP_GET_DB_INFO, DMAP_GET_SONGS, DMAP_GET_PLAYLISTS, DMAP_GET_PLAYLIST_ENTRIES, DMAP_LOGOUT, DMAP_DONE } DMAPConnectionState;
DMAPRecord * (*handle_mlcl) (DMAPConnection *connection
,DMAPRecordFactory *factory
,GNode *mlcl
,gint *item_id
);
void (*connecting) (DMAPConnection *connection
,DMAPConnectionState state
,float progress
);
gboolean (*DMAPConnectionCallback) (DMAPConnection *connection
,gboolean result
,const char *reason
,gpointer user_data
);
void (*DMAPResponseHandler) (DMAPConnection *connection
,guint status
,GNode *structure
,gpointer user_data
);
void dmap_connection_connect (DMAPConnection *connection
,DMAPConnectionCallback callback
,gpointer user_data
);
void dmap_connection_disconnect (DMAPConnection *connection
,DMAPConnectionCallback callback
,gpointer user_data
);
SoupMessageHeaders * dmap_connection_get_headers (DMAPConnection *connection
,const char *uri
);
GSList * dmap_connection_get_playlists (DMAPConnection *connection
);
SoupMessage * dmap_connection_build_message (DMAPConnection *connection
,const gchar *path
,gboolean need_hash
,gdouble version
,gint req_id
,gboolean send_close
);
gboolean dmap_connection_get (DMAPConnection *self
,const gchar *path
,gboolean need_hash
,DMAPResponseHandler handler
,gpointer user_data
);