mirror of
https://github.com/springzfx/cgproxy.git
synced 2026-02-09 21:14:57 +08:00
22 lines
434 B
C++
22 lines
434 B
C++
#ifndef EXECSNOOP_HPP
|
|
#define EXECSNOOP_HPP 1
|
|
|
|
#include <functional>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
namespace CGPROXY::EXECSNOOP {
|
|
|
|
extern const string BPF_PROGRAM;
|
|
struct data_t;
|
|
extern function<int(int)> callback;
|
|
void handle_events(void *cb_cookie, void *data, int data_size);
|
|
int execsnoop();
|
|
|
|
struct thread_arg {
|
|
function<int(int)> handle_pid;
|
|
};
|
|
void *startThread(void *arg);
|
|
|
|
} // namespace CGPROXY::EXECSNOOP
|
|
#endif |