* Rewrote USB_printer.h, and bus_manager.h (the last short ones...) :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32895 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,36 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
** USB_printer.h
|
* Copyright 2009, Haiku Inc. All Rights Reserved.
|
||||||
**
|
* Distributed under the terms of the MIT License.
|
||||||
** Copyright 1999, Be Incorporated. All Rights Reserved.
|
|
||||||
**
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _USB_PRINTER_H
|
#ifndef _USB_PRINTER_H
|
||||||
#define _USB_PRINTER_H
|
#define _USB_PRINTER_H
|
||||||
|
|
||||||
|
|
||||||
#include <Drivers.h>
|
#include <Drivers.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ioctl() opcodes for usb_printer driver */
|
enum {
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
USB_PRINTER_GET_DEVICE_ID = B_DEVICE_OP_CODES_END + 1
|
USB_PRINTER_GET_DEVICE_ID = B_DEVICE_OP_CODES_END + 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Maximum length of the DEVICE_ID. User MUST allocate this size
|
|
||||||
when calling USB_PRINTER_GET_DEVICE_ID ioctl() */
|
|
||||||
|
|
||||||
#define USB_PRINTER_DEVICE_ID_LENGTH 256
|
#define USB_PRINTER_DEVICE_ID_LENGTH 256
|
||||||
|
/* buffer size to be handed to above ioctl() call */
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _USB_PRINTER_H */
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|||||||
@@ -1,21 +1,13 @@
|
|||||||
/*******************************************************************************
|
/*
|
||||||
/
|
* Copyright 2009, Haiku Inc. All Rights Reserved.
|
||||||
/ File: bus_managers.h
|
* Distributed under the terms of the MIT License.
|
||||||
/
|
*/
|
||||||
/ Description: bus manager API
|
|
||||||
/
|
|
||||||
/ Copyright 1998, Be Incorporated, All Rights Reserved.
|
|
||||||
/
|
|
||||||
*******************************************************************************/
|
|
||||||
|
|
||||||
#ifndef _BUS_MANAGER_H
|
#ifndef _BUS_MANAGER_H
|
||||||
#define _BUS_MANAGER_H
|
#define _BUS_MANAGER_H
|
||||||
|
|
||||||
|
|
||||||
#include <module.h>
|
#include <module.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct bus_manager_info bus_manager_info;
|
typedef struct bus_manager_info bus_manager_info;
|
||||||
|
|
||||||
@@ -24,8 +16,5 @@ struct bus_manager_info {
|
|||||||
status_t (*rescan)();
|
status_t (*rescan)();
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _BUS_MANAGER_H */
|
#endif /* _BUS_MANAGER_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user