Bug 423605 - Powerdevil fails to compile with ddcutil ≥ 0.9.9
Summary: Powerdevil fails to compile with ddcutil ≥ 0.9.9
Status: RESOLVED FIXED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-28 04:00 UTC by Anders Kaseorg
Modified: 2020-07-01 16:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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