gnunet-service-fs_push.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. This file is part of GNUnet.
  3. (C) 2011 Christian Grothoff (and other contributing authors)
  4. GNUnet is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published
  6. by the Free Software Foundation; either version 3, or (at your
  7. option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNUnet; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. */
  17. /**
  18. * @file fs/gnunet-service-fs_push.h
  19. * @brief support for pushing out content
  20. * @author Christian Grothoff
  21. */
  22. #ifndef GNUNET_SERVICE_FS_PUSH_H
  23. #define GNUNET_SERVICE_FS_PUSH_H
  24. #include "gnunet-service-fs.h"
  25. /**
  26. * Setup the module.
  27. */
  28. void
  29. GSF_push_init_ (void);
  30. /**
  31. * Shutdown the module.
  32. */
  33. void
  34. GSF_push_done_ (void);
  35. /**
  36. * A peer connected to us or we are now again allowed to push content.
  37. * Start pushing content to this peer.
  38. *
  39. * @param peer handle for the peer that connected
  40. */
  41. void
  42. GSF_push_start_ (struct GSF_ConnectedPeer *peer);
  43. /**
  44. * A peer disconnected from us or asked us to stop pushing content for
  45. * a while. Stop pushing content to this peer.
  46. *
  47. * @param peer handle for the peer that disconnected
  48. */
  49. void
  50. GSF_push_stop_ (struct GSF_ConnectedPeer *peer);
  51. #endif