summaryrefslogtreecommitdiff
path: root/libblkid-tiny/probe.c
blob: 54e22dcb441cf796f572e5a1615362076a44e56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Low-level libblkid probing API
 *
 * Copyright (C) 2008-2009 Karel Zak <kzak@redhat.com>
 *
 * This file may be redistributed under the terms of the
 * GNU Lesser General Public License.
 */

#include <stdlib.h>

#include "libblkid-tiny.h"

struct blkid_struct_probe *blkid_new_probe(void)
{
	struct blkid_struct_probe *pr;

	pr = calloc(1, sizeof(struct blkid_struct_probe));
	if (!pr)
		return NULL;

	return pr;
}

void blkid_free_probe(struct blkid_struct_probe *pr)
{
	if (!pr)
		return;

	free(pr);
}