vde.h 574 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2007 Luca Bigliardi (shammash@artha.org).
  3. * Licensed under the GPL.
  4. */
  5. #ifndef __UM_VDE_H__
  6. #define __UM_VDE_H__
  7. struct vde_data {
  8. char *vde_switch;
  9. char *descr;
  10. void *args;
  11. void *conn;
  12. void *dev;
  13. };
  14. struct vde_init {
  15. char *vde_switch;
  16. char *descr;
  17. int port;
  18. char *group;
  19. int mode;
  20. };
  21. extern const struct net_user_info vde_user_info;
  22. extern void vde_init_libstuff(struct vde_data *vpri, struct vde_init *init);
  23. extern int vde_user_read(void *conn, void *buf, int len);
  24. extern int vde_user_write(void *conn, void *buf, int len);
  25. #endif