aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_push.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-01 15:09:28 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-01 15:09:28 +0000
commit46ef10befdb1ab8e1fd1d7f5304648a578e7f833 (patch)
tree1d50831e8699b8d47e0886d45a3fd1d9dfc3a24d /src/fs/gnunet-service-fs_push.h
parent8d0a6978280aaa039f48c1d59969d2ea0d3d1e5b (diff)
downloadgnunet-46ef10befdb1ab8e1fd1d7f5304648a578e7f833.tar.gz
gnunet-46ef10befdb1ab8e1fd1d7f5304648a578e7f833.zip
fs hacking
Diffstat (limited to 'src/fs/gnunet-service-fs_push.h')
-rw-r--r--src/fs/gnunet-service-fs_push.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/fs/gnunet-service-fs_push.h b/src/fs/gnunet-service-fs_push.h
new file mode 100644
index 000000000..5f7a0030c
--- /dev/null
+++ b/src/fs/gnunet-service-fs_push.h
@@ -0,0 +1,68 @@
1/*
2 This file is part of GNUnet.
3 (C) 2011 Christian Grothoff (and other contributing authors)
4
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
9
10 GNUnet 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 GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19*/
20
21/**
22 * @file fs/gnunet-service-fs_push.h
23 * @brief support for pushing out content
24 * @author Christian Grothoff
25 */
26#ifndef GNUNET_SERVICE_FS_PUSH_H
27#define GNUNET_SERVICE_FS_PUSH_H
28
29#include "gnunet-service-fs.h"
30
31
32/**
33 * Setup the module.
34 *
35 * @param cfg configuration to use
36 */
37void
38GSF_push_init_ (struct GNUNET_CONFIGURATION_Handle *cfg);
39
40
41/**
42 * Shutdown the module.
43 */
44void
45GSF_push_done_ (void);
46
47
48/**
49 * A peer connected to us or we are now again allowed to push content.
50 * Start pushing content to this peer.
51 *
52 * @param peer handle for the peer that connected
53 */
54void
55GSF_push_start_ (struct GSF_ConnectedPeer *peer);
56
57
58/**
59 * A peer disconnected from us or asked us to stop pushing content for
60 * a while. Stop pushing content to this peer.
61 *
62 * @param peer handle for the peer that disconnected
63 */
64void
65GSF_push_stop_ (struct GSF_ConnectedPeer *peer);
66
67
68#endif