X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bt-vhci.c;h=9d277c32bf0c274f7340d53916337e9a43b9e276;hb=6ac1fca4ef29d8deaea50b0c7a45e0e9e59ff656;hp=4fa1db45e76070091c2f20f3177f70d8ee0b8bd4;hpb=2e9b08e59e241fe0119463fc5192e15a6403eded;p=mirror_qemu.git diff --git a/bt-vhci.c b/bt-vhci.c index 4fa1db45e7..9d277c32bf 100644 --- a/bt-vhci.c +++ b/bt-vhci.c @@ -13,17 +13,15 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * You should have received a copy of the GNU General Public License along + * with this program; if not, see . */ +#include "qemu/osdep.h" #include "qemu-common.h" -#include "qemu-char.h" -#include "sysemu.h" -#include "net.h" +#include "sysemu/bt.h" #include "hw/bt.h" +#include "qemu/main-loop.h" #define VHCI_DEV "/dev/vhci" #define VHCI_UDEV "/dev/hci_vhci" @@ -159,12 +157,12 @@ void bt_vhci_init(struct HCIInfo *info) exit(-1); } - s = qemu_mallocz(sizeof(struct bt_vhci_s)); + s = g_malloc0(sizeof(struct bt_vhci_s)); s->fd = fd; s->info = info ?: qemu_next_hci(); s->info->opaque = s; s->info->evt_recv = vhci_out_hci_packet_event; s->info->acl_recv = vhci_out_hci_packet_acl; - qemu_set_fd_handler(s->fd, vhci_read, 0, s); + qemu_set_fd_handler(s->fd, vhci_read, NULL, s); }