server-type.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2013 Artyom V. Poptsov <poptsov.artyom@gmail.com>
  2. *
  3. * This file is part of Guile-SSH.
  4. *
  5. * Guile-SSH is free software: you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation, either version 3 of the
  8. * License, or (at your option) any later version.
  9. *
  10. * Guile-SSH is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Guile-SSH. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef __SERVER_TYPE_H__
  19. #define __SERVER_TYPE_H__
  20. #include <libguile.h>
  21. #include <libssh/server.h>
  22. extern scm_t_bits server_tag;
  23. /* Smob data. */
  24. struct server_data {
  25. ssh_bind bind;
  26. SCM options;
  27. };
  28. extern SCM guile_ssh_is_server_p (SCM arg1);
  29. extern void init_server_type (void);
  30. /* Helper procedures. */
  31. extern struct server_data *_scm_to_server_data (SCM x);
  32. #endif /* ifndef __SERVER_TYPE_H__ */
  33. /* server-type.h ends here */