The lglVendor Structure

## The lglVendor Structure The lglVendor Structure — Vendor definitions |

## Synopsis

    #include <libglabels/lgl-vendor.h>

    struct              lglVendor;
    lglVendor *         lgl_vendor_new                      (gchar *name);
    lglVendor *         lgl_vendor_dup                      (const lglVendor *orig);
    void                lgl_vendor_free                     (lglVendor *vendor);

## Description

This section describes a structure for representing vendor data.

## Details

### struct lglVendor

    struct lglVendor {
            gchar               *name;           /* Vendor name */
            gchar               *url;            /* Vendor URL */
    };

This structure defines a vendor.

gchar *`name`; | Vendor name. (e.g. "Avery")
gchar *`url`; | URL to vendor website

### lgl_vendor_new ()

    lglVendor *         lgl_vendor_new                      (gchar *name);

Allocates and constructs a new lglVendor structure.

`name` : | Localized name of vendor.
Returns : | a pointer to a newly allocated lglVendor structure.

### lgl_vendor_dup ()

    lglVendor *         lgl_vendor_dup                      (const lglVendor *orig);

Duplicates an existing lglVendor structure.

`orig` : | lglVendor structure to be duplicated.
Returns : | a pointer to a newly allocated lglVendor structure.

### lgl_vendor_free ()

    void                lgl_vendor_free                     (lglVendor *vendor);

Free all memory associated with an existing lglVendor structure.

`vendor` : | pointer to lglVendor structure to be freed.