Blame fedfs/fedfs-token.h

Packit Bot 2b7f0b
/*
Packit Bot 2b7f0b
 * Copyright (C) 2007 Oracle.  All rights reserved.
Packit Bot 2b7f0b
 * Copyright (C) 2007 Chuck Lever <chuck.lever@oracle.com>
Packit Bot 2b7f0b
 *
Packit Bot 2b7f0b
 * This file is part of fedfs-utils.
Packit Bot 2b7f0b
 *
Packit Bot 2b7f0b
 * fedfs-utils is free software; you can redistribute it and/or modify
Packit Bot 2b7f0b
 * it under the terms of the GNU General Public License version 2.0 as
Packit Bot 2b7f0b
 * published by the Free Software Foundation.
Packit Bot 2b7f0b
 *
Packit Bot 2b7f0b
 * fedfs-utils is distributed in the hope that it will be useful, but
Packit Bot 2b7f0b
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 2b7f0b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 2b7f0b
 * GNU General Public License version 2.0 for more details.
Packit Bot 2b7f0b
 *
Packit Bot 2b7f0b
 * You should have received a copy of the GNU General Public License
Packit Bot 2b7f0b
 * version 2.0 along with fedfs-utils.  If not, see:
Packit Bot 2b7f0b
 *
Packit Bot 2b7f0b
 *	http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Packit Bot 2b7f0b
 */
Packit Bot 2b7f0b
Packit Bot 2b7f0b
#ifndef _FEDFS_UTILS_TOKEN_H
Packit Bot 2b7f0b
#define _FEDFS_UTILS_TOKEN_H
Packit Bot 2b7f0b
Packit Bot 2b7f0b
#include <sys/cdefs.h>
Packit Bot 2b7f0b
Packit Bot 2b7f0b
/**
Packit Bot 2b7f0b
 * Private tokenizer state object
Packit Bot 2b7f0b
 */
Packit Bot 2b7f0b
struct tokenizer;
Packit Bot 2b7f0b
Packit Bot 2b7f0b
__attribute_malloc__
Packit Bot 2b7f0b
struct tokenizer	*tk_new_tokenizer(const char *string,
Packit Bot 2b7f0b
						const char delimiter);
Packit Bot 2b7f0b
__attribute_malloc__
Packit Bot 2b7f0b
char				*tk_next_token(struct tokenizer *state);
Packit Bot 2b7f0b
void				 tk_free_tokenizer(struct tokenizer *state);
Packit Bot 2b7f0b
int				 tk_tokenizer_error(const struct tokenizer *state);
Packit Bot 2b7f0b
Packit Bot 2b7f0b
#endif	/* !_FEDFS_UTILS_TOKEN_H */