diff src/g23m-aci/aci/ati_csc.c @ 260:df0b531bb53d

aci3: AT%VER returns FreeCalypso firmware version string
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 04 Aug 2017 15:24:42 +0000
parents 53929b40109c
children
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_csc.c	Fri Aug 04 07:34:37 2017 +0000
+++ b/src/g23m-aci/aci/ati_csc.c	Fri Aug 04 15:24:42 2017 +0000
@@ -570,94 +570,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);
 }