Blame include/libssh/token.h

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