*/
extern char *edg_wll_JWStatToString(enum edg_wll_StatJw_status);
+/**
+ * Convert string CREAM status to numeric code.
+ */
+extern enum edg_wll_StatCream_state edg_wll_StringToCreamStat(const char *name);
+
/**
* Convert numeric CREAM status code to string representation
*/
*/
+#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define UNUSED_VAR
#endif
-static int compare_timestamps(struct timeval a, struct timeval b)
-{
- if ( (a.tv_sec > b.tv_sec) ||
- ((a.tv_sec == b.tv_sec) && (a.tv_usec > b.tv_usec)) ) return 1;
- if ( (a.tv_sec < b.tv_sec) ||
- ((a.tv_sec == b.tv_sec) && (a.tv_usec < b.tv_usec)) ) return -1;
- return 0;
-}
-
/* XXX lookup table */
static char *cream_states[EDG_WLL_NUMBER_OF_CREAM_STATES];