kinetic-c
v0.12.0
Seagate Kinetic Protocol Client Library for C
Main Page
Related Pages
Data Structures
Files
File List
Globals
src
lib
bus
yacht_internals.h
Go to the documentation of this file.
1
/*
2
* kinetic-c
3
* Copyright (C) 2015 Seagate Technology.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*
19
*/
20
#ifndef YACHT_INTERNALS_H
21
#define YACHT_INTERNALS_H
22
23
/* Yet Another C Hash Table:
24
* An (int -> void *metadata) hash table for tracking active file
25
* descriptors and their metadata. */
26
struct
yacht
{
27
size_t
size
;
28
size_t
mask
;
29
int
*
buckets
;
30
void
**
values
;
31
};
32
33
#endif
yacht::mask
size_t mask
Mask for hash table bucket array.
Definition:
yacht_internals.h:28
yacht::buckets
int * buckets
Hash table buckets (keys).
Definition:
yacht_internals.h:29
yacht
Definition:
yacht_internals.h:26
yacht::values
void ** values
Values associated with keys, if any.
Definition:
yacht_internals.h:30
yacht::size
size_t size
Size of bucket array.
Definition:
yacht_internals.h:27
Generated by
1.8.8