Some net headers fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,19 +15,7 @@
|
||||
#include "net/if.h"
|
||||
#include "net/route.h"
|
||||
|
||||
#ifdef _KERNEL_MODE
|
||||
#include <module.h>
|
||||
#else
|
||||
typedef struct module_info {
|
||||
const char *name;
|
||||
uint32 flags;
|
||||
status_t (*std_ops)(int32, ...);
|
||||
} module_info;
|
||||
|
||||
#define B_MODULE_INIT 1
|
||||
#define B_MODULE_UNINIT 2
|
||||
#define B_KEEP_LOADED 0x00000001
|
||||
#endif
|
||||
|
||||
struct kernel_net_module_info {
|
||||
module_info info;
|
||||
@@ -39,9 +27,6 @@ struct net_module {
|
||||
struct net_module *next;
|
||||
char *name;
|
||||
struct kernel_net_module_info *ptr;
|
||||
#ifndef _KERNEL_MODE
|
||||
image_id iid;
|
||||
#endif
|
||||
int status;
|
||||
};
|
||||
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
#include <OS.h>
|
||||
#include "net_stack_driver.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define NET_STACK_PORTNAME "net_server connection"
|
||||
|
||||
@@ -47,7 +50,13 @@ typedef struct {
|
||||
uint32 numCommands,bufferSize;
|
||||
} net_connection;
|
||||
|
||||
|
||||
extern status_t init_userland_ipc(void);
|
||||
extern void shutdown_userland_ipc(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // end of extern "C"
|
||||
#endif
|
||||
|
||||
#endif /* USERLAND_IPC_H */
|
||||
|
||||
Reference in New Issue
Block a user