Esa_Init()
Abstract
Performs the main initialization of the ESA library.
Syntax
Esa_Init (argc, argv, options, esa_state_pptr)
| Argument | Type | Description |
|---|---|---|
argc |
int |
size of argv array |
argv |
char ** |
array of strings, typically as provided to the main() entry point |
options |
int |
one of: - ESAC_INIT_OPTS_TRACE—trace all subsequent ESA calls (similar to the tracing of kernel procedures in ODB)- ESAC_INIT_OPTS_DEBUG—run the simulation with the ODB interface- ESAC_OPTS_NONE—no special options |
esa_state_pptr |
EsaT_State_Handle * |
will be filled with an ESA opaque data structure used by the other ESA APIs. |
Return Type
EsaT_Compcode
EsaC_Comp_Success if initialization succeeds; EsaC_Comp_Failure otherwise.
Header
esa.h
Details
This function performs the main initialization of the ESA library. It sets up the Riverbed Modeler environment based on the argument list, loads preferences files (.prefs, .ef), and so on.
You must call this function before using any other ESA functions.