On 07/20/2013 07:31 AM, Wenchao Xia wrote: > To make it clear about id and name in searching, add this API > to distinguish them. Caller can choose to search by id or name, > *errp will be set only for exception. > > Some code are modified based on Pavel's patch. > > Signed-off-by: Wenchao Xia > Signed-off-by: Pavel Hrdina > --- > block/snapshot.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++ > include/block/snapshot.h | 6 ++++ > 2 files changed, 79 insertions(+), 0 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org