From f22b4116526835691677ff739e9ca814d8a2ec2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Fri, 23 Nov 2018 17:09:54 +0100 Subject: [PATCH] Clarify how to update SENSORS_API_VERSION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit My understanding is that SENSORS_API_VERSION should be the same as $(LIBMAINVER)$(LIBMINORVER) in lib/Module.mk. This means that the first digit of SENSORS_API_VERSION needs to be incremented whenever API *or* ABI changes, because we have to increment LIBMAINVER even if only ABI changes to avoid program breakage. Signed-off-by: Ondřej Lysoněk --- lib/sensors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sensors.h b/lib/sensors.h index e33c4ea0..bbe80dba 100644 --- a/lib/sensors.h +++ b/lib/sensors.h @@ -28,7 +28,7 @@ /* Publicly accessible library functions */ /* libsensors API version define, first digit is the major version (changed - when the API + ABI breaks), the third digit is incremented to track small + when the API or ABI breaks), the third digit is incremented to track small API additions like new flags / enum values. The second digit is for tracking larger additions like new methods. */ #define SENSORS_API_VERSION 0x440