[Assignment-7] Flake + App base
- Add Assignment-7 to flake.nix - Implement basic framework of app - Implement proxy subcommand (mostly) - Implement basics of intermediary subcommand
This commit is contained in:
parent
0d6b13fafa
commit
25a5ca3e2d
23 changed files with 615 additions and 10 deletions
23
7-SGX_Hands-on/src/app/proxy.h
Normal file
23
7-SGX_Hands-on/src/app/proxy.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef _APP_PROXY_H_
|
||||
#define _APP_PROXY_H_
|
||||
|
||||
|
||||
/*
|
||||
* @brief getter for proxy subcommand syntax string
|
||||
*
|
||||
* @returns null-terminated syntax string
|
||||
*/
|
||||
char* proxy_syntax(void);
|
||||
|
||||
/*
|
||||
* @brief CLI implementation for the "proxy" subcommand
|
||||
*
|
||||
* @param argc number of arguments with command and subcommand stripped
|
||||
* @param argv arguments with command and subcommand stripped
|
||||
*
|
||||
* @returns 0 on success, else error with output on stderr
|
||||
*/
|
||||
int handle_proxy(int argc, char** argv);
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue