Ticket #4742: patch.diff

File patch.diff, 1.9 KB (added by jackburton, 15 years ago)
  • src/kits/device/Joystick.cpp

     
    3030    va_end(ap);
    3131    fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile);
    3232}
     33
    3334#   define LOG_ERR(text...) LOG(text)
    34 FILE *BJoystick::sLogFile = NULL;
     35
     36static FILE *sLogFile = NULL;
     37
    3538#else
    3639#   define LOG(text...)
    3740#   define LOG_ERR(text...) fprintf(stderr, text)
     
    361364    return B_ERROR;
    362365}
    363366
     367
     368void BJoystick::_ReservedJoystick1() {}
     369void BJoystick::_ReservedJoystick2() {}
     370void BJoystick::_ReservedJoystick3() {}
     371status_t BJoystick::_Reserved_Joystick_4(void*, ...) { return B_ERROR; }
     372status_t BJoystick::_Reserved_Joystick_5(void*, ...) { return B_ERROR; }
     373status_t BJoystick::_Reserved_Joystick_6(void*, ...) { return B_ERROR; }
  • headers/os/device/Joystick.h

     
    99#include <OS.h>
    1010#include <SupportDefs.h>
    1111
    12 #if DEBUG
    13 #include <stdio.h>
    14 #endif
    1512
    1613class BList;
    1714class BString;
     
    8077            status_t        GatherEnhanced_info(const entry_ref* ref = NULL);
    8178            status_t        SaveConfig(const entry_ref* ref = NULL);
    8279
     80     
     81            void            _ReservedJoystick1();
     82    virtual void            _ReservedJoystick2();
     83    virtual void            _ReservedJoystick3();
     84   
    8385            bool            fBeBoxMode;
    8486            bool            fReservedBool;
    8587            int             ffd;
    8688            BList*          fDevices;
    8789            _joystick_info* fJoystickInfo;
    8890            char*           fDevName;
    89 #if DEBUG
    90 public:
    91     static  FILE*           sLogFile;
    92 #endif
     91           
     92    virtual status_t        _Reserved_Joystick_4(void *, ...);
     93    virtual status_t        _Reserved_Joystick_5(void *, ...);
     94    virtual status_t        _Reserved_Joystick_6(void *, ...);
     95            uint32          _reserved_Joystick_[10];
    9396};
    9497
    9598#endif // _JOYSTICK_H