state.h
356 Bytes
#define STASH_MAGIC 0xbabe0002
#define STASH_MAGIC_MASK 0xffff0000
#define STASH_VERSION_MASK 0x0000ffff
/* Make sure the magic part is good, version doesn't matter */
#define STASH_OKAY(magic) \
( ((magic) & STASH_MAGIC_MASK) == (STASH_MAGIC & STASH_MAGIC_MASK) )
#define STASH_VERSION(magic) ((magic) & STASH_VERSION_MASK)