#include "rcs.hh"#include "demon.h"Include dependency graph for demon.cc:

Go to the source code of this file.
Functions | |
| int | demoFormat (NMLTYPE type, void *buffer, CMS *cms) |
|
||||||||||||||||
|
Definition at line 20 of file demon.cc. 00021 {
00022 switch (type)
00023 {
00024 case CH1_INIT_TYPE:
00025 ((CH1_INIT *) buffer)->update (cms);
00026 break;
00027
00028 case CH1_HALT_TYPE:
00029 ((CH1_HALT *) buffer)->update (cms);
00030 break;
00031
00032 case CH2_INIT_TYPE:
00033 ((CH2_INIT *) buffer)->update (cms);
00034 break;
00035
00036 case CH2_HALT_TYPE:
00037 ((CH2_HALT *) buffer)->update (cms);
00038 break;
00039
00040 case CH3_INIT_TYPE:
00041 ((CH3_INIT *) buffer)->update (cms);
00042 break;
00043
00044 case CH3_HALT_TYPE:
00045 ((CH3_HALT *) buffer)->update (cms);
00046 break;
00047
00048 case CH1_STATUS_TYPE:
00049 ((CH1_STATUS *) buffer)->update (cms);
00050 break;
00051
00052 case CH2_STATUS_TYPE:
00053 ((CH2_STATUS *) buffer)->update (cms);
00054 break;
00055
00056 case CH3_STATUS_TYPE:
00057 ((CH3_STATUS *) buffer)->update (cms);
00058 break;
00059
00060 // unknown type
00061 default:
00062 return 0; // 0 signifies didn't find
00063 }
00064
00065 return 1; // 1 signifies found it
00066 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001