dnscrypt-proxy plugin API
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Typedefs
Enumerations
Macros
dnscrypt
private.h
1
2
#ifndef __DNSCRYPT_PRIVATE_H__
3
#define __DNSCRYPT_PRIVATE_H__ 1
4
5
#include <sys/types.h>
6
7
#include <stdint.h>
8
#include <stdlib.h>
9
10
#include <dnscrypt/version.h>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
struct
DCPlugin_
{
17
void
*user_data;
18
};
19
20
struct
DCPluginDNSPacket_
{
21
struct
sockaddr_storage *client_sockaddr;
22
uint8_t *dns_packet;
23
size_t
*dns_packet_len_p;
24
size_t
client_sockaddr_len_s;
25
size_t
dns_packet_max_len;
26
};
27
28
#define DCPLUGIN_MAIN_PRIVATE(ID) \
29
int dcplugin_interface_version_major = DCP_INTERFACE_VERSION_MAJOR; \
30
int dcplugin_interface_version_minor = DCP_INTERFACE_VERSION_MINOR
31
32
#ifdef __cplusplus
33
}
34
#endif
35
36
#endif
Generated on Thu Oct 11 2012 00:12:53 for dnscrypt-proxy plugin API by
1.8.2