]> git.stg.codes - stg.git/blob - projects/traffcounter/user_tc_iface.h
Merge branch 'master' into full-month-stats
[stg.git] / projects / traffcounter / user_tc_iface.h
1 #ifndef __USER_TC_IFACE_H__
2 #define __USER_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 #include "tc_packets.h"
15
16 namespace STG
17 {
18
19     class IUSER_TC
20     {
21     public:
22         virtual ~IUSER_TC() {};
23         virtual void AddIP(uint32_t) = 0;
24         virtual void DeleteIP(uint32_t, TRAFF_DATA *) = 0;
25         virtual void GetIP(uint32_t, TRAFF_DATA *) = 0;
26     };
27
28 }
29
30 #endif