Commit Graph

16 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 158117e843 mu: Make commands Result-based
Use Result<void> as the return value, simplifying some code.
2022-05-12 08:56:13 +03:00
Dirk-Jan C. Binnema 8db299ea05 commands: Updated 'find' and 'index' to use Mu::Message 2022-04-30 10:40:45 +03:00
Dirk-Jan C. Binnema 3820118246 store: rename "metadata" into "properties"
properties are the constant (for the duration) values for a store; metadata may
change, so reserve that name for that.
2022-02-14 11:12:26 +02:00
Dirk-Jan C. Binnema 9b77a12db7 mu: cmd-index: make signal-handler thread-safe 2022-02-07 22:01:11 +02:00
Dirk-Jan C. Binnema cbb2734078 mu-cmd-index: cosmetic 2022-01-14 17:10:56 +02:00
Dirk-Jan C. Binnema e672f952a8 index: ignore .update when store is empty
This somewhat emulates the 1.4 behavior.
2021-11-11 21:58:23 +02:00
Dirk-Jan C. Binnema 503d7224e0 mu: update the index 'processed' -> 'checked'
The 'processed' statistic for indexing was more-or-less synonymous for
'updated'; let's change to something more useful, 'checked' which roughly means
the number of messages checked for updates (typically a cheap timestamp check).
2021-11-10 22:32:28 +02:00
Dirk-Jan C. Binnema 3dd721d5a3 clang-format: update c/cc coding style
Update all cc code using .clang-format; please do so as well for future PRs
etc.; emacs has a handy 'clang-format' mode to make this automatic.

For comparing old changes with git blame, we can disregard this one using
--ignore-rev

(see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
2021-10-20 12:26:16 +03:00
Dirk-Jan C. Binnema c8a2151cb9 mu: use g_strerror instead of strerror
Some #includes were missing for the latter (but only noticeable on some
systems - e.g., build breaks on Cygwin).

So let's replace with something that works equally everywhere.

Fixes: #2060
2021-07-29 00:02:30 +03:00
Dirk-Jan C. Binnema 01ced9a356 mu: Update for new querying APIs 2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema a1d1619bda use c++ for some more sources
Do a (superficial) port to c++ of some of the c sources. Update
deps. Fix a few compiler warnings.
2020-11-07 14:11:59 +02:00
Dirk-Jan C. Binnema f7452761cb index: improve error handling 2020-11-07 11:43:11 +02:00
Dirk-Jan C. Binnema 38b5c25762 mu-index: make progress a bit smoother
Avoid the lock
2020-10-13 23:36:19 +03:00
Dirk-Jan C. Binnema f9415caab7 cmd-index: Use the new Indexer 2020-06-27 17:07:00 +03:00
Dirk-Jan C. Binnema 68533cee0d mu: use g_printerr for errors, instead of g_warning
With the new logging setup, we need g_printerr
2020-06-13 16:56:41 +03:00
Dirk-Jan C. Binnema a9fab4abcc mu: convert command-line tools to c++ 2020-06-13 16:56:41 +03:00