block.c (04df765ab449df24666269b0de0caf6ff250c568) block.c (20a9e77dfabb3e664c0873726be1540175a4fda1)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3803 unchanged lines hidden (view full) ---

3812BlockDriverState *bdrv_next(BlockDriverState *bs)
3813{
3814 if (!bs) {
3815 return QTAILQ_FIRST(&bdrv_states);
3816 }
3817 return QTAILQ_NEXT(bs, device_list);
3818}
3819
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 3803 unchanged lines hidden (view full) ---

3812BlockDriverState *bdrv_next(BlockDriverState *bs)
3813{
3814 if (!bs) {
3815 return QTAILQ_FIRST(&bdrv_states);
3816 }
3817 return QTAILQ_NEXT(bs, device_list);
3818}
3819
3820const char *bdrv_get_node_name(const BlockDriverState *bs)
3821{
3822 return bs->node_name;
3823}
3824
3820/* TODO check what callers really want: bs->node_name or blk_name() */
3821const char *bdrv_get_device_name(const BlockDriverState *bs)
3822{
3823 return bs->blk ? blk_name(bs->blk) : "";
3824}
3825
3826int bdrv_get_flags(BlockDriverState *bs)
3827{

--- 2229 unchanged lines hidden ---
3825/* TODO check what callers really want: bs->node_name or blk_name() */
3826const char *bdrv_get_device_name(const BlockDriverState *bs)
3827{
3828 return bs->blk ? blk_name(bs->blk) : "";
3829}
3830
3831int bdrv_get_flags(BlockDriverState *bs)
3832{

--- 2229 unchanged lines hidden ---