branches with status:
Name Status Last Modified Last Commit
lp:~octo/libmodbus/versioning bug 2 Mature 2010-03-27 14:46:43 UTC
185. src/version.h.in: Add versioning infr...

Author: Florian Forster
Revision Date: 2010-03-27 14:31:19 UTC

src/version.h.in: Add versioning infrastructure.

The new file <modbus/version.h> provides macros to determine the library
version at compile time and functions to determine the version at runtime.

Using the macros, a user can determine whether or not a given feature is
present in the library or not by checking the version number. For example:

  #if MB_VERSION < MB_VERSION_ENCODE(2,1,0)
    /* compatibility code for old version */
    float modbus_read_float(const uint16_t *src) { ... }
  #endif

Using the functions, a user can check the version at runtime. For example:

  if (modbus_version () == MB_VERSION)
    puts ("This is $my_great_program "
        "using libmodbus version "MB_VERSION_STRING"\n");
  else
    printf ("This is $my_great_program "
        "using libmodbus version %s "
        "(compiled with version "MB_VERSION_STRING")\n",
        modbus_version ());

The package version has been updated to 2.1.0 and the SONAME version has been
updated to 3.0.0. Resolves #549410.

lp:~octo/libmodbus/ipv6 1 Development 2010-03-27 12:38:19 UTC
188. Merged changes in the "opqaue" branch.

Author: Florian Forster
Revision Date: 2010-03-27 12:38:03 UTC

Merged changes in the "opqaue" branch.

lp:~octo/libmodbus/opaque 1 Development 2010-03-27 12:16:57 UTC
188. Validate the arguments passed to publ...

Author: Florian Forster
Revision Date: 2010-03-27 12:16:57 UTC

Validate the arguments passed to public functions.

In order to behave nicely even when the user screws up big time, check if
"mb_param" and "mb_param->obj" are not NULL. Convenience macros have been
defined for this.

Also, the function "set_message_length_tcp" has been made "static" because it
doesn't have a prototype in the header file.

13 of 3 results