libmount: remove teaser proto for mnt_table_get_name
PATCH 1/1 libmount: remove teaser proto for mnt_table_get_name
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.
---
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(-)
libmount/docs/libmount-sections.txt +0 -1
@@ -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
libmount/src/libmount.h.in +0 -1
@@ -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,
libmount/src/libmount.sym +0 -1
@@ -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;
Signature · 1 line
1.7.9.1
Quoted 2 lines · Dave Reisner
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
Quoted 4 lines
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
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Quoted 6 lines · Karel Zak
Quoted 2 lines · Dave Reisner
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