2002-07-11 02:10:23 +04:00
|
|
|
/* net_module.h
|
|
|
|
* fundtions and staructures for all modules using the
|
|
|
|
* net_server
|
|
|
|
*/
|
|
|
|
|
2002-08-27 11:59:57 +04:00
|
|
|
#ifndef OBOS_NET_MODULE_H
|
|
|
|
#define OBOS_NET_MODULE_H
|
2002-07-11 02:10:23 +04:00
|
|
|
|
2002-08-27 11:59:57 +04:00
|
|
|
#include <kernel/OS.h>
|
|
|
|
#include <image.h>
|
2002-07-11 02:10:23 +04:00
|
|
|
|
2002-10-30 04:21:54 +03:00
|
|
|
#include "mbuf.h"
|
2002-08-27 11:59:57 +04:00
|
|
|
#include "net_misc.h"
|
|
|
|
#include "sys/socketvar.h"
|
|
|
|
#include "net/if.h"
|
|
|
|
#include "net/route.h"
|
|
|
|
|
2002-07-11 02:10:23 +04:00
|
|
|
#include <module.h>
|
|
|
|
|
|
|
|
struct kernel_net_module_info {
|
|
|
|
module_info info;
|
|
|
|
int (*start)(void *);
|
|
|
|
int (*stop)(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct net_module {
|
|
|
|
struct net_module *next;
|
|
|
|
char *name;
|
|
|
|
struct kernel_net_module_info *ptr;
|
|
|
|
int status;
|
|
|
|
};
|
2002-10-30 04:21:54 +03:00
|
|
|
|
2002-08-27 11:59:57 +04:00
|
|
|
#endif /* OBOS_NET_MODULE_H */
|
2002-07-11 02:10:23 +04:00
|
|
|
|