feat: reformatted code base to be more standard
This commit is contained in:
11
include/myke/util/power.h
Normal file
11
include/myke/util/power.h
Normal file
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// Created by rick on 03-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_POWER_H
|
||||
#define NEW_KERNEL_POWER_H
|
||||
#include <myke/attributes.h>
|
||||
|
||||
void noreturn power_shutdown();
|
||||
|
||||
#endif //NEW_KERNEL_POWER_H
|
||||
26
include/myke/util/stream.h
Normal file
26
include/myke/util/stream.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Created by rick on 02-03-21.
|
||||
//
|
||||
|
||||
#ifndef NEW_KERNEL_STREAM_H
|
||||
#define NEW_KERNEL_STREAM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct stream stream_t;
|
||||
|
||||
stream_t *stream_create(uint32_t size);
|
||||
|
||||
void stream_free(stream_t *strm);
|
||||
|
||||
void stream_wait(stream_t *stream);
|
||||
|
||||
uint32_t stream_read(stream_t *strm, uint8_t *target, uint32_t count);
|
||||
|
||||
uint32_t stream_write(stream_t *strm, const uint8_t *source, uint32_t count);
|
||||
|
||||
uint32_t stream_get_write_available(stream_t *stream);
|
||||
|
||||
uint32_t stream_get_read_available(stream_t *stream);
|
||||
|
||||
#endif //NEW_KERNEL_STREAM_H
|
||||
Reference in New Issue
Block a user