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>
|
|
|
|
|
2005-04-11 23:37:09 +04:00
|
|
|
#ifndef __HAIKU__
|
2004-01-15 03:03:07 +03:00
|
|
|
#define NETWORK_MODULES_ROOT "obos_network/"
|
2005-04-11 23:37:09 +04:00
|
|
|
#else
|
|
|
|
#define NETWORK_MODULES_ROOT "network/"
|
|
|
|
#endif
|
2004-01-13 02:28:41 +03:00
|
|
|
|
2002-07-11 02:10:23 +04:00
|
|
|
struct kernel_net_module_info {
|
|
|
|
module_info info;
|
|
|
|
int (*start)(void *);
|
|
|
|
int (*stop)(void);
|
2003-10-23 21:50:45 +04:00
|
|
|
status_t (*control)(uint32 op, void *data, size_t length);
|
2002-07-11 02:10:23 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|