f***ed up and needed to rework packages
This commit is contained in:
parent
f4592ae8d0
commit
b43ab1702f
73 changed files with 194 additions and 2045 deletions
|
|
@ -3,12 +3,13 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#define ARC_ERRNO_NULL -0x01
|
||||
#define ARC_ERRNO_DATA -0x02
|
||||
#define ARC_ERRNO_COPY -0x03
|
||||
#define ARC_ERRNO_EXISTS -0x04
|
||||
#define ARC_ERRNO_OVERFLOW -0x05
|
||||
#define ARC_ERRNO_INIT -0x06
|
||||
#define ARC_ERRNO_NULL -0x01
|
||||
#define ARC_ERRNO_DATA -0x02
|
||||
#define ARC_ERRNO_COPY -0x03
|
||||
#define ARC_ERRNO_EXISTS -0x04
|
||||
#define ARC_ERRNO_OVERFLOW -0x05
|
||||
#define ARC_ERRNO_INIT -0x06
|
||||
#define ARC_ERRNO_CONNECTION -0x07
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ void ARC_Handler_Remove(ARC_Handler *handler, void *data, ARC_Handler_CompareDat
|
|||
* @param handler ARC_Handler to remove from
|
||||
* @param index index of data that is being removed
|
||||
*/
|
||||
void ARC_Handler_RemoveIndex(ARC_Handler *handler, uint32_t *index);
|
||||
void ARC_Handler_RemoveIndex(ARC_Handler *handler, uint32_t index);
|
||||
|
||||
/**
|
||||
* @brief calls provided function on each element in handler
|
||||
|
|
@ -115,7 +115,7 @@ void ARC_Handler_Clean(ARC_Handler *handler);
|
|||
*
|
||||
* @param handler ARC_handler to get size from
|
||||
*/
|
||||
uint32_t *ARC_Handler_Size(ARC_Handler *handler);
|
||||
uint32_t ARC_Handler_Size(ARC_Handler *handler);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ void ARC_Vector_Remove(ARC_Vector *vector, void *data, ARC_Vector_CompareDataFn
|
|||
* @param vector ARC_Vector to remove from
|
||||
* @param index index of data that is being removed
|
||||
*/
|
||||
void ARC_Vector_RemoveIndex(ARC_Vector *vector, uint32_t *index);
|
||||
void ARC_Vector_RemoveIndex(ARC_Vector *vector, uint32_t index);
|
||||
|
||||
/**
|
||||
* @brief gets size of vector
|
||||
|
|
@ -66,7 +66,7 @@ void ARC_Vector_RemoveIndex(ARC_Vector *vector, uint32_t *index);
|
|||
*
|
||||
* @return the pointer of the vectors size, TODO: don't pass as a pointer
|
||||
*/
|
||||
uint32_t *ARC_Vector_Size(ARC_Vector *vector);
|
||||
uint32_t ARC_Vector_Size(ARC_Vector *vector);
|
||||
|
||||
/**
|
||||
* @brief gets data from ARC_Vector at position index
|
||||
|
|
@ -76,7 +76,7 @@ uint32_t *ARC_Vector_Size(ARC_Vector *vector);
|
|||
*
|
||||
* @return pointer to data on success, NULL on fail
|
||||
*/
|
||||
void *ARC_Vector_Get(ARC_Vector *vector, uint32_t *index);
|
||||
void *ARC_Vector_Get(ARC_Vector *vector, uint32_t index);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue