summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_accessor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_accessor.c')
-rw-r--r--src/lib/eina/eina_accessor.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/eina/eina_accessor.c b/src/lib/eina/eina_accessor.c
index fa56a69ab0..9506b86a80 100644
--- a/src/lib/eina/eina_accessor.c
+++ b/src/lib/eina/eina_accessor.c
@@ -167,6 +167,18 @@ eina_accessor_lock(Eina_Accessor *accessor)
167 return EINA_TRUE; 167 return EINA_TRUE;
168} 168}
169 169
170EAPI Eina_Accessor*
171eina_accessor_clone(Eina_Accessor *accessor)
172{
173 EINA_MAGIC_CHECK_ACCESSOR(accessor);
174 EINA_SAFETY_ON_NULL_RETURN_VAL(accessor, NULL);
175
176 if (accessor->clone)
177 return accessor->clone(accessor);
178
179 return NULL;
180}
181
170EAPI Eina_Bool 182EAPI Eina_Bool
171eina_accessor_unlock(Eina_Accessor *accessor) 183eina_accessor_unlock(Eina_Accessor *accessor)
172{ 184{