minix/servers/devman/proto.h
Ben Gras 6a73e85ad1 retire _PROTOTYPE
. only good for obsolete K&R support
	. also remove a stray ansi.h and the proto cmd
2012-03-25 16:17:10 +02:00

23 lines
599 B
C

#ifndef _DEVMAN_PROTO_H
#define _DEVMAN_PROTO_H
/* buf.c */
void buf_init(off_t start, size_t len);
void buf_printf(char *fmt, ...);
void buf_append(char *data, size_t len);
size_t buf_get(char **ptr);
/* message handlers */
int do_add_device(message *m);
int do_del_device(message *m);
int do_bind_device(message *m);
int do_unbind_device(message *m);
/* local helper functions */
void devman_init_devices();
struct devman_device* devman_find_device(int devid);
void devman_get_device(struct devman_device *dev);
void devman_put_device(struct devman_device *dev);
#endif /* _DEVMAN_PROTO_H */