X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fcircularbytebuffer.h;h=2e51fd22f0be78fdb43ecef4c1869cd4a3101006;hb=d9352fc79fbdee0cf3288809b104ea196ea85693;hp=9f2900328dfde17a497c214d17288db58473e0dd;hpb=27f4804c185ae24b3b6367bb2fdb898d6692d0f6;p=avr-crypto-lib.git diff --git a/test_src/circularbytebuffer.h b/test_src/circularbytebuffer.h index 9f29003..2e51fd2 100644 --- a/test_src/circularbytebuffer.h +++ b/test_src/circularbytebuffer.h @@ -1,7 +1,7 @@ /* circularbytebuffer.h */ /* This file is part of the AVR-circularbytebuffer. - Copyright (C) 2009 Daniel Otte (daniel.otte@rub.de) + Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,7 +18,7 @@ */ /** * \file circularbytebuffer.h - * \email daniel.otte@rub.de + * \email bg@nerilex.org * \author Daniel Otte * \date 2009-07-24 * \license GPLv3 or later @@ -40,10 +40,10 @@ typedef struct { uint8_t buffer_size; /**< holds the amount of bytes which may be stored in the buffer */ uint8_t fillcount; /**< holds the amount of bytes actually stored in the buffer */ - uint8_t* buffer; /**< pointer to the actual buffer */ - uint8_t* head; /**< pointer to the head of the buffer */ - uint8_t* tail; /**< pointer to the tail of the buffer */ - uint8_t* top; /**< pointer to the last free address in the buffer */ + uint8_t *buffer; /**< pointer to the actual buffer */ + uint8_t *head; /**< pointer to the head of the buffer */ + uint8_t *tail; /**< pointer to the tail of the buffer */ + uint8_t *top; /**< pointer to the last free address in the buffer */ } circularbytebuffer_t; @@ -55,7 +55,7 @@ * \param buffersize size of the buffer to allocate * \param cb buffer context to be initialized */ -uint8_t circularbytebuffer_init(uint8_t buffersize, circularbytebuffer_t* cb); +uint8_t circularbytebuffer_init(uint8_t buffersize, circularbytebuffer_t *cb); #endif #if CIRCULARBYTEBUFFER_NO_INIT2==0 /** \brief buffer initialisation without automatic allocation @@ -66,18 +66,18 @@ uint8_t circularbytebuffer_init(uint8_t buffersize, circularbytebuffer_t* cb); * \param cb buffer context to be initialized * \param buffer buffer for the storage of data (you are responisble for allocation and freeing) */ -void circularbytebuffer_init2(uint8_t buffersize, circularbytebuffer_t* cb, void* buffer); +void circularbytebuffer_init2(uint8_t buffersize, circularbytebuffer_t *cb, void *buffer); #endif /** \brief * * */ -uint16_t circularbytebuffer_get_lifo(circularbytebuffer_t* cb); -uint16_t circularbytebuffer_get_fifo(circularbytebuffer_t* cb); -uint8_t circularbytebuffer_append(uint8_t, circularbytebuffer_t* cb); -uint8_t circularbytebuffer_push(uint8_t, circularbytebuffer_t* cb); -uint8_t circularbytebuffer_cnt(circularbytebuffer_t* cb); -void circularbytebuffer_free(circularbytebuffer_t* cb); +uint16_t circularbytebuffer_get_lifo(circularbytebuffer_t *cb); +uint16_t circularbytebuffer_get_fifo(circularbytebuffer_t *cb); +uint8_t circularbytebuffer_append(uint8_t, circularbytebuffer_t *cb); +uint8_t circularbytebuffer_push(uint8_t, circularbytebuffer_t *cb); +uint8_t circularbytebuffer_cnt(circularbytebuffer_t *cb); +void circularbytebuffer_free(circularbytebuffer_t *cb); /*@}*/ #endif /* CIRCULARBYTEBUFFER_H_ */