X-Git-Url: https://www.flypig.org.uk/git/?p=libcontrac.git;a=blobdiff_plain;f=include%2Fcontrac%2Frpi_list.h;fp=include%2Fcontrac%2Frpi_list.h;h=7814708564320e3b7d360145185ee46cc75e397a;hp=0000000000000000000000000000000000000000;hb=8515bbba069347de07a452586d7e49a2e8bdf151;hpb=79942abab927241b65a29a8a30d71b8efe6b6d94 diff --git a/include/contrac/rpi_list.h b/include/contrac/rpi_list.h new file mode 100644 index 0000000..7814708 --- /dev/null +++ b/include/contrac/rpi_list.h @@ -0,0 +1,47 @@ +/** \ingroup contrac + * @file + * @author David Llewellyn-Jones + * @version $(VERSION) + * + * @section LICENSE + * + * + * + * @brief + * @section DESCRIPTION + * + * + * + */ + +#ifndef __RPI_LIST_H +#define __RPI_LIST_H + +// Includes + +#include "contrac/contrac.h" +#include "contrac/rpi.h" + +// Defines + +// Structures + +typedef struct _RpiList RpiList; +typedef struct _RpiListItem RpiListItem; + +// Function prototypes + +RpiList * rpi_list_new(); +void rpi_list_delete(RpiList * data); + +void rpi_list_append(RpiList * data, Rpi * rpi); + +RpiListItem const * rpi_list_first(RpiList const * data); +RpiListItem const * rpi_list_next(RpiListItem const * data); +Rpi const * rpi_list_get_rpi(RpiListItem const * data); + +// Function definitions + +#endif // __RPI_LIST_H + +