Skip to content

Commit 20ce9e9

Browse files
committed
Add bare-bones driver program
1 parent 7567e74 commit 20ce9e9

File tree

3 files changed

+576
-0
lines changed

3 files changed

+576
-0
lines changed

src/driver/sec_driver_main.cpp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*******************************************************************\
2+
3+
Module: Security Driver Main Module
4+
5+
Author: Chris Smowton, [email protected]
6+
7+
\*******************************************************************/
8+
9+
#include <util/unicode.h>
10+
11+
#include "sec_driver_parse_options.h"
12+
13+
/*******************************************************************\
14+
15+
Function: main / wmain
16+
17+
Inputs:
18+
19+
Outputs:
20+
21+
Purpose:
22+
23+
\*******************************************************************/
24+
25+
#ifdef _MSC_VER
26+
int wmain(int argc, const wchar_t **argv_wide)
27+
{
28+
const char **argv=narrow_argv(argc, argv_wide);
29+
#else
30+
int main(int argc, const char **argv)
31+
{
32+
#endif
33+
sec_driver_parse_optionst parse_options(argc, argv);
34+
35+
return parse_options.main();
36+
}

0 commit comments

Comments
 (0)