red-brick: Change all flags parameters from uint16 to uint32
Fix typo
red-brick: Remove two unused file functions
red-brick: Add file events callback