X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hash.h;h=1a4f985eb575c0e07f2f78751522f7fc0568c192;hp=d91c264d55bd5496aff5cabe21417df5fa0e02e8;hb=b4802894fab96c6a1ebbbb6c18906ad1d4140ede;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281 diff --git a/hash.h b/hash.h index d91c264..1a4f985 100644 --- a/hash.h +++ b/hash.h @@ -1,19 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 1996-2000 Michael R. Elkins * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ #ifndef _HASH_H @@ -43,4 +34,8 @@ void hash_delete_hash (HASH * table, int hash, const char *key, const void *data, void (*destroy) (void *)); void hash_destroy (HASH ** hash, void (*destroy) (void *)); +void hash_map (HASH* table, + void (*mapfunc) (const char* key, void* data, unsigned long more), + unsigned long more); + #endif