1098 |
return &bubblePic; |
return &bubblePic; |
1099 |
} |
} |
1100 |
|
|
1101 |
int main(int argc, char *argv[]) |
void bubblemon_init(void) |
1102 |
{ |
{ |
|
int exitcode; |
|
|
|
|
1103 |
#ifdef ENABLE_PROFILING |
#ifdef ENABLE_PROFILING |
1104 |
fprintf(stderr, |
fprintf(stderr, |
1105 |
"Warning: " PACKAGE " has been configured with --enable-profiling and will show max\n" |
"Warning: " PACKAGE " has been configured with --enable-profiling and will show max\n" |
1106 |
"load all the time.\n"); |
"load all the time.\n"); |
1107 |
#endif |
#endif |
1108 |
|
|
1109 |
// Initialize the random number generation |
// Initialize the random number generation |
1110 |
srandom(time(NULL)); |
srandom(time(NULL)); |
1111 |
|
|
1112 |
// Initialize the load metering |
// Initialize the load metering |
1113 |
meter_init(argc, argv, &sysload); |
meter_init(&sysload); |
1114 |
sysload.cpuLoad = (int *)calloc(sysload.nCpus, sizeof(int)); |
sysload.cpuLoad = (int *)calloc(sysload.nCpus, sizeof(int)); |
1115 |
assert(sysload.cpuLoad != NULL); |
assert(sysload.cpuLoad != NULL); |
1116 |
|
|
1117 |
// Initialize the bottle |
// Initialize the bottle |
1118 |
physics.bottle_state = GONE; |
physics.bottle_state = GONE; |
1119 |
|
} |
1120 |
// Do the disco duck |
|
1121 |
exitcode = ui_main(argc, argv); |
void bubblemon_done(void) |
1122 |
|
{ |
1123 |
// Terminate the load metering |
// Terminate the load metering |
1124 |
meter_done(); |
meter_done(); |
|
|
|
|
return exitcode; |
|
1125 |
} |
} |