1ace51c4dSEric Van Hensbergen /* 2ace51c4dSEric Van Hensbergen * net/9p/protocol.h 3ace51c4dSEric Van Hensbergen * 4ace51c4dSEric Van Hensbergen * 9P Protocol Support Code 5ace51c4dSEric Van Hensbergen * 6ace51c4dSEric Van Hensbergen * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com> 7ace51c4dSEric Van Hensbergen * 8ace51c4dSEric Van Hensbergen * Base on code from Anthony Liguori <aliguori@us.ibm.com> 9ace51c4dSEric Van Hensbergen * Copyright (C) 2008 by IBM, Corp. 10ace51c4dSEric Van Hensbergen * 11ace51c4dSEric Van Hensbergen * This program is free software; you can redistribute it and/or modify 12ace51c4dSEric Van Hensbergen * it under the terms of the GNU General Public License version 2 13ace51c4dSEric Van Hensbergen * as published by the Free Software Foundation. 14ace51c4dSEric Van Hensbergen * 15ace51c4dSEric Van Hensbergen * This program is distributed in the hope that it will be useful, 16ace51c4dSEric Van Hensbergen * but WITHOUT ANY WARRANTY; without even the implied warranty of 17ace51c4dSEric Van Hensbergen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18ace51c4dSEric Van Hensbergen * GNU General Public License for more details. 19ace51c4dSEric Van Hensbergen * 20ace51c4dSEric Van Hensbergen * You should have received a copy of the GNU General Public License 21ace51c4dSEric Van Hensbergen * along with this program; if not, write to: 22ace51c4dSEric Van Hensbergen * Free Software Foundation 23ace51c4dSEric Van Hensbergen * 51 Franklin Street, Fifth Floor 24ace51c4dSEric Van Hensbergen * Boston, MA 02111-1301 USA 25ace51c4dSEric Van Hensbergen * 26ace51c4dSEric Van Hensbergen */ 27ace51c4dSEric Van Hensbergen 28ace51c4dSEric Van Hensbergen int 29ace51c4dSEric Van Hensbergen p9pdu_vwritef(struct p9_fcall *pdu, int optional, const char *fmt, va_list ap); 30ace51c4dSEric Van Hensbergen int p9pdu_readf(struct p9_fcall *pdu, int optional, const char *fmt, ...); 31*51a87c55SEric Van Hensbergen int p9pdu_prepare(struct p9_fcall *pdu, int16_t tag, int8_t type); 32*51a87c55SEric Van Hensbergen int p9pdu_finalize(struct p9_fcall *pdu); 33*51a87c55SEric Van Hensbergen void p9pdu_dump(int, struct p9_fcall *); 34*51a87c55SEric Van Hensbergen void p9pdu_reset(struct p9_fcall *pdu); 35