libblkid-tiny: add functions for allocating & freeing probe struct
authorRafał Miłecki <rafal@milecki.pl>
Sat, 14 Dec 2019 21:55:00 +0000 (22:55 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 20 Dec 2019 06:43:15 +0000 (07:43 +0100)
commitb82c5c109c8545da1c4fea46e102aef25896c0e4
tree154916c4b2b00ade49c14054c8e1b50cfd7c1b37
parent12851d6b3a3883b8470ba3f8c18024dec51e2847
libblkid-tiny: add functions for allocating & freeing probe struct

This adds blkid_new_probe() and blkid_free_probe() which have to be used
in place of simple struct memory allocation. They will allow extending
probe struct by any extra initialization code and resources release.

Newly introduced probe.c file is based on original libblkid's code.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
CMakeLists.txt
libblkid-tiny/libblkid-tiny.h
libblkid-tiny/probe.c [new file with mode: 0644]
probe.c