* [PATCH] libmount: remove teaser proto for mnt_table_get_name
@ 2012-02-22 4:16 Dave Reisner
2012-02-22 11:01 ` Karel Zak
0 siblings, 1 reply; 3+ messages in thread
From: Dave Reisner @ 2012-02-22 4:16 UTC (permalink / raw)
To: util-linux; +Cc: Dave Reisner
This function was never implemented, but the proto has existed since the
inception of the library. As the libmnt_table struct doesn't include a
member necessary to carry the name of the table, simply discard this
prototype. If ever a need to break ABI comes up, perhaps this could be
revisited.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
I want my money back! I really wanted to use this function in an error
callback. =P
libmount/docs/libmount-sections.txt | 1 -
libmount/src/libmount.h.in | 1 -
libmount/src/libmount.sym | 1 -
3 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/libmount/docs/libmount-sections.txt b/libmount/docs/libmount-sections.txt
index 99b81c2..65f2859 100644
--- a/libmount/docs/libmount-sections.txt
+++ b/libmount/docs/libmount-sections.txt
@@ -246,7 +246,6 @@ mnt_table_find_srcpath
mnt_table_find_tag
mnt_table_find_target
mnt_table_get_cache
-mnt_table_get_name
mnt_table_get_nents
mnt_table_get_root_fs
mnt_table_is_fs_mounted
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index c407b98..ae8b99e 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -292,7 +292,6 @@ extern int mnt_reset_table(struct libmnt_table *tb);
extern int mnt_table_get_nents(struct libmnt_table *tb);
extern int mnt_table_set_cache(struct libmnt_table *tb, struct libmnt_cache *mpc);
extern struct libmnt_cache *mnt_table_get_cache(struct libmnt_table *tb);
-extern const char *mnt_table_get_name(struct libmnt_table *tb);
extern int mnt_table_add_fs(struct libmnt_table *tb, struct libmnt_fs *fs);
extern int mnt_table_remove_fs(struct libmnt_table *tb, struct libmnt_fs *fs);
extern int mnt_table_next_fs(struct libmnt_table *tb, struct libmnt_iter *itr,
diff --git a/libmount/src/libmount.sym b/libmount/src/libmount.sym
index d4e0056..6889d9d 100644
--- a/libmount/src/libmount.sym
+++ b/libmount/src/libmount.sym
@@ -163,7 +163,6 @@ global:
mnt_table_find_tag;
mnt_table_find_target;
mnt_table_get_cache;
- mnt_table_get_name;
mnt_table_get_nents;
mnt_table_get_root_fs;
mnt_table_next_child_fs;
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] libmount: remove teaser proto for mnt_table_get_name
2012-02-22 4:16 [PATCH] libmount: remove teaser proto for mnt_table_get_name Dave Reisner
@ 2012-02-22 11:01 ` Karel Zak
2012-02-22 14:24 ` Dave Reisner
0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2012-02-22 11:01 UTC (permalink / raw)
To: Dave Reisner; +Cc: util-linux, Dave Reisner
On Tue, Feb 21, 2012 at 11:16:34PM -0500, Dave Reisner wrote:
> I want my money back! I really wanted to use this function in an error
> callback. =P
there is parser error callback and it provides the filename
> libmount/docs/libmount-sections.txt | 1 -
> libmount/src/libmount.h.in | 1 -
> libmount/src/libmount.sym | 1 -
> 3 files changed, 0 insertions(+), 3 deletions(-)
Applied, thanks.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] libmount: remove teaser proto for mnt_table_get_name
2012-02-22 11:01 ` Karel Zak
@ 2012-02-22 14:24 ` Dave Reisner
0 siblings, 0 replies; 3+ messages in thread
From: Dave Reisner @ 2012-02-22 14:24 UTC (permalink / raw)
To: Karel Zak; +Cc: util-linux, Dave Reisner
On Wed, Feb 22, 2012 at 12:01:25PM +0100, Karel Zak wrote:
> On Tue, Feb 21, 2012 at 11:16:34PM -0500, Dave Reisner wrote:
> > I want my money back! I really wanted to use this function in an error
> > callback. =P
>
> there is parser error callback and it provides the filename
>
Why yes it does! Late night coding fail.
thanks,
d
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-22 14:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-22 4:16 [PATCH] libmount: remove teaser proto for mnt_table_get_name Dave Reisner
2012-02-22 11:01 ` Karel Zak
2012-02-22 14:24 ` Dave Reisner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox