@@ -119,6 +119,7 @@ namespace AkVCam {
119119 int defaultHandler (const StringMap &flags,
120120 const StringVector &args);
121121 int showHelp (const StringMap &flags, const StringVector &args);
122+ int showSystemAPI (const StringMap &flags, const StringVector &args);
122123 int showDevices (const StringMap &flags, const StringVector &args);
123124 int addDevice (const StringMap &flags, const StringVector &args);
124125 int removeDevice (const StringMap &flags, const StringVector &args);
@@ -205,6 +206,10 @@ AkVCam::CmdParser::CmdParser()
205206 this ->addFlags (" " ,
206207 {" --build-info" },
207208 " Show build information." );
209+ this ->addCommand (" system-api" ,
210+ " " ,
211+ " Show the virtual camera API being used." ,
212+ AKVCAM_BIND_FUNC (CmdParserPrivate::showSystemAPI));
208213 this ->addCommand (" devices" ,
209214 " " ,
210215 " List devices." ,
@@ -891,6 +896,17 @@ int AkVCam::CmdParserPrivate::showHelp(const StringMap &flags,
891896 return 0 ;
892897}
893898
899+ int AkVCam::CmdParserPrivate::showSystemAPI (const StringMap &flags,
900+ const StringVector &args)
901+ {
902+ UNUSED (flags);
903+ UNUSED (args);
904+
905+ auto api = this ->m_ipcBridge .systemAPI ();
906+
907+ AkPrintOut (api.c_str ());
908+ }
909+
894910int AkVCam::CmdParserPrivate::showDevices (const StringMap &flags,
895911 const StringVector &args)
896912{
0 commit comments