Commit 06afdefd authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Fix Python bindings.

parent 44b41686
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ void BBR_OnACK(BBR* bbr, PrrtChannelStateInformation* csi, PrrtRateSample* rs, P
    BBR_SetCwnd(bbr, packetTracking);
}

BBR* BBR_Init()
BBR* BBR_Init(void)
{
    BBR* bbr = calloc(1, sizeof(BBR));
    check_mem(bbr);
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ typedef struct bbr {
    WindowedFilter* btlBwFilter;
} BBR;

BBR* BBR_Init();
BBR* BBR_Init(void);
void BBR_OnACK(BBR* bbr, PrrtChannelStateInformation* csi, PrrtRateSample* rs, PrrtPacketTracking* recv_stats);
void BBR_destroy(BBR* bbr);

+1 −0
Original line number Diff line number Diff line
@@ -192,6 +192,7 @@ bool PrrtReceiver_updateAndGenerateRateSample(PrrtReceiver *recv, prrtSequenceNu

    error:
    PERROR("Mutex error.%s", "");
    return false;
}

void PrrtReceiver_add_outstanding_packet_state(PrrtReceiver *recv, PrrtPacket *packet, prrtTimestamp_t sentTime) {
+6 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ cdef extern from "proto/processes/dataTransmitter.c":
cdef extern from "proto/block.c":
    pass

cdef extern from "proto/bbr.c":
    pass

cdef extern from "proto/clock.c":
    pass

@@ -89,6 +92,9 @@ cdef extern from "util/pipe.c":
cdef extern from "util/mpsc_queue.c":
    pass

cdef extern from "util/windowedFilter.c":
    pass

class PrrtCodingConfiguration:
    def __init__(self, n, k, n_cycle):
        # TODO: Validity checks
Compare 116a01bd to 5123d833
Original line number Diff line number Diff line
Subproject commit 116a01bd708b76d11124f6dd773d56bbecb93ebf
Subproject commit 5123d8333ea4292f84f73e929d3fb7a5b840d056