#include <sys/time.h>
-enum cmd_id_enum { OPEN, CLOSE, TOGGLE, RESET, STATUS, LOG };
+enum cmd_id_enum { OPEN, CLOSE, TOGGLE, RESET, STATUS, LOG , LISTEN };
typedef enum cmd_id_enum cmd_id_t;
struct cmd_struct {
typedef struct cmd_struct cmd_t;
int cmd_push(cmd_t** first, int fd, cmd_id_t cmd, const char* param);
-int cmd_has_expired(const cmd_t cmd);
+void cmd_sent(cmd_t* cmd);
+int cmd_has_expired(cmd_t cmd);
void cmd_pop(cmd_t** first);
void cmd_clear(cmd_t** first);