vmci_route.h 863 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * VMware VMCI Driver
  3. *
  4. * Copyright (C) 2012 VMware, Inc. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation version 2 and no later version.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  12. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * for more details.
  14. */
  15. #ifndef _VMCI_ROUTE_H_
  16. #define _VMCI_ROUTE_H_
  17. #include <linux/vmw_vmci_defs.h>
  18. enum vmci_route {
  19. VMCI_ROUTE_NONE,
  20. VMCI_ROUTE_AS_HOST,
  21. VMCI_ROUTE_AS_GUEST,
  22. };
  23. int vmci_route(struct vmci_handle *src, const struct vmci_handle *dst,
  24. bool from_guest, enum vmci_route *route);
  25. #endif /* _VMCI_ROUTE_H_ */