diff options
author | Karel Zak <kzak@redhat.com> | 2009-10-01 23:47:49 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-10-01 23:47:49 +0200 |
commit | a0fff7ce3507668735c94cd363a686ef833b5605 (patch) | |
tree | 66c2c10e01ece9e5f72091599607f86f21fead3d /shlibs/blkid | |
parent | bd635f86e8a3f674ff2ae37dc89e3342cae6d9cc (diff) | |
download | util-linux-old-a0fff7ce3507668735c94cd363a686ef833b5605.tar.gz |
libblkid: add blkit_[un]ref() to TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid')
-rw-r--r-- | shlibs/blkid/src/partitions/partitions.c | 8 | ||||
-rw-r--r-- | shlibs/blkid/src/topology/topology.c | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/shlibs/blkid/src/partitions/partitions.c b/shlibs/blkid/src/partitions/partitions.c index aa70df63..82861a5b 100644 --- a/shlibs/blkid/src/partitions/partitions.c +++ b/shlibs/blkid/src/partitions/partitions.c @@ -258,6 +258,14 @@ int blkid_probe_filter_partitions_type(blkid_probe pr, int flag, char *names[]) * This function is independent on blkid_do_[safe,full]probe() and * blkid_probe_enable_partitions() calls. * + * WARNING: the returned object will be overwritten by the next + * blkid_probe_get_partitions() call for the same @pr. If you want to + * use more blkid_partlist objects in the same time you have to create + * more blkid_probe handlers (see blkid_new_probe()). + * + * TODO: add blkid_ref() and blkid_unref() to allows to use blkid_partlist + * independently on libblkid probing stuff. + * * Returns: list of partitions, or NULL in case of error. */ blkid_partlist blkid_probe_get_partitions(blkid_probe pr) diff --git a/shlibs/blkid/src/topology/topology.c b/shlibs/blkid/src/topology/topology.c index f4cd3219..80499005 100644 --- a/shlibs/blkid/src/topology/topology.c +++ b/shlibs/blkid/src/topology/topology.c @@ -108,6 +108,14 @@ int blkid_probe_enable_topology(blkid_probe pr, int enable) * This function is independent on blkid_do_[safe,full]probe() and * blkid_probe_enable_topology() calls. * + * WARNING: the returned object will be overwritten by the next + * blkid_probe_get_topology() call for the same @pr. If you want to + * use more blkid_tolopogy objects in the same time you have to create + * more blkid_probe handlers (see blkid_new_probe()). + * + * TODO: add blkid_ref() and blkid_unref() to allows to use blkid_topology + * independently on libblkid probing stuff. + * * Returns: blkid_tolopogy, or NULL in case of error. */ blkid_topology blkid_probe_get_topology(blkid_probe pr) |