comparison dep/animia/src/strategist.cc @ 198:bc1ae1810855

dep/animia: switch from using classes to global functions the old idea was ok, but sort of hackish; this method doesn't use classes at all, and this way (especially important!) we can do wayland stuff AND x11 at the same time, which wasn't really possible without stupid workarounds in the other method
author Paper <mrpapersonic@gmail.com>
date Sun, 24 Dec 2023 02:59:42 -0500
parents cdf79282d647
children ff0061e75f0f
comparison
equal deleted inserted replaced
197:c4ca035c565d 198:bc1ae1810855
92 auto open_file_proc = [&](const OpenFile& file) -> bool { 92 auto open_file_proc = [&](const OpenFile& file) -> bool {
93 success |= AddMedia({MediaInfoType::File, file.path}); 93 success |= AddMedia({MediaInfoType::File, file.path});
94 return true; 94 return true;
95 }; 95 };
96 96
97 fd.EnumerateOpenFiles(pids, open_file_proc); 97 EnumerateOpenFiles(pids, open_file_proc);
98 98
99 return success; 99 return success;
100 } 100 }
101 101
102 //////////////////////////////////////////////////////////////////////////////// 102 ////////////////////////////////////////////////////////////////////////////////