kopia lustrzana https://github.com/FreeSpacenav/spacenavd
now spacenavd should compile and be completely usable for serial devices on any platform
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spacenavd@140 ef983eb1-d774-4af8-acfd-baaf7b16a646pull/1/head
rodzic
3b5d37fb34
commit
7724df7961
|
@ -1,30 +0,0 @@
|
|||
/*
|
||||
spacenavd - a free software replacement driver for 6dof space-mice.
|
||||
Copyright (C) 2007-2012 John Tsiombikas <nuclear@member.fsf.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifdef __FreeBSD__
|
||||
|
||||
int open_dev_usb(struct device *dev, const char *path)
|
||||
{
|
||||
return -1; /* TODO */
|
||||
}
|
||||
|
||||
const char *find_usb_device(void)
|
||||
{
|
||||
return 0; /* TODO */
|
||||
}
|
||||
|
||||
#endif /* __FreeBSD__ */
|
|
@ -15,10 +15,26 @@ GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifdef __FreeBSD__
|
||||
#if !defined(__linux__)
|
||||
|
||||
/* TODO: implement */
|
||||
#include <stdio.h>
|
||||
|
||||
static const char *message =
|
||||
"Unfortunately this version of spacenavd does not support USB devices on your "
|
||||
"platform yet. Make sure you are using the latest version of spacenavd.\n";
|
||||
|
||||
const char *find_usb_device(void)
|
||||
{
|
||||
fprintf(stderr, message);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int open_dev_usb(struct device *dev, const char *path)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* the hotplug functions will also be missing on unsupported platforms */
|
||||
int init_hotplug(void)
|
||||
{
|
||||
return -1;
|
||||
|
@ -38,4 +54,4 @@ int handle_hotplug(void)
|
|||
return -1;
|
||||
}
|
||||
|
||||
#endif /* __FreeBSD__ */
|
||||
#endif /* unsupported platform */
|
Ładowanie…
Reference in New Issue