applicationConstraints.h 663 Bytes
Newer Older
1
2
3
4
5
6
#ifndef PRRT_NETWORKCONTRAINTS_H
#define PRRT_NETWORKCONTRAINTS_H

#include "packet.h"

typedef struct applicationConstraints {
7
    prrtTimedelta_t targetDelay_us;
8
    pthread_mutex_t lock;
9
10
} PrrtApplicationConstraints;

11
12
PrrtApplicationConstraints *PrrtApplicationConstraints_create(void);
bool PrrtApplicationConstraints_destroy(PrrtApplicationConstraints *applicationConstraints);
13

14
prrtTimedelta_t PrrtApplicationConstraints_get_target_delay(PrrtApplicationConstraints *applicationConstraints);
15
bool PrrtApplicationConstraints_set_target_delay(PrrtApplicationConstraints *applicationConstraints, prrtTimedelta_t targetDelay);
16
17

#endif //PRRT_NETWORKCONTRAINTS_H