using process name as the key for add/remove events

This commit is contained in:
Mohamed Boussaffa
2016-03-10 19:52:43 +08:00
parent 0c6fbfe10c
commit 761e153f30
2 changed files with 11 additions and 10 deletions

View File

@@ -20,10 +20,10 @@ extern "C" {
typedef struct NethogsMonitorUpdate
{
int action;
int action; // NETHOGS_APP_ACTION_SET or NETHOGS_APP_ACTION_REMOVE
const char* name; //the key of the set/remove
int pid;
uint32_t uid;
const char* app_name;
const char* device_name;
uint32_t sent_bytes;
uint32_t recv_bytes;