Commit dcf780bd authored by Alberto Miranda's avatar Alberto Miranda ♨️
Browse files

First version of norns_transfer

parent b72cd37f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -27,8 +27,14 @@

int main() {
    printf("Hello, World! I'm the app \n");
    if( push_job() < 0 ){

    struct norns_iotd iotd = {
        .ni_tid = 0,
    };

    if(norns_transfer(&iotd) != 0) {
    	printf("Error with push job \n");
    }

    return 0;
}
+3 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ void __norns_finit(void){
	close(sock);
}

int push_job(){
int norns_transfer(struct norns_iotd* iotdp) {
	/*
	 * return -1 on error
	 */
@@ -90,4 +90,6 @@ int push_job(){
        perror("writing on stream socket");
    }
    close(sock);

    return 0;
}