XenevaOS
Loading...
Searching...
No Matches
Typedefs | Functions
glimpse_fs.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
Include dependency graph for glimpse_fs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* GlimpseScanCallback) (const char *full_path, const char *filename, void *user_data)
 

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)
 

Typedef Documentation

◆ GlimpseScanCallback

typedef void(* GlimpseScanCallback) (const char *full_path, const char *filename, void *user_data)

Function Documentation

◆ GlimpseEnsureCacheDir()

void GlimpseEnsureCacheDir ( void  )

Ensures /appdata/glimpse/icons/ directory tree exists on disk.

◆ GlimpseFileExists()

bool GlimpseFileExists ( const char *  path)

Checks if a file exists on disk and is readable.

◆ GlimpseGetThumbnailPath()

void GlimpseGetThumbnailPath ( const char *  image_path,
char *  out_thumb_path,
size_t  max_len 
)

Derives a deterministic cached thumbnail path in /appdata/glimpse/icons/.

◆ GlimpseScanImages()

int GlimpseScanImages ( GlimpseScanCallback  cb,
void *  user_data 
)

Scans / (root) and /image (or /images) for .jpg, .jpeg, .png, and .bmp files.