Return-Path: Message-ID: <504301AF.4020408@ti.com> Date: Sun, 2 Sep 2012 09:50:23 +0300 From: Chen Ganir MIME-Version: 1.0 To: Szymon Janc CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH v2] gatt: Translate Characteristic names References: <1346237776-12781-1-git-send-email-chen.ganir@ti.com> <1472845.YqRC14yUFc@uw000953> <503F5EAC.4070909@ti.com> <1652968.T8pSJl1pGy@uw000953> In-Reply-To: <1652968.T8pSJl1pGy@uw000953> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Szymon : On 08/30/2012 03:43 PM, Szymon Janc wrote: > On Thursday 30 of August 2012 15:38:04 Chen Ganir wrote: > >>>> static GSList *gatt_services = NULL; >>>> >>>> +static const struct characteristic_info *get_char_info(const char* uuid) >>> >>> I would leave this function returning name directly and not whole struct characteristic_info. >>> >> Why ? We have this struct with characteristic information (maybe later >> we'll add more information. Why limit ourselves to name only ? > > If you plan to add more data into that structure then it is OK to return whole struct. > But if only name is to be used, then I would just call that function get_name() and > return name. > For now, i believe this is the only information we have for the characteristic. I will send an updated patch. BR, Chen Ganir