#include <stdbool.h>
#include <stdint.h>
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
enum Direction
{
* even no communication at all). approx and accuracy are NULL.
*/
- SCREWED,
- /* The algorithms are screwed. All fields may be NULL.
+ FAIL,
+ /* The algorithms are defective. All fields may be NULL.
*/
APPROX_NB, // This must be the last member
typedef struct
{
unsigned int refCount;
- unsigned int traceNb;
PairFactors** pairFactors;
} AllFactors;
+// This structure is used to return a corrected time value with accuracy
+// bounds
+typedef struct
+{
+ uint64_t time, min, max;
+} CorrectedTime;
+
+
// ConnectionKey-related functions
guint ghfConnectionKeyHash(gconstpointer key);
void destroyPairFactors(PairFactors* factorsCHull);
AllFactors* createAllFactors(const unsigned int traceNb);
-void freeAllFactors(AllFactors* const allFactors);
+void freeAllFactors(AllFactors* const allFactors, const unsigned int traceNb);
#endif