daemon.h 790 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2001 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #include "net_user.h"
  6. #define SWITCH_VERSION 3
  7. struct daemon_data {
  8. char *sock_type;
  9. char *ctl_sock;
  10. void *ctl_addr;
  11. void *data_addr;
  12. void *local_addr;
  13. int fd;
  14. int control;
  15. void *dev;
  16. };
  17. extern struct net_user_info daemon_user_info;
  18. extern int daemon_user_write(int fd, void *buf, int len,
  19. struct daemon_data *pri);
  20. /*
  21. * Overrides for Emacs so that we follow Linus's tabbing style.
  22. * Emacs will notice this stuff at the end of the file and automatically
  23. * adjust the settings for this buffer only. This must remain at the end
  24. * of the file.
  25. * ---------------------------------------------------------------------------
  26. * Local variables:
  27. * c-file-style: "linux"
  28. * End:
  29. */