-
Notifications
You must be signed in to change notification settings - Fork 0
/
lwes.py
95 lines (59 loc) · 2.7 KB
/
lwes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _lwes
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstance(value, class_type):
self.__dict__[name] = value.this
if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
del value.thisown
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static) or hasattr(self,name) or (name == "thisown"):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)
def _swig_getattr(self,class_type,name):
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError,name
import types
try:
_object = types.ObjectType
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0
del types
lwes_event_type_db_create = _lwes.lwes_event_type_db_create
lwes_event_type_db_destroy = _lwes.lwes_event_type_db_destroy
lwes_emitter_create = _lwes.lwes_emitter_create
lwes_emitter_create_with_ttl = _lwes.lwes_emitter_create_with_ttl
lwes_emitter_emit = _lwes.lwes_emitter_emit
lwes_emitter_emitto = _lwes.lwes_emitter_emitto
lwes_emitter_destroy = _lwes.lwes_emitter_destroy
lwes_event_create = _lwes.lwes_event_create
lwes_event_create_with_encoding = _lwes.lwes_event_create_with_encoding
lwes_event_set_U_INT_16 = _lwes.lwes_event_set_U_INT_16
lwes_event_get_U_INT_16 = _lwes.lwes_event_get_U_INT_16
lwes_event_set_INT_16 = _lwes.lwes_event_set_INT_16
lwes_event_get_INT_16 = _lwes.lwes_event_get_INT_16
lwes_event_set_U_INT_32 = _lwes.lwes_event_set_U_INT_32
lwes_event_get_U_INT_32 = _lwes.lwes_event_get_U_INT_32
lwes_event_set_INT_32 = _lwes.lwes_event_set_INT_32
lwes_event_get_INT_32 = _lwes.lwes_event_get_INT_32
lwes_event_set_U_INT_64 = _lwes.lwes_event_set_U_INT_64
lwes_event_get_U_INT_64 = _lwes.lwes_event_get_U_INT_64
lwes_event_set_INT_64 = _lwes.lwes_event_set_INT_64
lwes_event_get_INT_64 = _lwes.lwes_event_get_INT_64
lwes_event_set_STRING = _lwes.lwes_event_set_STRING
lwes_event_get_STRING = _lwes.lwes_event_get_STRING
lwes_event_set_IP_ADDR_w_string = _lwes.lwes_event_set_IP_ADDR_w_string
lwes_event_get_IP_ADDR = _lwes.lwes_event_get_IP_ADDR
lwes_event_set_BOOLEAN = _lwes.lwes_event_set_BOOLEAN
lwes_event_get_BOOLEAN = _lwes.lwes_event_get_BOOLEAN
lwes_event_destroy = _lwes.lwes_event_destroy