core: Remove warning for unitialized data

Compiler doesn't seem to handle switch code path correctly for
detection here. If the msg is UNNOTIFY then n_msgid must be set from
an initialized value (either 0 in case of error or msgid set during
registration for the notification) from unregister_notification. Just
add a default value and make everybody happy.

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Fix compiler warning with safe cast

As a integer between [0, RAND_MAX] % (pos integer < 2^8) + 1 is less
than 2^16 this cast is safe and makes the compiler happy.

Signed-off-by: William Douglas <william.douglas@intel.com>
test: Fix compiler warning with memcpy

Because dereferencing a type-punned point violates strict aliasing and
since we've been using memcpy earlier in this code block, do a memcpy
instead with a size instead of casting magic.

Signed-off-by: William Douglas <william.douglas@intel.com>
Use rdynamic in CFLAGS

Because we are explicit with exporting symbols in our shared library,
just build things with all symbols being exported and let nanny
libtool figure out the rest.

Signed-off-by: William Douglas <william.douglas@intel.com>
Rename bt-daemon.h to buxton.h

Signed-off-by: William Douglas <william.douglas@intel.com>
shared: Split direct functions into their own file