Fix the GCC4 build the other way around. Remove the unnecessary forward
declarations and make the functions static again. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25510 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7c61d84fcd
commit
f940ec3d9c
@ -162,7 +162,7 @@ uninit_driver()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_open(const char *name, uint32 flags, void **cookie)
|
usb_ecm_open(const char *name, uint32 flags, void **cookie)
|
||||||
{
|
{
|
||||||
TRACE("open(%s, %lu, %p)\n", name, flags, cookie);
|
TRACE("open(%s, %lu, %p)\n", name, flags, cookie);
|
||||||
@ -181,7 +181,7 @@ usb_ecm_open(const char *name, uint32 flags, void **cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_read(void *cookie, off_t position, void *buffer, size_t *numBytes)
|
usb_ecm_read(void *cookie, off_t position, void *buffer, size_t *numBytes)
|
||||||
{
|
{
|
||||||
TRACE("read(%p, %Ld, %p, %lu)\n", cookie, position, buffer, *numBytes);
|
TRACE("read(%p, %Ld, %p, %lu)\n", cookie, position, buffer, *numBytes);
|
||||||
@ -190,7 +190,7 @@ usb_ecm_read(void *cookie, off_t position, void *buffer, size_t *numBytes)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_write(void *cookie, off_t position, const void *buffer,
|
usb_ecm_write(void *cookie, off_t position, const void *buffer,
|
||||||
size_t *numBytes)
|
size_t *numBytes)
|
||||||
{
|
{
|
||||||
@ -200,7 +200,7 @@ usb_ecm_write(void *cookie, off_t position, const void *buffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_control(void *cookie, uint32 op, void *buffer, size_t length)
|
usb_ecm_control(void *cookie, uint32 op, void *buffer, size_t length)
|
||||||
{
|
{
|
||||||
TRACE("control(%p, %lu, %p, %lu)\n", cookie, op, buffer, length);
|
TRACE("control(%p, %lu, %p, %lu)\n", cookie, op, buffer, length);
|
||||||
@ -209,7 +209,7 @@ usb_ecm_control(void *cookie, uint32 op, void *buffer, size_t length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_close(void *cookie)
|
usb_ecm_close(void *cookie)
|
||||||
{
|
{
|
||||||
TRACE("close(%p)\n", cookie);
|
TRACE("close(%p)\n", cookie);
|
||||||
@ -218,7 +218,7 @@ usb_ecm_close(void *cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern "C" status_t
|
static status_t
|
||||||
usb_ecm_free(void *cookie)
|
usb_ecm_free(void *cookie)
|
||||||
{
|
{
|
||||||
TRACE("free(%p)\n", cookie);
|
TRACE("free(%p)\n", cookie);
|
||||||
|
@ -62,13 +62,6 @@ status_t usb_ecm_device_removed(void *cookie);
|
|||||||
status_t init_hardware();
|
status_t init_hardware();
|
||||||
void uninit_driver();
|
void uninit_driver();
|
||||||
|
|
||||||
status_t usb_ecm_open(const char *name, uint32 flags, void **cookie);
|
|
||||||
status_t usb_ecm_read(void *cookie, off_t position, void *buffer, size_t *numBytes);
|
|
||||||
status_t usb_ecm_write(void *cookie, off_t position, const void *buffer, size_t *numBytes);
|
|
||||||
status_t usb_ecm_control(void *cookie, uint32 op, void *buffer, size_t length);
|
|
||||||
status_t usb_ecm_close(void *cookie);
|
|
||||||
status_t usb_ecm_free(void *cookie);
|
|
||||||
|
|
||||||
const char **publish_devices();
|
const char **publish_devices();
|
||||||
device_hooks *find_device(const char *name);
|
device_hooks *find_device(const char *name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user