From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v10 02/15] libxc/progress: Extend the progress interface Date: Tue, 5 May 2015 13:56:51 +0100 Message-ID: <1430830611.2660.82.camel@citrix.com> References: <1429789725-18768-1-git-send-email-andrew.cooper3@citrix.com> <1429789725-18768-3-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429789725-18768-3-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2015-04-23 at 12:48 +0100, Andrew Cooper wrote: > Progress information is logged via a different logger to regular libxc log > messages, and currently can only express a range. However, not everything > which needs reporting as progress comes with a range. Extend the interface to > allow reporting of a single statement. > > The programming interface now looks like: > xc_set_progress_prefix() > set the prefix string to be used > xc_report_progress_single() > report a single action > xc_report_progress_step() > report $X of $Y > > The new programming interface is implemented in a compatible way with the > existing caller interface (by reporting a single action as "0 of 0"). > > Signed-off-by: Andrew Cooper Acked-by: Ian Campbell