Blame fedfs/fedfs-token.h

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