#pragma once
#include <stdint.h>
#include <pthread.h>
#include <stdbool.h>
typedef struct edm {
bool enabled;
pthread_mutex_t lock;
void* app_socket;
} edm_t;
int edm_encap(uint8_t* msg, uint16_t* msg_len, uint16_t msg_buf_len, int its_msg_type);
void edm_init();