Arbiter
Dependency manager library that supports decentralization
Types.h
Go to the documentation of this file.
1 #ifndef ARBITER_TYPES_H
2 #define ARBITER_TYPES_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <stddef.h>
9 
10 /**
11  * Frees an Arbiter object.
12  *
13  * This is valid to call with a NULL pointer.
14  */
15 void ArbiterFree (void *object);
16 
17 /**
18  * Creates a copy of an Arbiter object.
19  *
20  * The returned pointer must be freed with ArbiterFree().
21  */
22 void *ArbiterCreateCopy (const void *object);
23 
24 /**
25  * Returns whether two Arbiter objects are equal.
26  */
27 bool ArbiterEqual (const void *left, const void *right);
28 
29 /**
30  * Creates a NUL-terminated string description of an Arbiter object.
31  *
32  * The returned C string must be freed with free().
33  */
34 char *ArbiterCreateDescription (const void *object);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif
void * ArbiterCreateCopy(const void *object)
Creates a copy of an Arbiter object.
char * ArbiterCreateDescription(const void *object)
Creates a NUL-terminated string description of an Arbiter object.
void ArbiterFree(void *object)
Frees an Arbiter object.
bool ArbiterEqual(const void *left, const void *right)
Returns whether two Arbiter objects are equal.