MACSio  0.9
Multi-purpose, Application-Centric, Scalable I/O Proxy App
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
arraylist.c File Reference
#include "config.h"
#include "bits.h"
#include "arraylist.h"

Go to the source code of this file.

Functions

struct array_listarray_list_new (array_list_free_fn *free_fn)
 
void array_list_free (struct array_list *arr)
 
void * array_list_get_idx (struct array_list *arr, int i)
 
static int array_list_expand_internal (struct array_list *arr, int max)
 
int array_list_put_idx (struct array_list *arr, int idx, void *data)
 
int array_list_add (struct array_list *arr, void *data)
 
void array_list_sort (struct array_list *arr, int(*sort_fn)(const void *, const void *))
 
int array_list_length (struct array_list *arr)
 

Function Documentation

struct array_list* array_list_new ( array_list_free_fn free_fn)

Definition at line 27 of file arraylist.c.

void array_list_free ( struct array_list arr)

Definition at line 44 of file arraylist.c.

void* array_list_get_idx ( struct array_list arr,
int  i 
)

Definition at line 54 of file arraylist.c.

static int array_list_expand_internal ( struct array_list arr,
int  max 
)
static

Definition at line 60 of file arraylist.c.

int array_list_put_idx ( struct array_list arr,
int  idx,
void *  data 
)

Definition at line 75 of file arraylist.c.

int array_list_add ( struct array_list arr,
void *  data 
)

Definition at line 85 of file arraylist.c.

void array_list_sort ( struct array_list arr,
int(*)(const void *, const void *)  sort_fn 
)

Definition at line 91 of file arraylist.c.

int array_list_length ( struct array_list arr)

Definition at line 98 of file arraylist.c.