Blame include/libssh/token.h

Packit Service 31306d
/*
Packit Service 31306d
 * token.h - Tokens list handling
Packit Service 31306d
 *
Packit Service 31306d
 * This file is part of the SSH Library
Packit Service 31306d
 *
Packit Service 31306d
 * Copyright (c) 2019 by Red Hat, Inc.
Packit Service 31306d
 *
Packit Service 31306d
 * Author: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Packit Service 31306d
 *
Packit Service 31306d
 * The SSH Library is free software; you can redistribute it and/or modify
Packit Service 31306d
 * it under the terms of the GNU Lesser General Public License as published by
Packit Service 31306d
 * the Free Software Foundation; either version 2.1 of the License, or (at your
Packit Service 31306d
 * option) any later version.
Packit Service 31306d
 *
Packit Service 31306d
 * The SSH Library is distributed in the hope that it will be useful, but
Packit Service 31306d
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
Packit Service 31306d
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
Packit Service 31306d
 * License for more details.
Packit Service 31306d
 *
Packit Service 31306d
 * You should have received a copy of the GNU Lesser General Public License
Packit Service 31306d
 * along with the SSH Library; see the file COPYING.  If not, write to
Packit Service 31306d
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
Packit Service 31306d
 * MA 02111-1307, USA.
Packit Service 31306d
 */
Packit Service 31306d
Packit Service 31306d
#ifndef TOKEN_H_
Packit Service 31306d
#define TOKEN_H_
Packit Service 31306d
Packit Service 31306d
struct ssh_tokens_st {
Packit Service 31306d
    char *buffer;
Packit Service 31306d
    char **tokens;
Packit Service 31306d
};
Packit Service 31306d
Packit Service 31306d
struct ssh_tokens_st *ssh_tokenize(const char *chain, char separator);
Packit Service 31306d
Packit Service 31306d
void ssh_tokens_free(struct ssh_tokens_st *tokens);
Packit Service 31306d
Packit Service 31306d
char *ssh_find_matching(const char *available_d,
Packit Service 31306d
                        const char *preferred_d);
Packit Service 31306d
Packit Service 31306d
char *ssh_find_all_matching(const char *available_d,
Packit Service 31306d
                            const char *preferred_d);
Packit Service 31306d
Packit Service 31306d
char *ssh_remove_duplicates(const char *list);
Packit Service 31306d
Packit Service 31306d
char *ssh_append_without_duplicates(const char *list,
Packit Service 31306d
                                    const char *appended_list);
Packit Service 31306d
#endif /* TOKEN_H_ */