diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-13 00:35:06 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-13 00:35:06 +0100 |
| commit | b126d01e9687e6509c9d49b1b174c95aee603a89 (patch) | |
| tree | fe05187f4f9c28ef65bf530116c20c05f1a679b8 /lib | |
| parent | e3c4f3b03aa77ea19ddf7d982d39871dbdc018c0 (diff) | |
fixing implicit functions!
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/buffer/ringbuffer.c | 1 | ||||
| -rw-r--r-- | lib/buffer/ringbuffer.h | 5 | ||||
| -rw-r--r-- | lib/logger/log.c | 1 | ||||
| -rw-r--r-- | lib/logger/log.h | 2 |
4 files changed, 9 insertions, 0 deletions
diff --git a/lib/buffer/ringbuffer.c b/lib/buffer/ringbuffer.c index cdb5fed..9e3adaf 100644 --- a/lib/buffer/ringbuffer.c +++ b/lib/buffer/ringbuffer.c @@ -5,6 +5,7 @@ #define FOOLOS_MODULE_NAME "ringbuffer" #include "lib/bool/bool.h" #include "lib/logger/log.h" +#include "kernel/spinlock.h" static volatile int front; static volatile int back; diff --git a/lib/buffer/ringbuffer.h b/lib/buffer/ringbuffer.h new file mode 100644 index 0000000..2bb6528 --- /dev/null +++ b/lib/buffer/ringbuffer.h @@ -0,0 +1,5 @@ +#include "lib/bool/bool.h" + +void ringbuffer_init(); +bool ringbuffer_put(char c); +bool ringbuffer_get(char *c); diff --git a/lib/logger/log.c b/lib/logger/log.c index 391fbcf..7bc1d82 100644 --- a/lib/logger/log.c +++ b/lib/logger/log.c @@ -4,6 +4,7 @@ #include <stdarg.h> #include "log.h" +#include "lib/printf/printf.h" #include "kernel/config.h" #include "lib/int/stdint.h" #include "kernel/time.h" diff --git a/lib/logger/log.h b/lib/logger/log.h index b00f462..1159d94 100644 --- a/lib/logger/log.h +++ b/lib/logger/log.h @@ -7,5 +7,7 @@ void log(char *module_name, int prio, char *format_string, ...); void panic(char *module_name, char *format_string); +void log_init(); +void log_log(); #endif |
