aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-06-28 22:35:38 +0200
committerAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-07-04 10:29:20 +0200
commit548753b3389518ebce98a7ddbf0640db3ad72de8 (patch)
treedad3f1450dfbd039377442e2a6e6ca307b1e36fb /include/libssh
parente5a64a3d6b1b601cbaf207468a6658d1a4fa0031 (diff)
downloadlibssh-548753b3389518ebce98a7ddbf0640db3ad72de8.tar.gz
libssh-548753b3389518ebce98a7ddbf0640db3ad72de8.tar.xz
libssh-548753b3389518ebce98a7ddbf0640db3ad72de8.zip
token: Added function to remove duplicates
Added a function to remove duplicates from lists. This function is used in a new provided function to append lists removing duplicates. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/token.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libssh/token.h b/include/libssh/token.h
index 7b244189..9896fb06 100644
--- a/include/libssh/token.h
+++ b/include/libssh/token.h
@@ -38,7 +38,11 @@ void ssh_tokens_free(struct ssh_tokens_st *tokens);
char *ssh_find_matching(const char *available_d,
const char *preferred_d);
-
char *ssh_find_all_matching(const char *available_d,
const char *preferred_d);
+
+char *ssh_remove_duplicates(const char *list);
+
+char *ssh_append_without_duplicates(const char *list,
+ const char *appended_list);
#endif /* TOKEN_H_ */