myMPD
Internal API documentation
Loading...
Searching...
No Matches
interface_caches.c File Reference

Lua interface for caches. More...

#include "compile_time.h"
#include "src/scripts/interface_caches.h"
#include "src/lib/cache/cache_disk_images.h"
#include "src/lib/cache/cache_disk_lyrics.h"
#include "src/lib/config_def.h"
#include "src/lib/filehandler.h"
#include "src/lib/log.h"
#include "src/lib/mimetype.h"
#include "src/lib/random.h"
#include "src/lib/sds_extras.h"
#include "src/scripts/interface.h"
#include <string.h>
Include dependency graph for interface_caches.c:

Functions

int lua_caches_tmp_file (lua_State *lua_vm)
 
int lua_caches_update_mtime (lua_State *lua_vm)
 
int lua_caches_images_write (lua_State *lua_vm)
 
int lua_caches_lyrics_write (lua_State *lua_vm)
 

Detailed Description

Lua interface for caches.

Function Documentation

◆ lua_caches_images_write()

int lua_caches_images_write ( lua_State *  lua_vm)

Renames a file for the images cache

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_caches_lyrics_write()

int lua_caches_lyrics_write ( lua_State *  lua_vm)

Writes a file to the lyrics cache

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_caches_tmp_file()

int lua_caches_tmp_file ( lua_State *  lua_vm)

Creates a temporary file in the misc cache folder

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_caches_update_mtime()

int lua_caches_update_mtime ( lua_State *  lua_vm)

Updates the timestamp of a file

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack