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

Update cython bindings.

parent 72b169e6
Pipeline #78 passed with stage
......@@ -23,6 +23,12 @@ cdef extern from "prrt/vdmcode/block_code.h":
ctypedef prrtCoder PrrtCoder
cdef extern from "prrt/channelStateInformation.h":
cdef struct prrtChannelStateInformation:
ctypedef prrtChannelStateInformation PrrtChannelStateInformation
cdef extern from "prrt/coding_params.h":
cdef struct prrtCodingParams:
uint8_t k;
......@@ -131,4 +137,3 @@ cdef extern from "util/bptree.h":
BPTreeNode *BPTree_destroy(BPTreeNode *root);
void *BPTree_get(BPTreeNode *root, int key);
void BPTree_get_range(BPTreeNode *root, List *list, int key_start, int key_end);
......@@ -7,7 +7,6 @@ cdef extern from "prrt/stores/forward_packet_table.c":
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":
void receive_feedback_loop(void *ptr)
......@@ -20,6 +19,12 @@ cdef extern from "prrt/processes/data_transmitter.c":
cdef extern from "prrt/block.c":
cprrt.PrrtPacket *PrrtBlock_get_first_data(cprrt.PrrtBlock *block_ptr)
cdef extern from "prrt/clock.c":
uint32_t PrrtClock_get_current_time();
cdef extern from "prrt/channelStateInformation.c":
void PrrtChannelStateInformation_init(cprrt.PrrtChannelStateInformation *csi)
cdef extern from "prrt/vdmcode/block_code.c":
int PrrtCoder_get_coder(cprrt.PrrtCoder **cod, uint8_t n, uint8_t k)
......@@ -79,4 +84,4 @@ cdef class PrrtSocket:
cprrt.PrrtSocket_send(self._c_socket, encodedData, len(data))
def close(self):
\ No newline at end of file
Supports Markdown
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