From clamav-devel-bounces@lists.clamav.net  Sat Mar 14 00:44:42 2009
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g-uQxB8BkCrz; Sat, 14 Mar 2009 00:44:41 +0100 (CET)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id B5A7416C298;
	Sat, 14 Mar 2009 00:44:40 +0100 (CET)
X-Original-To: clamav-devel@tad.clamav.net
Delivered-To: clamav-devel@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Dgc1UuHo3H3M for <clamav-devel@tad.clamav.net>;
	Sat, 14 Mar 2009 00:44:37 +0100 (CET)
Received: from kelly.lavabit.com (kelly.lavabit.com [72.249.41.32])
	by tad.clamav.net (Postfix) with ESMTP id AB2A416C0ED
	for <clamav-devel@lists.clamav.net>;
	Sat, 14 Mar 2009 00:44:37 +0100 (CET)
Received: from b.earth.lavabit.com (b.earth.lavabit.com [192.168.111.11])
	by kelly.lavabit.com (Postfix) with ESMTP id D4A267C1A7
	for <clamav-devel@lists.clamav.net>;
	Fri, 13 Mar 2009 18:44:36 -0500 (CDT)
Received: from 10.8.0.6 (10.8.0.6) by lavabit.com with ESMTP id 48WPF7EBN3ZR
	for <clamav-devel@lists.clamav.net>; Fri, 13 Mar 2009 18:44:36 -0500
Message-ID: <49BAEFE4.5090705@lavabit.com>
Date: Fri, 13 Mar 2009 18:44:36 -0500
From: Ladar Levison <ladar@lavabit.com>
User-Agent: Thunderbird 1.5.0.12 (X11/20090114)
MIME-Version: 1.0
To: ClamAV Development <clamav-devel@lists.clamav.net>
References: <49ABA963.2070607@average.org>
	<20090312163415.258c427f@Quad>	<49B94007.50804@average.org>
	<20090312192215.2f131f90@Quad>	<49BADA36.4010704@lavabit.com>
	<20090313234436.266f2167@Quad>
In-Reply-To: <20090313234436.266f2167@Quad>
Subject: Re: [Clamav-devel] API concerns
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

Would you accept a patch file if I ever have the time?

Tomasz Kojm wrote:
> On Fri, 13 Mar 2009 17:12:06 -0500
> Ladar Levison <ladar@lavabit.com> wrote:
>
>   
>> There currently is no function call available via the public libclamav 
>> API to return the total number of signatures in the database directory. 
>> To find this number a developer would need to manually pass the file 
>> names to the CVD functions. Since there are multiple files stored in the 
>> directory, and filenames change, I don't feel that is a stable interface 
>> model.
>>
>> Why not store the number as part of the cl_stat structure, and return it 
>> with a simple function call:
>>
>> unsigned int cl_statsigtotal(const struct cl_stat *dbstat);
>>     
>
> Please open a bug report, mark it as enhancement, and we will consider
> such a feature for one of the future releases.
>
>   

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

