Package the variables describing the swap status in a structure

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>