linux: Changed internal functions to be static.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 11 Jun 2017 22:30:58 +0200
changeset 11094093b58f5de3c
parent 11093 b6f52c4d56c6
child 11095 5cf754a84eb7
linux: Changed internal functions to be static.
src/core/linux/SDL_evdev.c
src/haptic/linux/SDL_syshaptic.c
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/core/linux/SDL_evdev.c	Sun Jun 11 22:30:49 2017 +0200
     1.2 +++ b/src/core/linux/SDL_evdev.c	Sun Jun 11 22:30:58 2017 +0200
     1.3 @@ -110,7 +110,7 @@
     1.4  
     1.5  #if SDL_USE_LIBUDEV
     1.6  static int SDL_EVDEV_device_added(const char *dev_path, int udev_class);
     1.7 -void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class,
     1.8 +static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class,
     1.9      const char *dev_path);
    1.10  #endif /* SDL_USE_LIBUDEV */
    1.11  
    1.12 @@ -195,7 +195,7 @@
    1.13  }
    1.14  
    1.15  #if SDL_USE_LIBUDEV
    1.16 -void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_class,
    1.17 +static void SDL_EVDEV_udev_callback(SDL_UDEV_deviceevent udev_event, int udev_class,
    1.18      const char* dev_path)
    1.19  {
    1.20      if (dev_path == NULL) {
     2.1 --- a/src/haptic/linux/SDL_syshaptic.c	Sun Jun 11 22:30:49 2017 +0200
     2.2 +++ b/src/haptic/linux/SDL_syshaptic.c	Sun Jun 11 22:30:58 2017 +0200
     2.3 @@ -49,7 +49,7 @@
     2.4  static int MaybeAddDevice(const char *path);
     2.5  #if SDL_USE_LIBUDEV
     2.6  static int MaybeRemoveDevice(const char *path);
     2.7 -void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
     2.8 +static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
     2.9  #endif /* SDL_USE_LIBUDEV */
    2.10  
    2.11  /*
    2.12 @@ -211,7 +211,7 @@
    2.13  }
    2.14  
    2.15  #if SDL_USE_LIBUDEV
    2.16 -void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
    2.17 +static void haptic_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
    2.18  {
    2.19      if (devpath == NULL || !(udev_class & SDL_UDEV_DEVICE_JOYSTICK)) {
    2.20          return;
     3.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Sun Jun 11 22:30:49 2017 +0200
     3.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Sun Jun 11 22:30:58 2017 +0200
     3.3 @@ -52,7 +52,7 @@
     3.4  static int MaybeAddDevice(const char *path);
     3.5  #if SDL_USE_LIBUDEV
     3.6  static int MaybeRemoveDevice(const char *path);
     3.7 -void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
     3.8 +static void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath);
     3.9  #endif /* SDL_USE_LIBUDEV */
    3.10  
    3.11  
    3.12 @@ -237,7 +237,7 @@
    3.13  }
    3.14  
    3.15  #if SDL_USE_LIBUDEV
    3.16 -void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
    3.17 +static void joystick_udev_callback(SDL_UDEV_deviceevent udev_type, int udev_class, const char *devpath)
    3.18  {
    3.19      if (devpath == NULL) {
    3.20          return;