Bug 423605

Summary: Powerdevil fails to compile with ddcutil ≥ 0.9.9
Product: [Plasma] Powerdevil Reporter: Anders Kaseorg <andersk>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: vcunat
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Anders Kaseorg 2020-06-28 04:00:09 UTC
ddcutil 0.9.9 changed the API of ddca_feature_list_string to accept a DDCA_Feature_List parameter rather than DDCA_Feature_List*.

https://www.ddcutil.com/c_api_99/

Therefore, Powerdevil fails to compile:

daemon/backends/upower/ddcutilbrightness.cpp:59:81: error: could not convert '& vcpList' from 'DDCA_Feature_List*' to 'DDCA_Feature_List'
   59 |         qCDebug(POWERDEVIL) << "ddca_feature_list: "<< ddca_feature_list_string(&vcpList, "0x", ",");
      |                                                                                 ^~~~~~~~
      |                                                                                 |
      |                                                                                 DDCA_Feature_List*
make[2]: *** [daemon/backends/CMakeFiles/powerdevilupowerbackend.dir/build.make:233: daemon/backends/CMakeFiles/powerdevilupowerbackend.dir/upower/ddcutilbrightness.cpp.o] Error 1