Cloned from git://sigrok.org/libsigrok