Miscellaneous utils

## Miscellaneous utils Miscellaneous utils |

## Synopsis

    #define             GS_DEFINE_QUARK                     (quark_name, String)
    GnomeScanFormat*    gnome_scan_format_new               (gchar *name,
                                                             gchar *domain,
                                                             gchar *description,
                                                             gchar **mime_types,
                                                             gchar **extensions);
                        GnomeScanFormat;
    enum                GnomeScanUnit;

## Description

## Details

### GS_DEFINE_QUARK()

    #define             GS_DEFINE_QUARK(quark_name, String)

Generate a function that generate a static quark from `String`.

For example:

    GS_DEFINE_QUARK (foo_bar, FooBar);

expands to:

    GQuark
    gs_foo_bar_quark () {
    	static GQuark quark = 0;
    	if (!quark) {
    		quark = g_quark_from_static_string ("FooBar");
    	}
    	return quark;
    }

`quark_name` : | function prefix
`String` : | The string passed to `g_quark_from_string()`

### gnome_scan_format_new ()

    GnomeScanFormat*    gnome_scan_format_new               (gchar *name,
                                                             gchar *domain,
                                                             gchar *description,
                                                             gchar **mime_types,
                                                             gchar **extensions);

`name` : | format name
`domain` : | translation domain
`description` : | description
`mime_types` : | list of mime types for this format
`extensions` : | list of suffixes for file of this format.
Returns : | a new GnomeScanFormat

### GnomeScanFormat

    typedef struct {
    	gchar *name;
    	gchar *domain;
    	gchar *description;
    	gchar **mime_types;
    	gchar **extensions;
    } GnomeScanFormat;

### enum GnomeScanUnit

    typedef enum /*< lowercase_name=gs_param_unit,prefix=GS_UNIT >*/
    {
    	GS_UNIT_NONE=-1,
    	GS_UNIT_PIXEL=GTK_UNIT_PIXEL,
    	GS_UNIT_POINT=GTK_UNIT_POINTS,
    	GS_UNIT_MM=GTK_UNIT_MM,
    	GS_UNIT_BIT,
    	GS_UNIT_DPI,
    	GS_UNIT_PERCENT,
    	GS_UNIT_MICROSECOND
    } GnomeScanUnit;