Attached to this Project description the entire Python script. The script is a command line utility which does a couple of network related functions on linux by executing some commands (lspci, etc) or writing a value to a file. It is interactive - user executes the script with command line arguments.
What we are needing is not a program but a library. So:
1. This will be a library dropped into an exiting application
2. There is NO TEXT output needed for what we need - all that can be 100% deleted
3. The library shall work as follows:
Instead of providing output to the screen, structs shall be created in its place and returned to the calling function. A global {errstruct} shall exist, so if an error occurs while executing a function the errstruct shall be populated with the error and returned.
Any functions which output text not needed. Structs or array of structs in some cases is what is needed.
These functions do not need to be converted:
usage()
check_output()
display_devices()
parse_args()
do_arg_actions()
This function needs to be changed to return a struct with 3 arrays of structs:
show_status() - make this function return the 3 arrays instead of displaying them
The candidate this is awarded to shall:
1. Maintain all code in a repository on GITHUB that we provide. (We have a private repository)
2. This should not take more than a few hours time to complete.
3. Project should include:
a. codefile and header for the library
b. a main function which initializes the library and executes some of the commands
c. a Makefile
d. Show compile on a Redhat/Fedora/CentOS (We use CentOS) system
Prepared to reward the JOB Immediately to a qualified candidate who can get it done quickly.