|
XenevaOS
|
#include "glimpse_fs.h"#include <sys/_kefile.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <ctype.h>
Functions | |
| void | GlimpseEnsureCacheDir (void) |
| bool | GlimpseFileExists (const char *path) |
| void | GlimpseGetThumbnailPath (const char *image_path, char *out_thumb_path, size_t max_len) |
| int | GlimpseScanImages (GlimpseScanCallback cb, void *user_data) |
| void GlimpseEnsureCacheDir | ( | void | ) |
Ensures /appdata/glimpse/icons/ directory tree exists on disk.
| bool GlimpseFileExists | ( | const char * | path | ) |
Checks if a file exists on disk and is readable.
| void GlimpseGetThumbnailPath | ( | const char * | image_path, |
| char * | out_thumb_path, | ||
| size_t | max_len | ||
| ) |
Derives a deterministic cached thumbnail path in /appdata/glimpse/icons/.
| int GlimpseScanImages | ( | GlimpseScanCallback | cb, |
| void * | user_data | ||
| ) |
Scans / (root) and /image (or /images) for .jpg, .jpeg, .png, and .bmp files.