summaryrefslogtreecommitdiff
path: root/src/common/array.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-12 21:28:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-12 21:28:01 (GMT)
commit5fce21379baac06b7b9359c4b0fcb7fb3867c301 (patch)
tree19bf2943fe5a8a46bae227b8863bc9714fb3ec66 /src/common/array.h
parent8ee7fc5db965adaa835ca87bb3d2e2d43e52fbbb (diff)
Added the ELF strings to the preloaded instruction list.
Diffstat (limited to 'src/common/array.h')
-rw-r--r--src/common/array.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/array.h b/src/common/array.h
index bdb1ae4..546de1a 100644
--- a/src/common/array.h
+++ b/src/common/array.h
@@ -33,6 +33,9 @@
/* Type déclaratif de tableau compressé, à 0 ou 1 élément */
typedef void *flat_array_t;
+/* Parcours d'éléments */
+typedef void (* item_notify_cb) (void *);
+
/* Verrouille l'accès à un tableau compressé. */
void lock_flat_array(flat_array_t **);
@@ -43,6 +46,9 @@ void unlock_flat_array(flat_array_t **);
/* Réinitialise un tableau sans traitement excessif. */
void reset_flat_array(flat_array_t **);
+/* Copie le contenu d'un tableau d'éléments dans un autre. */
+void copy_flat_array_items(flat_array_t **, flat_array_t **, size_t, item_notify_cb);
+
/* Indique la quantité d'éléments présents dans le tableau. */
size_t count_flat_array_items(const flat_array_t *);