forked from networkupstools/nut
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request networkupstools#2532 from jimklimov/issue-2431
Detect `libupsclient` SO filename, revise shared object extensions
- Loading branch information
Showing
30 changed files
with
290 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/libupsclient-version.h | ||
/upsimage.cgi | ||
/upsset.cgi | ||
/upsstats.cgi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! | ||
* @file libhid.c | ||
* @brief HID Library - User API (Generic HID Access using MGE HIDParser) | ||
* @brief NUT HID Library - User API (Generic HID Access using MGE HIDParser) | ||
* | ||
* @author Copyright (C) 2003 - 2007 | ||
* Arnaud Quette <[email protected]> && <[email protected]> | ||
|
@@ -47,10 +47,10 @@ | |
|
||
/* Communication layers and drivers (USB and MGE SHUT) */ | ||
#if (defined SHUT_MODE) && SHUT_MODE | ||
#include "libshut.h" | ||
# include "libshut.h" | ||
communication_subdriver_t *comm_driver = &shut_subdriver; | ||
#else /* !SHUT_MODE => USB */ | ||
#include "nut_libusb.h" | ||
# include "nut_libusb.h" | ||
communication_subdriver_t *comm_driver = &usb_subdriver; | ||
#endif /* SHUT_MODE / USB */ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! | ||
* @file libhid.h | ||
* @brief HID Library - User API | ||
* @brief NUT HID Library - User API | ||
* | ||
* @author Copyright (C) 2003 - 2007 | ||
* Arnaud Quette <[email protected]> && <[email protected]> | ||
|
@@ -44,19 +44,19 @@ | |
#include "timehead.h" | ||
|
||
#if (defined SHUT_MODE) && SHUT_MODE | ||
#include "libshut.h" | ||
# include "libshut.h" | ||
typedef SHUTDevice_t HIDDevice_t; | ||
typedef char HIDDeviceMatcher_t; | ||
typedef usb_dev_handle hid_dev_handle_t; | ||
typedef shut_communication_subdriver_t communication_subdriver_t; | ||
#define HID_DEV_HANDLE_CLOSED (hid_dev_handle_t)(ERROR_FD_SER) | ||
# define HID_DEV_HANDLE_CLOSED (hid_dev_handle_t)(ERROR_FD_SER) | ||
#else /* !SHUT_MODE => USB */ | ||
#include "nut_libusb.h" /* includes usb-common.h */ | ||
# include "nut_libusb.h" /* includes usb-common.h */ | ||
typedef USBDevice_t HIDDevice_t; | ||
typedef USBDeviceMatcher_t HIDDeviceMatcher_t; | ||
typedef usb_dev_handle * hid_dev_handle_t; | ||
typedef usb_communication_subdriver_t communication_subdriver_t; | ||
#define HID_DEV_HANDLE_CLOSED (hid_dev_handle_t)(NULL) | ||
# define HID_DEV_HANDLE_CLOSED (hid_dev_handle_t)(NULL) | ||
#endif /* SHUT_MODE / USB */ | ||
|
||
/* use explicit booleans */ | ||
|
Oops, something went wrong.