taskrambler  0.1.9
Web server and task management solution.
indexable.h
Go to the documentation of this file.
1 /**
2  * \file
3  * This interface provides only one function at all.
4  * indexUuid will generate a uuid to the current object.
5  *
6  * \todo
7  * Maybe merge hashable and indexable. Thus we might get an
8  * easy way to exchange the hashing mechanism used for my
9  * associative arrays.
10  *
11  * \author Georg Hopp
12  *
13  * \copyright
14  * Copyright © 2012 Georg Hopp
15  *
16  * This program is free software: you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation, either version 3 of the License, or
19  * (at your option) any later version.
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program. If not, see <http://www.gnu.org/licenses/>.
28  */
29 
30 #ifndef __INDEXABLE_H__
31 #define __INDEXABLE_H__
32 
33 #include "uuid.h"
34 
35 
36 typedef Uuid (* fptr_indexUuid)(void *, Uuid);
37 
38 extern const struct interface i_Indexable;
39 
40 struct i_Indexable {
41  const struct interface * const _;
43 };
44 
45 extern Uuid indexUuid(void *, Uuid);
46 
47 #endif // __INDEXABLE_H__
48 
49 // vim: set ts=4 sw=4:
Uuid(* fptr_indexUuid)(void *, Uuid)
Definition: indexable.h:36
fptr_indexUuid uuid
Definition: indexable.h:42
const struct interface *const _
Definition: indexable.h:41
Uuid indexUuid(void *, Uuid)
Definition: indexable.c:33