hid-roccat.h 919 B

1234567891011121314151617181920212223242526272829303132
  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 class *klass, 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 class *klass,
  20. struct hid_device *hid) { return -1; }
  21. static inline void roccat_disconnect(int minor) {}
  22. static inline int roccat_report_event(int minor, u8 const *data, int len)
  23. {
  24. return 0;
  25. }
  26. #endif
  27. #endif