rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
log_take_io_t Struct Reference

The card. dir is a path from the root, CARD_ROOT the root itself. More...

#include <log_take.h>

Data Fields

void * ctx
bool(*) mounted (void *ctx)
 Whether a card is mounted.
bool(*) make_dir (void *ctx, const char *dir)
 Make dir a folder.
bool(*) walk (void *ctx, const char *dir, log_take_visit_fn visit, void *visit_ctx)
 Hand the name of every entry of dir, files and folders, to visit.
bool(*) exists (void *ctx, const char *dir, const char *name)
 Whether dir holds an entry named name, in any case.
bool(*) create (void *ctx, const char *dir, const char *name, int number)
 Create name in dir as the file of run number and keep it open for the caller.

Detailed Description

The card. dir is a path from the root, CARD_ROOT the root itself.

All 5 functions are set.

Field Documentation

◆ create

bool(*) log_take_io_t::create(void *ctx, const char *dir, const char *name, int number)

Create name in dir as the file of run number and keep it open for the caller.

True when it is open.

◆ ctx

void* log_take_io_t::ctx

passed to every function

◆ make_dir

bool(*) log_take_io_t::make_dir(void *ctx, const char *dir)

Make dir a folder.

True when it is one now: made, or there before. False when a file holds the name, or the card takes no new folder (write-protected or full).

◆ walk

bool(*) log_take_io_t::walk(void *ctx, const char *dir, log_take_visit_fn visit, void *visit_ctx)

Hand the name of every entry of dir, files and folders, to visit.

False when the folder does not read to its end.


The documentation for this struct was generated from the following file: