main.c 763 Bytes
#include "libusb_wrapper.h"
#include <stdio.h>

int main(int argc, char *argv[]){
	printf("Hello World :-|\n");

    libusb_context *context;
    usbinit(&context);

	if(argc>1){
	    //command mode
        if(strcmp(argv[1], "demo4.1") == 0) { //if 4.1
            printf("\e[91mDemo 4.1\e[39m\n");
            displayDevices(context);
        }
        else if(strcmp(argv[1], "demo4.2") == 0){//if 4.2
            printf("\e[91mDemo 4.2\e[39m\n");
            //displayDeviceEndpoints(Ourdevice);
            //else
        }else{
            printf("Wrong command\n");
        }

	}else{
        //interactive mode
        printf("Welcome to interactive mode\n");

        /*Future code*/

        printf("Finished\n");
	}


	usbclose(context);

	return 0;
}