18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2007 Luca Bigliardi (shammash@artha.org).
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __UM_VDE_H__
78c2ecf20Sopenharmony_ci#define __UM_VDE_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cistruct vde_data {
108c2ecf20Sopenharmony_ci	char *vde_switch;
118c2ecf20Sopenharmony_ci	char *descr;
128c2ecf20Sopenharmony_ci	void *args;
138c2ecf20Sopenharmony_ci	void *conn;
148c2ecf20Sopenharmony_ci	void *dev;
158c2ecf20Sopenharmony_ci};
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_cistruct vde_init {
188c2ecf20Sopenharmony_ci	char *vde_switch;
198c2ecf20Sopenharmony_ci	char *descr;
208c2ecf20Sopenharmony_ci	int port;
218c2ecf20Sopenharmony_ci	char *group;
228c2ecf20Sopenharmony_ci	int mode;
238c2ecf20Sopenharmony_ci};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciextern const struct net_user_info vde_user_info;
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciextern void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init);
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciextern int vde_user_read(void *conn, void *buf, int len);
308c2ecf20Sopenharmony_ciextern int vde_user_write(void *conn, void *buf, int len);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif
33