aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eina/eina_value.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-08-24 11:13:56 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-08-24 11:13:56 -0300
commit9ac1cb4fadadb667483845a1471f091f6a60780c (patch)
treeb5f758ac9eaaf185578f3a7dcbb10e9e21ce9dd3 /src/lib/eina/eina_value.h
parentCPUMonitor theme: Don't set aspect in theme. (diff)
downloadefl-9ac1cb4fadadb667483845a1471f091f6a60780c.tar.gz
eina_value: add helper: eina_value_struct_desc_get().
this helper will validate a struct and fetch its description, also checking if the user version matches.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_value.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/eina/eina_value.h b/src/lib/eina/eina_value.h
index a1ed51df5f..3617bfbea6 100644
--- a/src/lib/eina/eina_value.h
+++ b/src/lib/eina/eina_value.h
@@ -3047,6 +3047,16 @@ static inline Eina_Bool eina_value_struct_setup(Eina_Value *value,
const Eina_Value_Struct_Desc *desc) EINA_ARG_NONNULL(1, 2);
/**
+ * @brief Checks for a struct and get its description.
+ * @param value Value object
+ * @return structure description, with all members and size.
+ * on failure, #NULL is returned.
+ *
+ * @since 1.21
+ */
+static inline const Eina_Value_Struct_Desc *eina_value_struct_desc_get(const Eina_Value *value) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
+
+/**
* @brief Sets the generic value in an struct member.
* @param value Source value object
* @param name Name to find the member