Commit c3b549f4 authored by Andreas Schmidt's avatar Andreas Schmidt

Renamings.

parent 1f4889cc
Pipeline #86 failed with stage
......@@ -11,7 +11,7 @@ cdef extern from "pthread.h" nogil:
ctypedef struct pthread_cond_t:
pass
cdef extern from "prrt/stores/forward_packet_table.h":
cdef extern from "prrt/stores/forwardPacketTable.h":
cdef struct prrtForwardPacketTable:
pass
......@@ -29,7 +29,7 @@ cdef extern from "prrt/channelStateInformation.h":
ctypedef prrtChannelStateInformation PrrtChannelStateInformation
cdef extern from "prrt/coding_params.h":
cdef extern from "prrt/codingParams.h":
cdef struct prrtCodingParams:
uint8_t k;
uint8_t r;
......
from libc.stdint cimport uint32_t, uint16_t, uint8_t, int32_t
cimport cprrt
cdef extern from "prrt/stores/forward_packet_table.c":
cdef extern from "prrt/stores/forwardPacketTable.c":
int PrrtForwardPacketTable_create(cprrt.PrrtForwardPacketTable* fpt_prt);
int PrrtForwardPacketTable_test_set_is_number_relevant(cprrt.PrrtForwardPacketTable *fpt_ptr, uint16_t seqno);
int PrrtForwardPacketTable_test_is_block_relevant(cprrt.PrrtForwardPacketTable * forwardPacketTable, uint16_t start, uint16_t length);
int PrrtForwardPacketTable_destroy(cprrt.PrrtForwardPacketTable* fpt_prt);
cdef extern from "prrt/processes/feedback_receiver.c":
cdef extern from "prrt/processes/feedbackReceiver.c":
void receive_feedback_loop(void *ptr)
cdef extern from "prrt/processes/data_receiver.c":
cdef extern from "prrt/processes/dataReceiver.c":
void receive_data_loop(void *ptr)
cdef extern from "prrt/processes/data_transmitter.c":
cdef extern from "prrt/processes/dataTransmitter.c":
void send_data_loop(void *ptr)
cdef extern from "prrt/block.c":
......@@ -28,7 +28,7 @@ cdef extern from "prrt/channelStateInformation.c":
cdef extern from "prrt/vdmcode/block_code.c":
int PrrtCoder_get_coder(cprrt.PrrtCoder **cod, uint8_t n, uint8_t k)
cdef extern from "prrt/coding_params.c":
cdef extern from "prrt/codingParams.c":
void PrrtCodingParams_init(cprrt.PrrtCodingParams *cpar)
cdef extern from "prrt/receiver.c":
......
add_library(PRRT ../defines.h socket.c block.c block.h packet.c packet.h receiver.c receiver.h clock.c clock.h channelStateInformation.c channelStateInformation.h processes/feedback_receiver.c processes/feedback_receiver.h processes/data_transmitter.c processes/data_transmitter.h coding_params.c coding_params.h vdmcode/block_code.c vdmcode/block_code.h coding_params.c coding_params.h stores/forward_packet_table.c stores/forward_packet_table.h processes/data_receiver.c processes/data_receiver.h)
add_library(PRRT ../defines.h socket.c block.c block.h packet.c packet.h receiver.c receiver.h clock.c clock.h channelStateInformation.c channelStateInformation.h processes/feedbackReceiver.c processes/feedbackReceiver.h processes/dataTransmitter.c processes/dataTransmitter.h codingParams.c codingParams.h vdmcode/block_code.c vdmcode/block_code.h codingParams.c codingParams.h stores/forwardPacketTable.c stores/forwardPacketTable.h processes/dataReceiver.c processes/dataReceiver.h)
set_property(TARGET PRRT PROPERTY C_STANDARD 99)
\ No newline at end of file
......@@ -5,7 +5,7 @@
#include "../util/common.h"
#include "packet.h"
#include "block.h"
#include "coding_params.h"
#include "codingParams.h"
void gather_redundancy_packets(const PrrtBlock *block_ptr, gf *const *fec, int *idx_p)
{
......
#ifndef PRRT_BLOCK_H
#define PRRT_BLOCK_H
#include "coding_params.h"
#include "codingParams.h"
#include "packet.h"
#include "../util/list.h"
......
#include "../util/common.h"
#include "../util/dbg.h"
#include "../defines.h"
#include "coding_params.h"
#include "codingParams.h"
PrrtCodingParams *PrrtCodingParams_create(void)
{
......
......@@ -7,7 +7,7 @@
// DESTROY:
#include <stdint.h>
#include "coding_params.h"
#include "codingParams.h"
#include <stdbool.h>
#define PACKET_TYPE_DATA 0
......
......@@ -7,7 +7,7 @@
#include "../block.h"
#include "../clock.h"
#include "../socket.h"
#include "data_receiver.h"
#include "dataReceiver.h"
void retrieve_data_blocks(PrrtSocket *sock_ptr, uint16_t base_seqno, uint8_t k, const PrrtBlock *block)
{
......
......@@ -9,7 +9,7 @@
#include "../socket.h"
#include "../../util/dbg.h"
#include "../../util/common.h"
#include "data_transmitter.h"
#include "dataTransmitter.h"
bool send_packet(PrrtSocket *sock_ptr, PrrtPacket *packet) {
......
......@@ -6,7 +6,7 @@
#include "../clock.h"
#include "../packet.h"
#include "../socket.h"
#include "feedback_receiver.h"
#include "feedbackReceiver.h"
void * receive_feedback_loop(void *ptr) {
PrrtSocket *sock_ptr = ptr;
......
......@@ -9,9 +9,9 @@
#include "packet.h"
#include "../util/dbg.h"
#include "../util/common.h"
#include "processes/feedback_receiver.h"
#include "processes/data_transmitter.h"
#include "processes/data_receiver.h"
#include "processes/feedbackReceiver.h"
#include "processes/dataTransmitter.h"
#include "processes/dataReceiver.h"
#include "socket.h"
#include "block.h"
#include "receiver.h"
......
......@@ -3,7 +3,7 @@
#include "../defines.h"
#include "packet.h"
#include "stores/forward_packet_table.h"
#include "stores/forwardPacketTable.h"
#include "../util/list.h"
#include "../util/bptree.h"
#include "channelStateInformation.h"
......
#include <stdint.h>
#include "../../defines.h"
#include "../packet.h"
#include "forward_packet_table.h"
#include "forwardPacketTable.h"
int is_position_relevant(const PrrtForwardPacketTable *fpt_ptr, uint16_t seqno) {
......
......@@ -4,7 +4,7 @@
extern "C" {
#include "src/prrt/block.h"
#include "src/prrt/packet.h"
#include "src/prrt/coding_params.h"
#include "src/prrt/codingParams.h"
#include "src/util/dbg.h"
#include "src/prrt/vdmcode/block_code.h"
#include "src/util/common.h"
......
......@@ -2,7 +2,7 @@
#include <cmath>
extern "C" {
#include "src/prrt/stores/forward_packet_table.h"
#include "src/prrt/stores/forwardPacketTable.h"
}
class ForwardPacketTableTest : public ::testing::Test {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment