On 05.07.2016 17:24, Colin Lord wrote: > Isolates vpc probe as part of the modularization process. > > Signed-off-by: Colin Lord > --- > block/Makefile.objs | 2 +- > block/probe/vpc.c | 9 +++++++++ > block/vpc.c | 8 +------- > include/block/probe.h | 1 + > 4 files changed, 12 insertions(+), 8 deletions(-) > create mode 100644 block/probe/vpc.c Reviewed-by: Max Reitz [...] > diff --git a/block/probe/vpc.c b/block/probe/vpc.c > new file mode 100644 > index 0000000..afe8271 > --- /dev/null > +++ b/block/probe/vpc.c > @@ -0,0 +1,9 @@ > +#include "qemu/osdep.h" > +#include "block/probe.h" > + > +int vpc_probe(const uint8_t *buf, int buf_size, const char *filename) > +{ > + if (buf_size >= 8 && !strncmp((char *)buf, "conectix", 8)) > + return 100; *cough* > + return 0; > +}