new parse_arg() prototype proposal

VIEAU Cédric 172196 cedric.vieau at cea.fr
Fri Jun 23 06:50:54 EDT 2006


Hello Carter,

I'm working on a new ra client for graphical display of argus sessions. This program is based on ratemplate, and I'm looking for a way to pass some specific command line arguments to the client without patching argus_main::ArgusParseArgs()

The function parse_arg() could do the job, but I need its arguments to be pointers to argc & argv in order to remove my args when I treat them. And of course it would be easier if parse_arg() were called somewhere in argus_main ;-)

So, could it be possible to replace
  void parse_arg (int, char**);
with :
  void parse_arg (int*, char***);
?

As parse_arg() is not used yet by the clients, the change should have no impact. And I think other custom clients might benefit from this change.

Attached file is a patch proposal against argus-clients-3.0.0.rc.11 to change parse_arg prototype. I added a call to parse_arg() at the beginning of the argus_main::main() function, not sure if this is the best choice.

Thanks,
Cedric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse_arg.patch
Type: application/octet-stream
Size: 3482 bytes
Desc: parse_arg.patch
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20060623/cfcfb7d6/attachment.obj>


More information about the argus mailing list