qse/ase/lsp/array.h

36 lines
801 B
C
Raw Normal View History

2005-02-04 15:39:11 +00:00
/*
2006-10-24 04:22:40 +00:00
* $Id: array.h,v 1.7 2006-10-24 04:22:39 bacon Exp $
2005-02-04 15:39:11 +00:00
*/
2006-10-24 04:22:40 +00:00
#ifndef _ASE_LSP_ARRAY_H_
#define _ASE_LSP_ARRAY_H_
2005-02-04 15:39:11 +00:00
2006-10-24 04:22:40 +00:00
#include <ase/types.h>
2005-02-04 15:39:11 +00:00
2006-10-24 04:22:40 +00:00
struct ase_lsp_array_t
2005-05-28 13:34:26 +00:00
{
2005-02-04 15:39:11 +00:00
void** buffer;
2006-10-24 04:22:40 +00:00
ase_size_t size;
ase_size_t capacity;
2005-02-04 15:39:11 +00:00
};
2006-10-24 04:22:40 +00:00
typedef struct ase_lsp_array_t ase_lsp_array_t;
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2006-10-24 04:22:40 +00:00
ase_lsp_array_t* ase_lsp_array_new (ase_size_t capacity);
void ase_lsp_array_free (ase_lsp_array_t* array);
int ase_lsp_array_add_item (ase_lsp_array_t* array, void* item);
int ase_lsp_array_insert (ase_lsp_array_t* array, ase_size_t index, void* value);
void ase_lsp_array_delete (ase_lsp_array_t* array, ase_size_t index);
void ase_lsp_array_clear (ase_lsp_array_t* array);
void** ase_lsp_array_yield (ase_lsp_array_t* array, ase_size_t capacity);
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
}
#endif
#endif