/usr/include/sfcCommon/hashtable.h is in libsfcutil0-dev 1.0.1-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /*
* hashtable.h
*
* (C) Copyright IBM Corp. 2005
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
* CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
*
* You can obtain a current copy of the Eclipse Public License from
* http://www.opensource.org/licenses/eclipse-1.0.php
*
* Author: Keith Pomakis <pomaki@pobox.xom>
* Contributions: Adrian Schuur <schuur@de.ibm.com>
*
* Description:
*
* hashtable implementation.
*
*/
/*--------------------------------------------------------------------------*\
* -----===== HashTable =====-----
*
* Author: Keith Pomakis (pomakis@pobox.com)
* Date: August, 1998
*
\*--------------------------------------------------------------------------*/
#ifndef _HASHTABLE_H
#define _HASHTABLE_H
/*
* These structs should not be accessed directly from user code. All
* access should be via the public functions declared below.
*/
typedef struct KeyValuePair_struct {
const void *key;
void *value;
struct KeyValuePair_struct *next;
} KeyValuePair;
typedef struct {
long numOfBuckets;
long numOfElements;
KeyValuePair **bucketArray;
float idealRatio,
lowerRehashThreshold,
upperRehashThreshold;
int (*keycmp) (const void *key1, const void *key2);
int (*valuecmp) (const void *value1, const void *value2);
unsigned long (*hashFunction) (const void *key);
void (*keyDeallocator) (void *key);
void (*valueDeallocator) (void *value);
} HashTable;
struct _HashTableIterator {
int bucket;
KeyValuePair *pair;
};
typedef struct _HashTableIterator HashTableIterator;
#endif /* _HASHTABLE_H */
/* MODELINES */
/* DO NOT EDIT BELOW THIS COMMENT */
/* Modelines are added by 'make pretty' */
/* -*- Mode: C; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
/* vi:set ts=2 sts=2 sw=2 expandtab: */
|