From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3849B556D for ; Mon, 3 Nov 2014 11:32:20 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 03 Nov 2014 02:39:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,307,1413270000"; d="scan'208";a="601010250" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.79]) by orsmga001.jf.intel.com with SMTP; 03 Nov 2014 02:41:30 -0800 Received: by (sSMTP sendmail emulation); Mon, 03 Nov 2014 10:41:30 +0025 Date: Mon, 3 Nov 2014 10:41:30 +0000 From: Bruce Richardson To: Keith Wiles Message-ID: <20141103104129.GA4840@bricha3-MOBL3> References: <1414967308-69530-1-git-send-email-keith.wiles@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1414967308-69530-1-git-send-email-keith.wiles@windriver.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] Add external parser support for unknown commands. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 10:32:20 -0000 On Sun, Nov 02, 2014 at 04:28:28PM -0600, Keith Wiles wrote: > Allow for a external parser to handle the command line if the > command is not found and the developer has called the routine > int cmdline_set_external_parser(struct cmdline * cl, > cmdline_external_parser_t parser); > function to set the function pointer. > > The function for the external parser function should return CMDLINE_PARSE_NOMATCH > if not able to match the command requested or zero is handled. > > Prototype of external routine: > int (*cmdline_external_parser_t)(struct cmdline * cl, const char * buy); > > Signed-off-by: Keith Wiles Hi Keith, what is the expected use case for this? Is it for embedding other programming languages alongside the existing DPDK command-line or some other purpose? [Perhaps the use case could be called out in the patch description] /Bruce