#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
#include <linux/limits.h>
#include <unistd.h>
#include <pthread.h>

#include <dirent.h>

#include <sys/stat.h>

#define SLOWDOWN 's'
#define SPEEDUP 'f'
#define DONOTHING 'n'


//dealing with burst mode
typedef struct burst burst_t;
struct burst
{
   int slow_reps;
   char* slow_rate;
   int fast_reps;
   char* fast_rate;
   int burst_ctr;
   char which_mode;
   char message;
   };

void init_burst( int burst_mode, burst_t *burst);

void handle_burst( burst_t *burst);
