wqinput.h revision 1.1
11.1Sozaki/*	$NetBSD: wqinput.h,v 1.1 2017/02/02 02:52:10 ozaki-r Exp $	*/
21.1Sozaki
31.1Sozaki/*-
41.1Sozaki * Copyright (c) 2017 Internet Initiative Japan Inc.
51.1Sozaki * All rights reserved.
61.1Sozaki *
71.1Sozaki * Redistribution and use in source and binary forms, with or without
81.1Sozaki * modification, are permitted provided that the following conditions
91.1Sozaki * are met:
101.1Sozaki * 1. Redistributions of source code must retain the above copyright
111.1Sozaki *    notice, this list of conditions and the following disclaimer.
121.1Sozaki * 2. Redistributions in binary form must reproduce the above copyright
131.1Sozaki *    notice, this list of conditions and the following disclaimer in the
141.1Sozaki *    documentation and/or other materials provided with the distribution.
151.1Sozaki *
161.1Sozaki * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
171.1Sozaki * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
181.1Sozaki * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
191.1Sozaki * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
201.1Sozaki * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
211.1Sozaki * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
221.1Sozaki * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
231.1Sozaki * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
241.1Sozaki * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
251.1Sozaki * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
261.1Sozaki * POSSIBILITY OF SUCH DAMAGE.
271.1Sozaki */
281.1Sozaki
291.1Sozaki#ifndef _NETINET_WQINPUT_H_
301.1Sozaki#define _NETINET_WQINPUT_H_
311.1Sozaki
321.1Sozaki#if !defined(_KERNEL)
331.1Sozaki#error "not supposed to be exposed to userland."
341.1Sozaki#endif
351.1Sozaki
361.1Sozaki#include <sys/mbuf.h>
371.1Sozaki
381.1Sozakistruct wqinput;
391.1Sozakistruct wqinput *wqinput_create(const char *, void(*)(struct mbuf *, int, int));
401.1Sozakivoid wqinput_input(struct wqinput *, struct mbuf *, int, int);
411.1Sozaki
421.1Sozaki#endif /* _NETINET_WQINPUT_H_ */
43