diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-06-09 09:07:48 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-06-09 09:12:52 +0200 |
commit | d0cca976be6fb90f3724911c8a124bce56b3c5f9 (patch) | |
tree | 96c92dc695f81b39227fb5f52e4c2ac469fea06b /array.h | |
parent | 7df71001ef1a9ea271ae3c409a367d6c2dd628b7 (diff) |
Restructuring the main API and project
This commit rewrites pretty much the entire library. It is now much
smaller and more maintainable (split over multiple files). It will now
also support more features (that aren't implemented yet).
Adding two examples to show how to use the new API. Also changing the
name of the library everywhere.
Diffstat (limited to 'array.h')
-rw-r--r-- | array.h | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +#ifndef _ARRAY_H_ +#define _ARRAY_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "bowl.h" + +err_t array_malloc(struct bowl *, size_t); + +err_t array_insert(struct bowl *, struct bowl *); + +err_t array_insert_key(struct bowl *, size_t idx, struct bowl *); + +err_t array_swap_key(struct bowl *, size_t idx, struct bowl *, struct bowl **); + +err_t array_remove(struct bowl *, struct bowl *); + +err_t array_remove_key(struct bowl *, size_t, struct bowl **); + +err_t array_free(struct bowl *); + +#ifdef __cplusplus +} +#endif +#endif // _ARRAY_H_
\ No newline at end of file |