DAAPShare

## DAAPShare DAAPShare |

## Synopsis

    #define             TYPE_DAAP_SHARE
    #define             DAAP_SHARE                          (o)
    #define             DAAP_SHARE_CLASS                    (k)
    #define             IS_DAAP_SHARE                       (o)
    #define             IS_DAAP_SHARE_CLASS                 (k)
    #define             DAAP_SHARE_GET_CLASS                (o)
    typedef             DAAPSharePrivate;
                        DAAPShareClass;
    GType               daap_share_get_type                 (void);
    DAAPShare *         daap_share_new                      (const char *name,
                                                             const char *password,
                                                             DMAPDb *db,
                                                             DMAPContainerDb *container_db,
                                                             gchar *transcode_mimetype);

## Description

## Details

### TYPE_DAAP_SHARE

    #define TYPE_DAAP_SHARE         (daap_share_get_type ())

The type for DAAPShare.

### DAAP_SHARE()

    #define             DAAP_SHARE(o)

Casts a DAAPShare or derived pointer into a (DAAPShare*) 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_SHARE_CLASS()

    #define             DAAP_SHARE_CLASS(k)

Casts a derived DAAPShareClass structure into a DAAPShareClass structure.

`k` : | a valid DAAPShareClass

### IS_DAAP_SHARE()

    #define             IS_DAAP_SHARE(o)

Checks whether a valid GTypeInstance pointer is of type `TYPE_DAAP_SHARE`.

`o` : | Instance to check for being a `TYPE_DAAP_SHARE`.

### IS_DAAP_SHARE_CLASS()

    #define             IS_DAAP_SHARE_CLASS(k)

Checks whether `k` "is a" valid DAAPShareClass structure of type `DAAP_SHARE` or derived.

`k` : | a DAAPShareClass

### DAAP_SHARE_GET_CLASS()

    #define             DAAP_SHARE_GET_CLASS(o)

Get the class structure associated to a DAAPShare instance.

`o` : | a DAAPShare instance.
Returns : | pointer to object class structure.

### DAAPSharePrivate

    typedef struct DAAPSharePrivate DAAPSharePrivate;

### DAAPShareClass

    typedef struct {
    	DMAPShareClass dmap_share_class;
    } DAAPShareClass;

### daap_share_get_type ()

    GType               daap_share_get_type                 (void);

Returns : |

### daap_share_new ()

    DAAPShare *         daap_share_new                      (const char *name,
                                                             const char *password,
                                                             DMAPDb *db,
                                                             DMAPContainerDb *container_db,
                                                             gchar *transcode_mimetype);

Creates a new DAAP share and publishes it using mDNS.

`name` : | The name that will be published by mDNS.
`password` : | A share password or NULL.
`db` : | A media database.
`container_db` : | A container (album) database.
`transcode_mimetype` : | A transcode mimetype or NULL.
Returns : | a pointer to a DAAPShare.