Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
annotate src/Application/SimParams.h @ 2:d872169e58fa
Minor changes -- mostly renaming structs and vars
| author | Me@portablequad |
|---|---|
| date | Wed, 30 Nov 2011 08:40:30 -0800 |
| parents | 8ea476474093 |
| children | 648207f2e38f |
| rev | line source |
|---|---|
| Me@1 | 1 /* |
| Me@1 | 2 * Copyright 2011 OpenSourceStewardshipFoundation.org |
| Me@1 | 3 * Licensed under GNU General Public License version 2 |
| Me@1 | 4 */ |
| Me@1 | 5 |
| Me@1 | 6 #ifndef SIM_PARAMS_ |
| Me@1 | 7 #define SIM_PARAMS_ |
| Me@1 | 8 |
| Me@1 | 9 #include <stdio.h> |
| Me@1 | 10 #include <unistd.h> |
| Me@1 | 11 #include <malloc.h> |
| Me@1 | 12 |
| Me@1 | 13 #include "../HWSim_lib/VMS/VMS_primitive_data_types.h" |
| Me@1 | 14 #include "ParamHelper/Param.h" |
| Me@1 | 15 |
| Me@1 | 16 |
| Me@1 | 17 //============================== Structures ============================== |
| Me@1 | 18 typedef struct |
| Me@1 | 19 { uint8 *guestApp; |
| Me@1 | 20 uint8 *systemCode; |
| Me@1 | 21 int32 numNodes; |
| Me@1 | 22 } |
| Me@1 | 23 SimulationResults; |
| Me@1 | 24 |
| Me@1 | 25 typedef struct |
| Me@1 | 26 { uint8 *guestApp; |
| Me@1 | 27 uint8 *systemCode; |
| Me@1 | 28 int32 numNodes; |
| Me@1 | 29 SimulationResults *simResults; |
| Me@1 | 30 } |
| Me@1 | 31 SimulationParams; |
| Me@1 | 32 |
| Me@1 | 33 //============================== Functions ================================ |
| Me@1 | 34 void |
| Me@1 | 35 printSimResults( SimulationResults simResults ); |
| Me@1 | 36 |
| Me@1 | 37 void |
| Me@1 | 38 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); |
| Me@1 | 39 |
| Me@1 | 40 |
| Me@1 | 41 //=========================================================================== |
| Me@1 | 42 |
| Me@1 | 43 #endif /**/ |
| Me@1 | 44 |
