From: Ian Jackson Subject: Re: [PATCH v0 RFC 1/2] libxl: Introduce functions in libxl to add and remove USB devices for an PV guest Date: Tue, 12 Aug 2014 17:11:29 +0100 Message-ID: <21482.15537.351360.611523@mariner.uk.xensource.com> References: <1407702234-22309-1-git-send-email-caobosimon@gmail.com> <1407702234-22309-2-git-send-email-caobosimon@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1407702234-22309-2-git-send-email-caobosimon@gmail.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: Bo Cao Cc: George Dunlap , Lars Kurth , xen-devel@lists.xensource.com, Ian Campbell List-Id: xen-devel@lists.xenproject.org Bo Cao writes ("[Xen-devel][PATCH v0 RFC 1/2] libxl: Introduce functions in libxl to add and remove USB devices for an PV guest"): > This patch exposes a generic interface which can be expanded in the > future to implement USB for DEVICEMODEL. Thanks. Can you arrange to wrap this code to 70-75 characters please ? It currently is very hard to read in my mailreader. > /* generic callback for devices that only need to set ao_complete */ > -static void device_addrm_aocomplete(libxl__egc *egc, libxl__ao_device *aodev) > +void device_addrm_aocomplete(libxl__egc *egc, libxl__ao_device *aodev) > { Extern functions must have namespaced names. (libxl__...) I noticed several C++-style // comments. We generally use /* */. That's all I spotted right away. I'll take a proper look when it's less wrap-damaged. Thanks, Ian.