Add api_version.
Moved #define DEBUG after the lock.h include, as it wants to find lots of header I'm too lazy to track. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21019 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
232467aa4e
commit
ec8bd525ca
@ -16,6 +16,8 @@
|
|||||||
#define MAX_FMAPS 4
|
#define MAX_FMAPS 4
|
||||||
#define DEVNAME_FMT "disk/virtual/fmap/%2d"
|
#define DEVNAME_FMT "disk/virtual/fmap/%2d"
|
||||||
|
|
||||||
|
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
init_hardware (void)
|
init_hardware (void)
|
||||||
{
|
{
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include <ksocket.h>
|
#include <ksocket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
#define DEBUG 1
|
//#define DEBUG 1
|
||||||
|
|
||||||
/* on the first open(), open ourselves for some seconds,
|
/* on the first open(), open ourselves for some seconds,
|
||||||
* to avoid trying to reconnect and failing on a 2nd open,
|
* to avoid trying to reconnect and failing on a 2nd open,
|
||||||
@ -48,6 +48,8 @@
|
|||||||
#define benaphore_unlock UNLOCK
|
#define benaphore_unlock UNLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DEBUG 1
|
||||||
|
|
||||||
#include "nbd.h"
|
#include "nbd.h"
|
||||||
|
|
||||||
#define DRV "nbd"
|
#define DRV "nbd"
|
||||||
@ -736,9 +738,10 @@ device_hooks nbd_hooks={
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#pragma mark ==== driver hooks ====
|
#pragma mark ==== driver hooks ====
|
||||||
|
|
||||||
|
int32 api_version = B_CUR_DRIVER_API_VERSION;
|
||||||
|
|
||||||
static char *nbd_name[MAX_NBDS+1] = {
|
static char *nbd_name[MAX_NBDS+1] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user