ChamplainMapSourceDesc

## ChamplainMapSourceDesc ChamplainMapSourceDesc — A basic struct to describe map sources. |

## Synopsis

    struct              ChamplainMapSourceDesc;
    ChamplainMapSourceDesc * champlain_map_source_desc_copy (const ChamplainMapSourceDesc *desc);
    void                champlain_map_source_desc_free      (ChamplainMapSourceDesc *desc);
    ChamplainMapSourceDesc * champlain_map_source_desc_new  (void);

## Object Hierarchy

      GBoxed
       +----ChamplainMapSourceDesc

## Description

A basic struct to describe map sources.

## Details

### struct ChamplainMapSourceDesc

    struct ChamplainMapSourceDesc;

Describes a ChamplainMapSource. This is returned by champlain_map_source_factory_get_list.

Since 0.4

### champlain_map_source_desc_copy ()

    ChamplainMapSourceDesc * champlain_map_source_desc_copy (const ChamplainMapSourceDesc *desc);

Makes a copy of the map source desc structure. The result must be freed using champlain_map_source_desc_free. All string fields will be duplicated with g_strdup.

`desc` : | a ChamplainMapSourceDesc
Returns : | an allocated copy of `desc`.

Since 0.4

### champlain_map_source_desc_free ()

    void                champlain_map_source_desc_free      (ChamplainMapSourceDesc *desc);

Frees a desc structure created with champlain_map_source_desc_new or champlain_map_source_desc_copy. All strings will be freed with g_free. The data pointer will not be freed.

`desc` : | a ChamplainMapSourceDesc

Since 0.4

### champlain_map_source_desc_new ()

    ChamplainMapSourceDesc * champlain_map_source_desc_new  (void);

Creates a new instance of ChamplainMapSourceDesc.

Returns : | a newly allocated ChamplainMapSourceDesc to be freed with champlain_map_source_desc_free

Since 0.4