first batch of license fixes (boring)
[oweals/gnunet.git] / src / set / gnunet-service-set_intersection.h
1
2 /*
3       This file is part of GNUnet
4       Copyright (C) 2013-2017 GNUnet e.V.
5
6       GNUnet is free software: you can redistribute it and/or modify it
7       under the terms of the GNU General Public License as published
8       by the Free Software Foundation, either version 3 of the License,
9       or (at your option) any later version.
10
11       GNUnet is distributed in the hope that it will be useful, but
12       WITHOUT ANY WARRANTY; without even the implied warranty of
13       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14       Affero General Public License for more details.
15 */
16 /**
17  * @file set/gnunet-service-set_intersection.h
18  * @brief two-peer set operations
19  * @author Florian Dold
20  * @author Christian Grothoff
21  */
22 #ifndef GNUNET_SERVICE_SET_INTERSECTION_H
23 #define GNUNET_SERVICE_SET_INTERSECTION_H
24
25 #include "gnunet-service-set.h"
26
27
28 /**
29  * Check an BF message from a remote peer.
30  *
31  * @param cls the intersection operation
32  * @param msg the header of the message
33  * @return #GNUNET_OK if @a msg is well-formed
34  */
35 int
36 check_intersection_p2p_bf (void *cls,
37                            const struct BFMessage *msg);
38
39
40 /**
41  * Handle an BF message from a remote peer.
42  *
43  * @param cls the intersection operation
44  * @param msg the header of the message
45  */
46 void
47 handle_intersection_p2p_bf (void *cls,
48                             const struct BFMessage *msg);
49
50
51 /**
52  * Handle the initial `struct IntersectionElementInfoMessage` from a
53  * remote peer.
54  *
55  * @param cls the intersection operation
56  * @param mh the header of the message
57  */
58 void
59 handle_intersection_p2p_element_info (void *cls,
60                                       const struct IntersectionElementInfoMessage *msg);
61
62
63 /**
64  * Handle a done message from a remote peer
65  *
66  * @param cls the intersection operation
67  * @param mh the message
68  */
69 void
70 handle_intersection_p2p_done (void *cls,
71                               const struct IntersectionDoneMessage *idm);
72
73
74 #endif