vendor

vendor

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

Details

struct lglVendor

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


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.