/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	This program is distributed in the hope that it will be 
	useful, but WITHOUT ANY WARRANTY; without even the 
	implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.

**********************************************************************/

#ifndef TABLE_BUFFER_H__
#define TABLE_BUFFER_H__

#include "vpf_container.h"
#include "vpf_table.h"

/*
typedef struct{
	char *table_name;
	VPF_TABLE *table;
}VPF_TABLE_BUFFER_ITEM;
VPF_TABLE_BUFFER_ITEM *vpf_table_buffer_item_new();
void vpf_table_buffer_item_delete(VPF_TABLE_BUFFER_ITEM *item);
*/

typedef struct{
	int max_table_count;
	VPF_MAP *tables;
}VPF_TABLE_BUFFER;
VPF_TABLE_BUFFER *vpf_table_buff_new(int max_table_count);
void vpf_table_buff_delete(VPF_TABLE_BUFFER *buff);


VPF_TABLE *vpf_table_buff_get_table(VPF_TABLE_BUFFER *buff, const char *table_name, VPF_TABLE_TYPE type);


#endif

