/*
 * zzList.h
 * 
 * The Zen API 
 * Copyright (C) 2010 by LMI Technologies Inc.
 * 
 * Licensed under The MIT License.
 * Redistributions of files must retain the above copyright notice.
 */
#ifndef LMITECH_ZZLIST_H_INCLUDED
#define LMITECH_ZZLIST_H_INCLUDED

#include <zList.h>
#include <zSerializer.h>
#include <zApiBegin.h>

#define zLIST_MIN_CAPACITY              (16)
#define zLIST_GROWTH_FACTOR             (2)
       
typedef struct zListClass
{   
    z32u count; 
    z32u capacity; 
    zUIntPtr itemSize; 
    void* items; 
} zListClass;

ZAPI_EXPORT(zStatus) zList_EnsureCapacity(zList list, z32u minimumCapacity); 

#include <zApiEnd.h>

#endif          /* #ifndef LMITECH_ZZLIST_H_INCLUDED */
