-
Notifications
You must be signed in to change notification settings - Fork 104
/
pcapy.h
33 lines (27 loc) · 685 Bytes
/
pcapy.h
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
/*
* Copyright (c) 2014 CORE Security Technologies
*
* This software is provided under under a slightly modified version
* of the Apache Software License. See the accompanying LICENSE file
* for more information.
*
*/
#ifndef __PCAPY_H__
#ifndef Py_TYPE // python3 compatible
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
#endif
extern "C" {
#ifdef WIN32
__declspec(dllexport)
char *get_windows_interface_friendly_name(const char *interface_devicename);
static char* luid_to_guid(char *luid);
#endif
#if PY_MAJOR_VERSION >= 3
PyObject * PyInit_pcapy(void);
#else
void initpcapy(void);
#endif
}
// exception object
extern PyObject* PcapError;
#endif // __PCAPY_H__