DPAPShare

## DPAPShare DPAPShare |

## Synopsis

    #define             TYPE_DPAP_SHARE
    #define             DPAP_SHARE                          (o)
    #define             DPAP_SHARE_CLASS                    (k)
    #define             IS_DPAP_SHARE                       (o)
    #define             IS_DPAP_SHARE_CLASS                 (k)
    #define             DPAP_SHARE_GET_CLASS                (o)
    typedef             DPAPSharePrivate;
                        DPAPShareClass;
    GType               dpap_share_get_type                 (void);
    DPAPShare *         dpap_share_new                      (const char *name,
                                                             const char *password,
                                                             gpointer db,
                                                             gpointer container_db,
                                                             gchar *transcode_mimetype);

## Description

## Details

### TYPE_DPAP_SHARE

    #define TYPE_DPAP_SHARE         (dpap_share_get_type ())

The type for DPAPShare.

### DPAP_SHARE()

    #define             DPAP_SHARE(o)

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

### DPAP_SHARE_CLASS()

    #define             DPAP_SHARE_CLASS(k)

Casts a derived DPAPShareClass structure into a DPAPShareClass structure.

`k` : | a valid DPAPShareClass

### IS_DPAP_SHARE()

    #define             IS_DPAP_SHARE(o)

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

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

### IS_DPAP_SHARE_CLASS()

    #define IS_DPAP_SHARE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_DPAP_SHARE))

Checks whether `k` "is a" valid DPAPShareClass structure of type `DPAP_SHARE` or derived.

`k` : | a DPAPShareClass

### DPAP_SHARE_GET_CLASS()

    #define             DPAP_SHARE_GET_CLASS(o)

Get the class structure associated to a DPAPShare instance.

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

### DPAPSharePrivate

    typedef struct DPAPSharePrivate DPAPSharePrivate;

### DPAPShareClass

    typedef struct {
    	DMAPShareClass dmap_share_class;
    } DPAPShareClass;

### dpap_share_get_type ()

    GType               dpap_share_get_type                 (void);

Returns : |

### dpap_share_new ()

    DPAPShare *         dpap_share_new                      (const char *name,
                                                             const char *password,
                                                             gpointer db,
                                                             gpointer container_db,
                                                             gchar *transcode_mimetype);

Creates a new DPAP 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 DPAPShare.