Commit e07cf3e5 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Restructure.

parent f86b8b5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
find_package (Threads)

add_subdirectory(prrt)
add_library(PRRT prrt/socket.c prrt/block.c prrt/block.h prrt/packet.c prrt/packet.h prrt/feedback_receiver.c prrt/feedback_receiver.h prrt/data_transmitter.c prrt/data_transmitter.h prrt/coding_params.c prrt/coding_params.h prrt/vdmcode/block_code.c prrt/vdmcode/block_code.h prrt/coding_params.c prrt/coding_params.h)
add_library(UTIL util/common.c util/common.h util/list.c util/list.h)
add_library(PRRT defines.h prrt/socket.c prrt/block.c prrt/block.h prrt/packet.c prrt/packet.h prrt/processes/feedback_receiver.c prrt/processes/feedback_receiver.h prrt/processes/data_transmitter.c prrt/processes/data_transmitter.h prrt/coding_params.c prrt/coding_params.h prrt/vdmcode/block_code.c prrt/vdmcode/block_code.h prrt/coding_params.c prrt/coding_params.h prrt/collections/in_buffer.c prrt/collections/in_buffer.h)
add_library(UTIL defines.h util/common.c util/common.h util/list.c util/list.h)

add_executable(sender sender.c)
add_executable(receiver receiver.c)
+1 −0
Original line number Diff line number Diff line
#include "in_buffer.h"
+12 −0
Original line number Diff line number Diff line
//
// Created by andreas on 11.02.16.
//

#ifndef PRRT_IN_BUFFER_H
#define PRRT_IN_BUFFER_H

typedef struct {

} PrrtInBuffer;

#endif //PRRT_IN_BUFFER_H
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@
#include <string.h>
#include <netdb.h>
#include "data_transmitter.h"
#include "socket.h"
#include "block.h"
#include "../socket.h"
#include "../block.h"


int send_packet(PrrtSocket *sock_ptr, PrrtPacket *data_pkt) {
Loading