delete and create ipv init

This commit is contained in:
Dennis Boekholtz 2024-03-27 17:11:07 +01:00
parent 50fd4d952f
commit 2e6d7bc2d9
2 changed files with 15 additions and 4 deletions

View File

@ -152,6 +152,17 @@ bool buffer_is_empty(void)
return ((FIFO_LastElement_p == NULL) && (FIFO_FirstElement_p == NULL)); return ((FIFO_LastElement_p == NULL) && (FIFO_FirstElement_p == NULL));
} }
bool FIFOBuffChar_create(int ){
}
bool FIFOBuffChar_delete(int ){
}
unsigned int number_of_elements_in_buffer() unsigned int number_of_elements_in_buffer()
{ {
return FIFO_count; return FIFO_count;

View File

@ -12,7 +12,7 @@ struct FIFOBuffChar_element_s {
}; };
// defines all vars for the buffer to operate // defines all vars for the buffer to operate
typedef FIFOBuffChar_s { typedef struct FIFOBuffChar_s {
struct FIFOBuffChar_element_s* FirstEl_p; struct FIFOBuffChar_element_s* FirstEl_p;
struct FIFOBuffChar_element_s* LastEl_p; struct FIFOBuffChar_element_s* LastEl_p;
unsigned char size; unsigned char size;
@ -20,11 +20,11 @@ typedef FIFOBuffChar_s {
} FIFOBuffChar_t; } FIFOBuffChar_t;
// create a fifo buffer and initilizes it with zeros // create a fifo buffer and initilizes it with zeros
extern FIFOBuffChar_t* FIFOBuffChar_init(); extern FIFOBuffChar_t* FIFOBuffChar_create();
// destroy a fifo buffer (free up its space) // destroy a fifo buffer (free up its space)
// returns true on success or false otherways // returns true on success or false otherways
extern bool FIFOBuffChar_deinit(FIFOBuffChar_t* fifo); extern bool FIFOBuffChar_delete(FIFOBuffChar_t* fifo);
// put value i in buffer if there is still memory avaliable // put value i in buffer if there is still memory avaliable
// returns true on success or false otherways // returns true on success or false otherways
@ -40,6 +40,6 @@ extern bool FIFOBuffChar_is_full(FIFOBuffChar_t *fifo);
// returns true when buffer is empty or false otherways // returns true when buffer is empty or false otherways
extern bool FIFOBuffChar_is_empty(FIFOBuffChar_t *fifo); extern bool FIFOBuffChar_is_empty(FIFOBuffChar_t *fifo);
extern unsigned int FIFOBuffChar_getSize(); extern unsigned int FIFOBuffChar_getSize(FIFOBuffChar_t *fifo);
#endif #endif