## gcm-enum

gcm-enum — Common routines to convert enumerated values to strings and vice versa.

## Synopsis

    enum                GcmIntent;
    enum                GcmProfileKind;
    enum                GcmColorspace;
    enum                GcmDeviceKind;
    GcmIntent           gcm_intent_from_string              (const gchar *intent);
    const gchar *       gcm_intent_to_string                (GcmIntent intent);
    GcmProfileKind      gcm_profile_kind_from_string        (const gchar *profile_kind);
    const gchar *       gcm_profile_kind_to_string          (GcmProfileKind profile_kind);
    const gchar *       gcm_colorspace_to_string            (GcmColorspace colorspace);
    GcmColorspace       gcm_colorspace_from_string          (const gchar *colorspace);
    GcmDeviceKind       gcm_device_kind_from_string         (const gchar *kind);
    const gchar *       gcm_device_kind_to_string           (GcmDeviceKind kind);

## Description

Functions to convert enumerated values to strings and vice versa.

## Details

### enum GcmIntent

    typedef enum {
    	GCM_INTENT_UNKNOWN,
    	GCM_INTENT_PERCEPTUAL,
    	GCM_INTENT_RELATIVE_COLORMETRIC,
    	GCM_INTENT_SATURATION,
    	GCM_INTENT_ABSOLUTE_COLORMETRIC,
    	GCM_INTENT_LAST
    } GcmIntent;

### enum GcmProfileKind

    typedef enum {
    	GCM_PROFILE_KIND_UNKNOWN,
    	GCM_PROFILE_KIND_INPUT_DEVICE,
    	GCM_PROFILE_KIND_DISPLAY_DEVICE,
    	GCM_PROFILE_KIND_OUTPUT_DEVICE,
    	GCM_PROFILE_KIND_DEVICELINK,
    	GCM_PROFILE_KIND_COLORSPACE_CONVERSION,
    	GCM_PROFILE_KIND_ABSTRACT,
    	GCM_PROFILE_KIND_NAMED_COLOR,
    	GCM_PROFILE_KIND_LAST
    } GcmProfileKind;

### enum GcmColorspace

    typedef enum {
    	GCM_COLORSPACE_UNKNOWN,
    	GCM_COLORSPACE_XYZ,
    	GCM_COLORSPACE_LAB,
    	GCM_COLORSPACE_LUV,
    	GCM_COLORSPACE_YCBCR,
    	GCM_COLORSPACE_YXY,
    	GCM_COLORSPACE_RGB,
    	GCM_COLORSPACE_GRAY,
    	GCM_COLORSPACE_HSV,
    	GCM_COLORSPACE_CMYK,
    	GCM_COLORSPACE_CMY,
    	GCM_COLORSPACE_LAST
    } GcmColorspace;

### enum GcmDeviceKind

    typedef enum {
    	GCM_DEVICE_KIND_UNKNOWN,
    	GCM_DEVICE_KIND_DISPLAY,
    	GCM_DEVICE_KIND_SCANNER,
    	GCM_DEVICE_KIND_PRINTER,
    	GCM_DEVICE_KIND_CAMERA,
    	GCM_DEVICE_KIND_LAST
    } GcmDeviceKind;

### gcm_intent_from_string ()

    GcmIntent           gcm_intent_from_string              (const gchar *intent);

Since 2.91.1

### gcm_intent_to_string ()

    const gchar *       gcm_intent_to_string                (GcmIntent intent);

Since 2.91.1

### gcm_profile_kind_from_string ()

    GcmProfileKind      gcm_profile_kind_from_string        (const gchar *profile_kind);

### gcm_profile_kind_to_string ()

    const gchar *       gcm_profile_kind_to_string          (GcmProfileKind profile_kind);

Since 2.91.1

### gcm_colorspace_to_string ()

    const gchar *       gcm_colorspace_to_string            (GcmColorspace colorspace);

Since 2.91.1

### gcm_colorspace_from_string ()

    GcmColorspace       gcm_colorspace_from_string          (const gchar *colorspace);

Since 2.91.1

### gcm_device_kind_from_string ()

    GcmDeviceKind       gcm_device_kind_from_string         (const gchar *kind);

### gcm_device_kind_to_string ()

    const gchar *       gcm_device_kind_to_string           (GcmDeviceKind kind);