clang-format

custom
jacqueline 2 years ago
parent bdadc159c7
commit 09ad66136d
  1. 17
      src/database/tag_processor.cpp

@ -1,8 +1,8 @@
#include "tag_processor.hpp"
#include <esp_log.h>
#include <ff.h>
#include <tags.h>
#include <esp_log.h>
namespace database {
@ -43,8 +43,13 @@ static int seek(Tagctx *ctx, int offset, int whence) {
return res;
}
static void
tag(Tagctx *ctx, int t, const char *k, const char *v, int offset, int size, Tagread f) {
static void tag(Tagctx* ctx,
int t,
const char* k,
const char* v,
int offset,
int size,
Tagread f) {
Aux* aux = reinterpret_cast<Aux*>(ctx->aux);
if (t == Ttitle) {
aux->title = v;
@ -55,8 +60,7 @@ tag(Tagctx *ctx, int t, const char *k, const char *v, int offset, int size, Tagr
}
}
static void
toc(Tagctx *ctx, int ms, int offset) {}
static void toc(Tagctx* ctx, int ms, int offset) {}
} // namespace libtags
@ -65,7 +69,8 @@ static const char* kTag = "TAGS";
auto GetInfo(const std::string& path, FileInfo* out) -> bool {
libtags::Aux aux;
if (f_stat(path.c_str(), &aux.info) != FR_OK || f_open(&aux.file, path.c_str(), FA_READ) != FR_OK) {
if (f_stat(path.c_str(), &aux.info) != FR_OK ||
f_open(&aux.file, path.c_str(), FA_READ) != FR_OK) {
ESP_LOGI(kTag, "failed to open file");
return false;
}

Loading…
Cancel
Save