|
@@ -49,7 +49,7 @@
|
|
static int MaybeAddDevice(const char *path);
|
|
static int MaybeAddDevice(const char *path);
|
|
#if SDL_USE_LIBUDEV
|
|
#if SDL_USE_LIBUDEV
|
|
static int MaybeRemoveDevice(const char *path);
|
|
static int MaybeRemoveDevice(const char *path);
|
|
-void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
|
|
|
|
|
|
+static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
|
|
#endif /* SDL_USE_LIBUDEV */
|
|
#endif /* SDL_USE_LIBUDEV */
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -211,7 +211,7 @@ HapticByDevIndex(int device_index)
|
|
}
|
|
}
|
|
|
|
|
|
#if SDL_USE_LIBUDEV
|
|
#if SDL_USE_LIBUDEV
|
|
-void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
|
|
|
|
|
|
+static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
|
|
{
|
|
{
|
|
if (devpath == NULL || !(udev_class & SDL_UDEV_DEVICE_JOYSTICK)) {
|
|
if (devpath == NULL || !(udev_class & SDL_UDEV_DEVICE_JOYSTICK)) {
|
|
return;
|
|
return;
|