Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add/update copyright notices.
[simgrid.git] / examples / msg / chainsend / iterator.h
index 59a42a2..dfc2693 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2012-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+
 #ifndef KADEPLOY_ITERATOR_H
 #define KADEPLOY_ITERATOR_H
 
@@ -18,6 +24,8 @@ typedef struct xbt_dynar_iterator_struct xbt_dynar_iterator_s;
 
 /* Iterator methods */
 xbt_dynar_iterator_t xbt_dynar_iterator_new(xbt_dynar_t list, xbt_dynar_t (*criteria_fn)(int));
+void xbt_dynar_iterator_reset(xbt_dynar_iterator_t it);
+void xbt_dynar_iterator_seek(xbt_dynar_iterator_t it, int pos);
 void *xbt_dynar_iterator_next(xbt_dynar_iterator_t it);
 void xbt_dynar_iterator_delete(xbt_dynar_iterator_t it);
 
@@ -28,7 +36,6 @@ xbt_dynar_t random_indices_list(int size);
 
 /* Shuffle */
 /**************************************/
-static int rand_int(int n);
 void xbt_dynar_shuffle_in_place(xbt_dynar_t indices_list);
 
 #define xbt_dynar_swap_elements(d, type, i, j) \