Use macro wrappers for device op prototypes
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef _KERNEL_DEVICE_TERMINAL_H
|
||||
#define _KERNEL_DEVICE_TERMINAL_H
|
||||
|
||||
#include <device/def_device_op.h>
|
||||
#include <libk/list.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/proc.h>
|
||||
@@ -8,15 +9,12 @@
|
||||
|
||||
struct device;
|
||||
|
||||
bool terminal_init (struct device* device, void* arg, struct proc* proc,
|
||||
struct reschedule_ctx* rctx);
|
||||
DEFINE_DEVICE_INIT (terminal_init);
|
||||
|
||||
void terminal_fini (struct device* device, struct proc* proc, struct reschedule_ctx* rctx);
|
||||
DEFINE_DEVICE_FINI (terminal_fini);
|
||||
|
||||
int terminal_putstr (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (terminal_putstr);
|
||||
|
||||
int terminal_dimensions (struct device* device, struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags, void* a1, void* a2, void* a3, void* a4);
|
||||
DEFINE_DEVICE_OP (terminal_dimensions);
|
||||
|
||||
#endif // _KERNEL_DEVICE_TERMINAL_H
|
||||
|
||||
Reference in New Issue
Block a user