Code Monkey home page Code Monkey logo

Comments (8)

rockowitz avatar rockowitz commented on May 26, 2024 1

Federico,

The new 0.9.0 release includes file ddcutil_macros.h, which contains macro definitions DDCUTIL_VMAJOR, DDCUTIL_VMINOR, and DDCUTIL_VMICRO specifying the version number.

Note that the C API has been thoroughly reworked, and hopefully regularized. See C API Changes for Release 0.9.0.

Sanford

from ddcutil.

rockowitz avatar rockowitz commented on May 26, 2024

from ddcutil.

FedeDP avatar FedeDP commented on May 26, 2024

Dealing with (possible) API breaks?
Eg, i now use it this way:

#if DDCUTIL_VERSION_MAJ == 0 && DDCUTIL_VERSION_MIN == 8 && DDCUTIL_VERSION_PATCH < 7
    #define ddca_free_any_vcp_value(x) (void)x
#endif

For now, i'm creating these macros from pkg-config output:

DDCUTIL_VERSION_MAJ=$(shell pkg-config --modversion ddcutil | cut -d '.' -f1)
DDCUTIL_VERSION_MIN=$(shell pkg-config --modversion ddcutil | cut -d '.' -f2)
DDCUTIL_VERSION_PATCH=$(shell pkg-config --modversion ddcutil | cut -d '.' -f3)

But it would surely be better to use a macro shipped by you (as i always fear that pkg-config file is not synced).

from ddcutil.

rockowitz avatar rockowitz commented on May 26, 2024

from ddcutil.

FedeDP avatar FedeDP commented on May 26, 2024

That would give "undefined reference" on a 0.8.6 version of ddcutil, as that version would not provide ddca_free_any_vcp_value() that is still referenced in code, even if not used.
Did i misunderstand anything?

By the way is there an ETA for 0.8.7?
Thanks!

from ddcutil.

rockowitz avatar rockowitz commented on May 26, 2024

from ddcutil.

FedeDP avatar FedeDP commented on May 26, 2024

0.8.7 is several weeks away

I see, thanks for the info!

from ddcutil.

FedeDP avatar FedeDP commented on May 26, 2024

Thank you very much!
I'll let you know if I encounter any issue ;)

from ddcutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.