2008-10-29 03:31:07     Invoking command from another command

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-10-29 03:31:07     Invoking command from another command

V Hemanth Kumar (INDIA)

Message: 64306   

 

Hi Good Day,

 

I would like to know how to invoke a command from another command?

 

Lets say I have below modules:

 

1. cmd_diagnostics.c provides the "diagnostics" command for user.

 

2. cmd_audiotest.c provides the "audiotest" command.

 

Now if the user types "diagnostics" he gets below options:-

 

1. dma test - "dma mode, mode - autobuffer/stop"

 

2. audio test - "audiotest mode, mode - playback/loopback "

 

(Control is still in the diagnostics module).

 

Now if the user types "audio playback" then can the cmd_diagnostics.c module invoke the "audiotest" command with appropriate arguments?

 

 

 

Regards

 

~Hemanth

QuoteReplyEditDelete

 

 

2008-10-29 03:39:24     Re: Invoking command from another command

Mike Frysinger (UNITED STATES)

Message: 64307   

 

having one command call another isnt really supported.  the supported method is to provide common functions that each front end command calls.

 

QuoteReplyEditDelete

 

 

2008-10-29 04:11:22     Re: Invoking command from another command

V Hemanth Kumar (INDIA)

Message: 64308   

 

Thanks for the information Mike.

Attachments

    Outcomes