Eina_Value_Value_group

## Macros

#define | EINA_INLINE_VALUE_UTIL_X_
#define | eina_value_util_type_size eina_value_type_size
| Legacy compat: calls eina_value_type_size().
#define | eina_value_util_type_offset eina_value_type_offset
| Legacy compat: calls eina_value_type_offset().
#define | eina_value_util_int_new eina_value_int_new
| Legacy compat: calls eina_value_int_new().
#define | eina_value_util_double_new eina_value_double_new
| Legacy compat: calls eina_value_double_new().
#define | eina_value_util_bool_new eina_value_bool_new
| Legacy compat: calls eina_value_bool_new().
#define | eina_value_util_string_new eina_value_string_new
| Legacy compat: calls eina_value_string_new().
#define | eina_value_util_stringshare_new eina_value_stringshare_new
| Legacy compat: calls eina_value_stringshare_new().
#define | eina_value_util_time_new eina_value_time_new
| Legacy compat: calls eina_value_time_new().
#define | eina_value_util_dup eina_value_dup
| Legacy compat: calls eina_value_dup().
#define | eina_value_util_stringshare_copy eina_value_stringshare_copy
| Legacy compat: calls eina_value_stringshare_copy().
#define | eina_value_util_string_copy eina_value_string_copy
| Legacy compat: calls eina_value_string_copy().
#define | EINA_VALUE_NEW(Compress_Type, Uppercase_Compress_Type, Type)
| For internal use only.
#define | EINA_VALUE_INIT(Compress_Type, Uppercase_Compress_Type, Type)
| For internal use only.
#define | EINA_VALUE_GET(Compress_Type, Uppercase_Compress_Type, Type)
| For internal use only.
#define | EINA_VALUE_CONVERT(Compress_Type, Uppercase_Compress_Type, Type)
| For internal use only.

## Functions

static size_t | eina_value_type_size (const Eina_Value_Type *type)
| Get size of Eina_Value_Type based on C type.
static unsigned int | eina_value_type_offset (const Eina_Value_Type *type, unsigned int base)
| Get padding of Eina_Value_Type based on C type and base padding.
static Eina_Value * | eina_value_uchar_new (unsigned char c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_ushort_new (unsigned short c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_uint_new (unsigned int c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_ulong_new (unsigned long c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_uint64_new (uint64_t c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_char_new (char c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_short_new (short c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_int_new (int c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_long_new (long c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_int64_new (int64_t c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_float_new (float c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_double_new (double c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_bool_new (Eina_Bool c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_string_new (const char *c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_stringshare_new (const char *c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_time_new (time_t c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value * | eina_value_error_new (Eina_Error c)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value | eina_value_uchar_init (unsigned char c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_ushort_init (unsigned short c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_uint_init (unsigned int c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_ulong_init (unsigned long c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_uint64_init (uint64_t c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_char_init (char c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_short_init (short c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_int_init (int c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_long_init (long c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_int64_init (int64_t c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_float_init (float c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_double_init (double c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_bool_init (Eina_Bool c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_string_init (const char *c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_stringshare_init (const char *c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_time_init (time_t c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Value | eina_value_error_init (Eina_Error c)
| Initialize Eina_Value containing the passed parameter.
static Eina_Bool | eina_value_uchar_get (const Eina_Value *v, unsigned char *c)
| Check value type and get contents.
static Eina_Bool | eina_value_ushort_get (const Eina_Value *v, unsigned short *c)
| Check value type and get contents.
static Eina_Bool | eina_value_uint_get (const Eina_Value *v, unsigned int *c)
| Check value type and get contents.
static Eina_Bool | eina_value_ulong_get (const Eina_Value *v, unsigned long *c)
| Check value type and get contents.
static Eina_Bool | eina_value_uint64_get (const Eina_Value *v, uint64_t *c)
| Check value type and get contents.
static Eina_Bool | eina_value_char_get (const Eina_Value *v, char *c)
| Check value type and get contents.
static Eina_Bool | eina_value_short_get (const Eina_Value *v, short *c)
| Check value type and get contents.
static Eina_Bool | eina_value_int_get (const Eina_Value *v, int *c)
| Check value type and get contents.
static Eina_Bool | eina_value_long_get (const Eina_Value *v, long *c)
| Check value type and get contents.
static Eina_Bool | eina_value_int64_get (const Eina_Value *v, int64_t *c)
| Check value type and get contents.
static Eina_Bool | eina_value_float_get (const Eina_Value *v, float *c)
| Check value type and get contents.
static Eina_Bool | eina_value_double_get (const Eina_Value *v, double *c)
| Check value type and get contents.
static Eina_Bool | eina_value_bool_get (const Eina_Value *v, Eina_Bool *c)
| Check value type and get contents.
static Eina_Bool | eina_value_string_get (const Eina_Value *v, const char **c)
| Check value type and get contents.
static Eina_Bool | eina_value_stringshare_get (const Eina_Value *v, const char **c)
| Check value type and get contents.
static Eina_Bool | eina_value_time_get (const Eina_Value *v, time_t *c)
| Check value type and get contents.
static Eina_Bool | eina_value_error_get (const Eina_Value *v, Eina_Error *c)
| Check value type and get contents.
static Eina_Bool | eina_value_uchar_convert (const Eina_Value *v, unsigned char *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_ushort_convert (const Eina_Value *v, unsigned short *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_uint_convert (const Eina_Value *v, unsigned int *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_ulong_convert (const Eina_Value *v, unsigned long *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_uint64_convert (const Eina_Value *v, uint64_t *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_char_convert (const Eina_Value *v, char *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_short_convert (const Eina_Value *v, short *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_int_convert (const Eina_Value *v, int *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_long_convert (const Eina_Value *v, long *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_int64_convert (const Eina_Value *v, int64_t *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_float_convert (const Eina_Value *v, float *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_double_convert (const Eina_Value *v, double *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_bool_convert (const Eina_Value *v, Eina_Bool *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_string_convert (const Eina_Value *v, const char **c)
| Check value type and convert contents.
static Eina_Bool | eina_value_stringshare_convert (const Eina_Value *v, const char **c)
| Check value type and convert contents.
static Eina_Bool | eina_value_time_convert (const Eina_Value *v, time_t *c)
| Check value type and convert contents.
static Eina_Bool | eina_value_error_convert (const Eina_Value *v, Eina_Error *c)
| Check value type and convert contents.
static Eina_Value * | eina_value_dup (const Eina_Value *val)
| Create a new Eina_Value containing the passed parameter.
static Eina_Value | eina_value_reference_copy (const Eina_Value *val)
| Return a reference to Eina_Value containing a copy of the passed parameter.
static Eina_Bool | eina_value_stringshare_copy (const Eina_Value *val, Eina_Stringshare **str)
| Copy the stringshare in the passed Eina_Value.
static Eina_Bool | eina_value_string_copy (const Eina_Value *val, char **str)
| Copy the string in the passed Eina_Value.

## Detailed Description

## Macro Definition Documentation

## eina_value_util_type_size

#define eina_value_util_type_size eina_value_type_size

Legacy compat: calls eina_value_type_size().

Deprecated

Since
  1.12

## eina_value_util_type_offset

#define eina_value_util_type_offset eina_value_type_offset

Legacy compat: calls eina_value_type_offset().

Deprecated

Since
  1.12

## eina_value_util_int_new

#define eina_value_util_int_new eina_value_int_new

Legacy compat: calls eina_value_int_new().

Deprecated

Since
  1.12

## eina_value_util_double_new

#define eina_value_util_double_new eina_value_double_new

Legacy compat: calls eina_value_double_new().

Deprecated

Since
  1.12

## eina_value_util_bool_new

#define eina_value_util_bool_new eina_value_bool_new

Legacy compat: calls eina_value_bool_new().

Deprecated

Since
  1.12

## eina_value_util_string_new

#define eina_value_util_string_new eina_value_string_new

Legacy compat: calls eina_value_string_new().

Deprecated

Since
  1.12

## eina_value_util_stringshare_new

#define eina_value_util_stringshare_new eina_value_stringshare_new

Legacy compat: calls eina_value_stringshare_new().

Deprecated

Since
  1.12

## eina_value_util_time_new

#define eina_value_util_time_new eina_value_time_new

Legacy compat: calls eina_value_time_new().

Deprecated

Since
  1.12

## eina_value_util_dup

#define eina_value_util_dup eina_value_dup

Legacy compat: calls eina_value_dup().

Deprecated

Since
  1.12

## eina_value_util_stringshare_copy

#define eina_value_util_stringshare_copy eina_value_stringshare_copy

Legacy compat: calls eina_value_stringshare_copy().

Deprecated

Since
  1.12

## eina_value_util_string_copy

#define eina_value_util_string_copy eina_value_string_copy

Legacy compat: calls eina_value_string_copy().

Deprecated

Since
  1.12

## Function Documentation

## eina_value_type_size()

size_t eina_value_type_size | ( | const Eina_Value_Type * | type | ) |

inline static

Get size of Eina_Value_Type based on C type.

Parameters

  type | The type to get the size of

Returns
  The size of the type

Since
  1.21

Referenced by eina_value_type_offset().

## eina_value_type_offset()

unsigned int eina_value_type_offset | ( | const Eina_Value_Type * | type,
|  | unsigned int | base )

inline static

Get padding of Eina_Value_Type based on C type and base padding.

Parameters

  type | The type to get the offset of
  base | The existing base size

Returns
  The offset of the type

Since
  1.21

References eina_value_type_size().

## eina_value_uchar_new()

Eina_Value * eina_value_uchar_new | ( | unsigned char | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_ushort_new()

Eina_Value * eina_value_ushort_new | ( | unsigned short | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uint_new()

Eina_Value * eina_value_uint_new | ( | unsigned int | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_ulong_new()

Eina_Value * eina_value_ulong_new | ( | unsigned long | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uint64_new()

Eina_Value * eina_value_uint64_new | ( | uint64_t | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_char_new()

Eina_Value * eina_value_char_new | ( | char | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_short_new()

Eina_Value * eina_value_short_new | ( | short | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_int_new()

Eina_Value * eina_value_int_new | ( | int | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_long_new()

Eina_Value * eina_value_long_new | ( | long | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_int64_new()

Eina_Value * eina_value_int64_new | ( | int64_t | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_float_new()

Eina_Value * eina_value_float_new | ( | float | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_double_new()

Eina_Value * eina_value_double_new | ( | double | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_bool_new()

Eina_Value * eina_value_bool_new | ( | Eina_Bool | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_string_new()

Eina_Value * eina_value_string_new | ( | const char * | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_stringshare_new()

Eina_Value * eina_value_stringshare_new | ( | const char * | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_time_new()

Eina_Value * eina_value_time_new | ( | time_t | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_error_new()

Eina_Value * eina_value_error_new | ( | Eina_Error | c | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uchar_init()

Eina_Value eina_value_uchar_init | ( | unsigned char | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_ushort_init()

Eina_Value eina_value_ushort_init | ( | unsigned short | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uint_init()

Eina_Value eina_value_uint_init | ( | unsigned int | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_ulong_init()

Eina_Value eina_value_ulong_init | ( | unsigned long | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uint64_init()

Eina_Value eina_value_uint64_init | ( | uint64_t | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_char_init()

Eina_Value eina_value_char_init | ( | char | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_short_init()

Eina_Value eina_value_short_init | ( | short | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_int_init()

Eina_Value eina_value_int_init | ( | int | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_long_init()

Eina_Value eina_value_long_init | ( | long | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_int64_init()

Eina_Value eina_value_int64_init | ( | int64_t | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_float_init()

Eina_Value eina_value_float_init | ( | float | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_double_init()

Eina_Value eina_value_double_init | ( | double | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_bool_init()

Eina_Value eina_value_bool_init | ( | Eina_Bool | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_string_init()

Eina_Value eina_value_string_init | ( | const char * | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_stringshare_init()

Eina_Value eina_value_stringshare_init | ( | const char * | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_time_init()

Eina_Value eina_value_time_init | ( | time_t | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_error_init()

Eina_Value eina_value_error_init | ( | Eina_Error | c | ) |

inline static

Initialize Eina_Value containing the passed parameter.

Parameters

  c | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_uchar_get()

Eina_Bool eina_value_uchar_get | ( | const Eina_Value * | v,
|  | unsigned char * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_ushort_get()

Eina_Bool eina_value_ushort_get | ( | const Eina_Value * | v,
|  | unsigned short * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_uint_get()

Eina_Bool eina_value_uint_get | ( | const Eina_Value * | v,
|  | unsigned int * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_ulong_get()

Eina_Bool eina_value_ulong_get | ( | const Eina_Value * | v,
|  | unsigned long * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_uint64_get()

Eina_Bool eina_value_uint64_get | ( | const Eina_Value * | v,
|  | uint64_t * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_char_get()

Eina_Bool eina_value_char_get | ( | const Eina_Value * | v,
|  | char * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_short_get()

Eina_Bool eina_value_short_get | ( | const Eina_Value * | v,
|  | short * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_int_get()

Eina_Bool eina_value_int_get | ( | const Eina_Value * | v,
|  | int * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_long_get()

Eina_Bool eina_value_long_get | ( | const Eina_Value * | v,
|  | long * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_int64_get()

Eina_Bool eina_value_int64_get | ( | const Eina_Value * | v,
|  | int64_t * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_float_get()

Eina_Bool eina_value_float_get | ( | const Eina_Value * | v,
|  | float * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_double_get()

Eina_Bool eina_value_double_get | ( | const Eina_Value * | v,
|  | double * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_bool_get()

Eina_Bool eina_value_bool_get | ( | const Eina_Value * | v,
|  | Eina_Bool * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_string_get()

Eina_Bool eina_value_string_get | ( | const Eina_Value * | v,
|  | const char ** | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_stringshare_get()

Eina_Bool eina_value_stringshare_get | ( | const Eina_Value * | v,
|  | const char ** | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_time_get()

Eina_Bool eina_value_time_get | ( | const Eina_Value * | v,
|  | time_t * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_error_get()

Eina_Bool eina_value_error_get | ( | const Eina_Value * | v,
|  | Eina_Error * | c )

inline static

Check value type and get contents.

Parameters

  v | The value to check type and get contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.21

## eina_value_uchar_convert()

Eina_Bool eina_value_uchar_convert | ( | const Eina_Value * | v,
|  | unsigned char * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_ushort_convert()

Eina_Bool eina_value_ushort_convert | ( | const Eina_Value * | v,
|  | unsigned short * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_uint_convert()

Eina_Bool eina_value_uint_convert | ( | const Eina_Value * | v,
|  | unsigned int * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_ulong_convert()

Eina_Bool eina_value_ulong_convert | ( | const Eina_Value * | v,
|  | unsigned long * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_uint64_convert()

Eina_Bool eina_value_uint64_convert | ( | const Eina_Value * | v,
|  | uint64_t * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_char_convert()

Eina_Bool eina_value_char_convert | ( | const Eina_Value * | v,
|  | char * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_short_convert()

Eina_Bool eina_value_short_convert | ( | const Eina_Value * | v,
|  | short * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_int_convert()

Eina_Bool eina_value_int_convert | ( | const Eina_Value * | v,
|  | int * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_long_convert()

Eina_Bool eina_value_long_convert | ( | const Eina_Value * | v,
|  | long * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_int64_convert()

Eina_Bool eina_value_int64_convert | ( | const Eina_Value * | v,
|  | int64_t * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_float_convert()

Eina_Bool eina_value_float_convert | ( | const Eina_Value * | v,
|  | float * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_double_convert()

Eina_Bool eina_value_double_convert | ( | const Eina_Value * | v,
|  | double * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_bool_convert()

Eina_Bool eina_value_bool_convert | ( | const Eina_Value * | v,
|  | Eina_Bool * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_string_convert()

Eina_Bool eina_value_string_convert | ( | const Eina_Value * | v,
|  | const char ** | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_stringshare_convert()

Eina_Bool eina_value_stringshare_convert | ( | const Eina_Value * | v,
|  | const char ** | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_time_convert()

Eina_Bool eina_value_time_convert | ( | const Eina_Value * | v,
|  | time_t * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_error_convert()

Eina_Bool eina_value_error_convert | ( | const Eina_Value * | v,
|  | Eina_Error * | c )

inline static

Check value type and convert contents.

Parameters

  v | The value to check type and convert contents.
  c | Where to store the value contents.

Returns
  EINA_TRUE if type matches and fetched contents, EINA_FALSE on different type or failures.

Since
  1.22

## eina_value_dup()

Eina_Value * eina_value_dup | ( | const Eina_Value * | val | ) |

inline static

Create a new Eina_Value containing the passed parameter.

Parameters

  val | The value to use

Returns
  The Eina_Value

Since
  1.21

## eina_value_reference_copy()

Eina_Value eina_value_reference_copy | ( | const Eina_Value * | val | ) |

inline static

Return a reference to Eina_Value containing a copy of the passed parameter.

Parameters

  val | The value to use

Returns
  The Eina_Value

Since
  1.21

References EINA_SAFETY_ON_NULL_RETURN_VAL, eina_value_copy(), eina_value_new(), and EINA_VALUE_TYPE_ERROR.

## eina_value_stringshare_copy()

Eina_Bool eina_value_stringshare_copy | ( | const Eina_Value * | val,
|  | Eina_Stringshare ** | str )

inline static

Copy the stringshare in the passed Eina_Value.

Parameters

  val | The value to copy
  str | The pointer to copy the stringshare to

Returns
  `EINA_TRUE` on success

Since
  1.21

References eina_value_copy(), EINA_VALUE_EMPTY, and EINA_VALUE_TYPE_ERROR.

## eina_value_string_copy()

Eina_Bool eina_value_string_copy | ( | const Eina_Value * | val,
|  | char ** | str )

inline static

Copy the string in the passed Eina_Value.

Parameters

  val | The value to copy
  str | The pointer to copy the string to

Returns
  `EINA_TRUE` on success

Since
  1.21

References EINA_FALSE, EINA_SAFETY_ON_FALSE_RETURN_VAL, EINA_SAFETY_ON_NULL_RETURN_VAL, eina_stringshare_ref(), EINA_TRUE, and EINA_VALUE_TYPE_STRINGSHARE.