The reason is because although plugin.h refers to DBusError (in the typedef) and plugin_req_auth refers to bdaddr_t, there are no #includes for either <bluetooth/bluetooth.h> and <dbus/dbus.h> in the plugin.h file.
DS