codingParams.h 403 Bytes
Newer Older
Andreas Schmidt's avatar
Andreas Schmidt committed
1 2 3
#ifndef PRRT_CODING_PARAMS_H
#define PRRT_CODING_PARAMS_H

4
#include <pthread.h>
5
#include <stdint.h>
6
#include <stdbool.h>
7

8
typedef struct prrtCodingParams {
9
    pthread_mutex_t lock;
Andreas Schmidt's avatar
Andreas Schmidt committed
10

11 12 13 14
    uint8_t k;
    uint8_t r;
    uint8_t n;
    uint8_t n_p;
Andreas Schmidt's avatar
Andreas Schmidt committed
15 16
} PrrtCodingParams;

Andreas Schmidt's avatar
Andreas Schmidt committed
17
PrrtCodingParams * PrrtCodingParams_create(void);
18
bool PrrtCodingParams_destroy(PrrtCodingParams * cpar);
19

Andreas Schmidt's avatar
Andreas Schmidt committed
20
#endif //PRRT_CODING_PARAMS_H