changeset 255:091f5d38afcd

aci2: AT%VER returns FreeCalypso firmware version string
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 03 Aug 2017 23:18:11 +0000
parents cae495752cf7
children ba63f14d1e84
files src/aci2/aci/ati_csc.c
diffstat 1 files changed, 3 insertions(+), 81 deletions(-) [+]
line wrap: on
line diff
--- a/src/aci2/aci/ati_csc.c	Thu Aug 03 19:18:16 2017 +0000
+++ b/src/aci2/aci/ati_csc.c	Thu Aug 03 23:18:11 2017 +0000
@@ -573,94 +573,16 @@
   PURPOSE : %VER displays version of entities
 */
 
-#if !defined (WIN32) AND !defined(_lint)
-EXTERN CHAR* aci_version(void);
-EXTERN CHAR* cc_version(void);
-//EXTERN CHAR* ccd_version(void);
-EXTERN CHAR* dl_version(void);
-EXTERN CHAR* mm_version(void);
-EXTERN CHAR* rr_version(void);
-EXTERN CHAR* sim_version(void);
-EXTERN CHAR* sms_version(void);
-EXTERN CHAR* ss_version(void);
-EXTERN CHAR* l1_version(void);
-#ifdef SMI
-EXTERN CHAR* smi_version(void);
-#endif
-#ifdef MFW
-EXTERN CHAR* bmi_version(void);
-EXTERN CHAR* mfw_version(void);
-#endif
-#ifdef FAX_AND_DATA
-EXTERN CHAR* l2r_version(void);
-EXTERN CHAR* ra_version(void);
-EXTERN CHAR* rlp_version(void);
-#ifdef FF_FAX
-EXTERN CHAR* fad_version(void);
-EXTERN CHAR* t30_version(void);
-#endif /* FF_FAX */
-#endif /* FAX_AND_DATA */
-#endif
+extern const char firmware_version_str[];
 
 GLOBAL T_ATI_RSLT atPercentVER (char* cl, UBYTE srcId)
 {
   char *me="%VER: ";
   
   TRACE_FUNCTION("atPercentVER()");
-#if !defined (WIN32) AND !defined(_lint)
-  sprintf(g_sa,"%s%s",me,aci_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,cc_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  //sprintf(g_sa,"%s%s",me,ccd_version());
-  //io_sendMessage(g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,dl_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,mm_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,rr_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,sim_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,sms_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,ss_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,l1_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-#ifndef NEW_FRAME
-  sprintf(g_sa,"%s%s",me,comframe_version());
+
+  sprintf(g_sa, "%s%s", me, firmware_version_str);
   io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-#endif
-#ifdef SMI
-  sprintf(g_sa,"%s%s",me,smi_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-#endif
-#ifdef MFW
-  sprintf(g_sa,"%s%s",me,bmi_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,mfw_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-#endif
-
-#ifdef FAX_AND_DATA
-  sprintf(g_sa,"%s%s",me,l2r_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,ra_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,rlp_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-
-#ifdef FF_FAX
-  sprintf(g_sa,"%s%s",me,fad_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-  sprintf(g_sa,"%s%s",me,t30_version());
-  io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
-#endif /* FF_FAX */
-
-#endif /* FAX_AND_DATA */
-
-#endif
 
   return (ATI_CMPL);
 }