hid-roccat.h 875 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __HID_ROCCAT_H
  2. #define __HID_ROCCAT_H
  3. /*
  4. * Copyright (c) 2010 Stefan Achatz <erazor_de@users.sourceforge.net>
  5. */
  6. /*
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the Free
  9. * Software Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. */
  12. #include <linux/hid.h>
  13. #include <linux/types.h>
  14. #if defined(CONFIG_HID_ROCCAT) || defined(CONFIG_HID_ROCCAT_MODULE)
  15. int roccat_connect(struct hid_device *hid);
  16. void roccat_disconnect(int minor);
  17. int roccat_report_event(int minor, u8 const *data, int len);
  18. #else
  19. static inline int roccat_connect(struct hid_device *hid) { return -1; }
  20. static inline void roccat_disconnect(int minor) {}
  21. static inline int roccat_report_event(int minor, u8 const *data, int len)
  22. {
  23. return 0;
  24. }
  25. #endif
  26. #endif