aos/include/hashtable/multimap.h
Daniel Schwyn 6d444bf552 Main handout
Signed-off-by: Daniel Schwyn <daniel.schwyn@inf.ethz.ch>
2022-03-03 14:57:51 +01:00

36 lines
801 B
C

/**
* \file
* \brief multimap implementation
*/
/*
* Copyright (c) 2009, 2011 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#ifndef MULTIMAP_H_
#define MULTIMAP_H_
#include <hashtable/hashtable.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
struct multimap {
struct hashtable h;
int (*put)(struct multimap*, char*, void*);
int (*remove)(struct multimap*, char*, void*);
int (*get_first)(struct multimap*, char*, void**);
int (*get_all)(struct multimap*, char*, void**, int);
};
struct multimap* create_multimap(void);
__END_DECLS
#endif /* MULTIMAP_H_ */