diff options
author | Cedric Bail <cedric.bail@samsung.com> | 2013-11-04 12:45:25 +0900 |
---|---|---|
committer | Cedric Bail <cedric.bail@samsung.com> | 2013-11-04 12:45:25 +0900 |
commit | 613947ac0df4205e197e0e129ff96f5cb83c707e (patch) | |
tree | 79e16f838d0bb64d760032165360c4236f9bac79 /src/lib/eina/eina_cow.h | |
parent | 05e17cb6b61d47897e8f019576cf7891aba97701 (diff) |
eina: make eina_cow_free reset the pointer to the default read only value.
Diffstat (limited to '')
-rw-r--r-- | src/lib/eina/eina_cow.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/eina/eina_cow.h b/src/lib/eina/eina_cow.h index 875e1fea55..10cb34d28d 100644 --- a/src/lib/eina/eina_cow.h +++ b/src/lib/eina/eina_cow.h | |||
@@ -79,8 +79,12 @@ EAPI const Eina_Cow_Data *eina_cow_alloc(Eina_Cow *cow) EINA_WARN_UNUSED_RESULT; | |||
79 | /** | 79 | /** |
80 | * @brief Free a pointer from the pool. | 80 | * @brief Free a pointer from the pool. |
81 | * @param cow The pool to gave back memory to. | 81 | * @param cow The pool to gave back memory to. |
82 | * @param data The data to give back. | ||
83 | * | ||
84 | * @note To simplify the caller code *data will point to the default | ||
85 | * read only state after the call to this function. | ||
82 | */ | 86 | */ |
83 | EAPI void eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data *data); | 87 | EAPI void eina_cow_free(Eina_Cow *cow, const Eina_Cow_Data **data); |
84 | 88 | ||
85 | /** | 89 | /** |
86 | * @brief Get a writable pointer from a const pointer. | 90 | * @brief Get a writable pointer from a const pointer. |