qse/ase/lsp/array.h

36 lines
801 B
C
Raw Normal View History

2005-02-04 15:39:11 +00:00
/*
2006-10-22 13:10:46 +00:00
* $Id: array.h,v 1.6 2006-10-22 13:10:45 bacon Exp $
2005-02-04 15:39:11 +00:00
*/
2006-10-22 13:10:46 +00:00
#ifndef _SSE_LSP_ARRAY_H_
#define _SSE_LSP_ARRAY_H_
2005-02-04 15:39:11 +00:00
2006-10-22 13:10:46 +00:00
#include <sse/types.h>
2005-02-04 15:39:11 +00:00
2006-10-22 13:10:46 +00:00
struct sse_lsp_array_t
2005-05-28 13:34:26 +00:00
{
2005-02-04 15:39:11 +00:00
void** buffer;
2006-10-22 13:10:46 +00:00
sse_size_t size;
sse_size_t capacity;
2005-02-04 15:39:11 +00:00
};
2006-10-22 13:10:46 +00:00
typedef struct sse_lsp_array_t sse_lsp_array_t;
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2006-10-22 13:10:46 +00:00
sse_lsp_array_t* sse_lsp_array_new (sse_size_t capacity);
void sse_lsp_array_free (sse_lsp_array_t* array);
int sse_lsp_array_add_item (sse_lsp_array_t* array, void* item);
int sse_lsp_array_insert (sse_lsp_array_t* array, sse_size_t index, void* value);
void sse_lsp_array_delete (sse_lsp_array_t* array, sse_size_t index);
void sse_lsp_array_clear (sse_lsp_array_t* array);
void** sse_lsp_array_yield (sse_lsp_array_t* array, sse_size_t capacity);
2005-02-04 15:39:11 +00:00
#ifdef __cplusplus
}
#endif
#endif