nfs-ganesha 1.4

HashData.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Copyright CEA/DAM/DIF  (2008)
00005  * contributeur : Philippe DENIEL   philippe.deniel@cea.fr
00006  *                Thomas LEIBOVICI  thomas.leibovici@cea.fr
00007  *
00008  *
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public
00011  * License as published by the Free Software Foundation; either
00012  * version 3 of the License, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017  * Lesser General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU Lesser General Public
00020  * License along with this library; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022  * 02110-1301 USA
00023  *
00024  * ---------------------------------------
00025  *
00026  * Definition of the data to be stored in the hash table
00027  *
00028  */
00029 
00030 #ifndef _HASH_DATA_H
00031 #define _HASH_DATA_H
00032 
00033 #include <unistd.h>
00034 #include <sys/types.h>
00035 #include <sys/param.h>
00036 
00037 /*
00038  * Defintion of buffers to be used into the HashTable
00039  */
00040 
00041 typedef struct hash_buff
00042 {
00043      void *pdata;
00044      size_t len;
00045 } hash_buffer_t;
00046 
00047 typedef struct hash_data
00048 {
00049      struct hash_buff buffval;
00050      struct hash_buff buffkey;
00051 } hash_data_t;
00052 #endif