summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_types.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-20 11:45:57 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-03-20 11:48:44 +0100
commitd0f3357f7778f415f4dae25e2fac4bcc5d1ea8d1 (patch)
tree3a534013d93f25ddb03eb75314018e5531cccc6a /src/lib/eina/eina_types.h
parentb71a17b9db690149524a166027c432050de07586 (diff)
TES
Conflicts: src/lib/eina/eina_list.c src/lib/eina/eina_types.h
Diffstat (limited to 'src/lib/eina/eina_types.h')
-rw-r--r--src/lib/eina/eina_types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/eina/eina_types.h b/src/lib/eina/eina_types.h
index d74d200a32..d37b20f71f 100644
--- a/src/lib/eina/eina_types.h
+++ b/src/lib/eina/eina_types.h
@@ -334,6 +334,21 @@ typedef int (*Eina_Compare_Cb)(const void *data1, const void *data2);
334#define EINA_COMPARE_CB(function) ((Eina_Compare_Cb)function) 334#define EINA_COMPARE_CB(function) ((Eina_Compare_Cb)function)
335 335
336/** 336/**
337 * @typedef Eina_Random_Cb
338 * Function used in shuffling functions. An integer betwen min and max
339 * inclusive must be returned.
340 *
341 * @since 1.8
342 */
343typedef int (*Eina_Random_Cb)(const int min, const int max);
344
345/**
346 * @def EINA_RANDOM_CB
347 * Macro to cast to Eina_Random_Cb.
348 */
349#define EINA_RANDOM_CB(function) ((Eina_Random_Cb)function)
350
351/**
337 * @typedef Eina_Each_Cb 352 * @typedef Eina_Each_Cb
338 * A callback type used when iterating over a container. 353 * A callback type used when iterating over a container.
339 */ 354 */