]> git.stg.codes - stg.git/blob - projects/traffcounter/capturer_tc_iface.h
Version bump
[stg.git] / projects / traffcounter / capturer_tc_iface.h
1 #ifndef __CAPTURER_TC_IFACE_H__
2 #define __CAPTURER_TC_IFACE_H__
3
4 #ifdef HAVE_STDINT
5     #include <stdint.h>
6 #else
7     #ifdef HAVE_INTTYPES
8         #include <inttypes.h>
9     #else
10         #error "You need either stdint.h or inttypes.h to compile this!"
11     #endif
12 #endif
13
14 namespace STG
15 {
16
17     class ICAPTURER_TC
18     {
19     public:
20         virtual ~ICAPTURER_TC() {};
21         virtual void AddPacket(const iphdr &, uint16_t, uint16_t) = 0;
22     };
23
24 }
25
26 #endif