-fix double free, linker issue
[oweals/gnunet.git] / src / gns / gnunet-service-gns_interceptor.h
1 #ifndef GNUNET_GNS_INTERCEPTOR_H
2 #define GNUNET_GNS_INTERCEPTOR_H
3
4 /**
5  * Initialize dns interceptor
6  *
7  * @param zone the zone
8  * @param key the private key of the local zone
9  * @param c the configuration
10  * @return GNUNET_YES on success GNUNET_SYSERR on error
11  */
12 int
13 gns_interceptor_init(struct GNUNET_CRYPTO_ShortHashCode zone,
14                      struct GNUNET_CRYPTO_RsaPrivateKey *key,
15                      const struct GNUNET_CONFIGURATION_Handle *c);
16
17 /**
18  * Stops the interceptor
19  */
20 void
21 gns_interceptor_stop(void);
22
23 #endif