- update makefile
[oweals/gnunet.git] / src / include / gnunet_peerstore_service.h
1 /*
2       This file is part of GNUnet
3       (C) 
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 include/gnunet_peerstore_service.h
23  * @brief API to the peerstore service
24  * @author Omar Tarabai
25  */
26 #ifndef GNUNET_PEERSTORE_SERVICE_H
27 #define GNUNET_PEERSTORE_SERVICE_H
28
29 #include "platform.h"
30 #include "gnunet_util_lib.h"
31
32 #ifdef __cplusplus
33 extern "C"
34 {
35 #if 0                           /* keep Emacsens' auto-indent happy */
36 }
37 #endif
38 #endif
39
40 /**
41  * Handle to the peerstore service.
42  */
43 struct GNUNET_PEERSTORE_Handle;
44
45 /**
46  * Context for add requests
47  */
48 struct GNUNET_PEERSTORE_AddContext;
49
50 /**
51  * Continuation called with a status result.
52  *
53  * @param cls closure
54  * @param emsg error message, NULL on success
55  */
56 typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls,
57                const char *emsg);
58
59 /**
60  * Continuation called after an Add is completed
61  *
62  * @param cls closure
63  * @param success #GNUNET_YES / #GNUNET_NO
64  */
65 typedef void (*GNUNET_PEERSTORE_AddContinuation)(void *cls, int success);
66
67 #if 0                           /* keep Emacsens' auto-indent happy */
68 {
69 #endif
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif