#ifndef FLASH_H_
#define FLASH_H_

#include "globals.h"
#include <glib.h>

void initFlash(FlashStruct *mem, gboolean reset_to_defaults, int starting_location);
void writeUserBlock(FlashStruct *mem, int addr, int numbytes);
void fixFlash(FlashStruct *mem);
void stopFlashWriterThread();
void remount_root_as_writeable(gboolean start);

#endif