# My Digital Signal Controller Library # The objective of MyDSC library is to implement controllers with help digital signal processors, digital signal controllers or mixed signals processors.
Dependents: mydsc_sampling_example mydsc_sampling_example mydsc-serial-example mydsc-nonblocking-example
Diff: include/mydsc_kvp.h
- Revision:
- 4:90c3f1288d41
- Parent:
- 2:1f276b0dd807
diff -r b780db800303 -r 90c3f1288d41 include/mydsc_kvp.h --- a/include/mydsc_kvp.h Mon Mar 09 15:56:21 2020 +0000 +++ b/include/mydsc_kvp.h Sat Mar 28 16:09:15 2020 +0000 @@ -4,8 +4,10 @@ @brief A very basic key-value pair system is implemented. **/ -#ifndef MYDSC_kvp_H -#define MYDSC_kvp_H +#ifndef MYDSC_KVP_H +#define MYDSC_KVP_H + +#include "mydsc_error.h" #include <stdint.h> @@ -13,14 +15,6 @@ extern "C" { #endif -/// Error conditions on looking-up a key, or trying to setting the value. -enum mydsc_kvp_errno_t { - MYDSC_KVP_SUCCESS = 0, - MYDSC_KVP_NO_SET = -1, - MYDSC_KVP_NO_KEY = -2, - MYDSC_KVP_WRONG_VALUE = -3 -}; - /// The structure sets a linked list up. typedef struct mydsc_kvp_struct { char *key; @@ -60,4 +54,4 @@ } #endif -#endif // MYDSC_RING_BUFFER_H +#endif // MYDSC_KVP_H