myMPD
Internal API documentation
Loading...
Searching...
No Matches
interface_util.h File Reference

Lua interface for utility functions. More...

#include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
Include dependency graph for interface_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int lua_util_notify (lua_State *lua_vm)
 
int lua_util_log (lua_State *lua_vm)
 
int lua_util_hash (lua_State *lua_vm)
 
int lua_util_urlencode (lua_State *lua_vm)
 
int lua_util_urldecode (lua_State *lua_vm)
 
int lua_util_sleep (lua_State *lua_vm)
 

Detailed Description

Lua interface for utility functions.

Function Documentation

◆ lua_util_hash()

int lua_util_hash ( lua_State *  lua_vm)

Function that implements hashing functions

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_util_log()

int lua_util_log ( lua_State *  lua_vm)

Function that implements logging

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_util_notify()

int lua_util_notify ( lua_State *  lua_vm)

Function that notifies all clients in a partition or a specific client

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_util_sleep()

int lua_util_sleep ( lua_State *  lua_vm)

Interuptable sleep function

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_util_urldecode()

int lua_util_urldecode ( lua_State *  lua_vm)

Function that implements url decoding

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack

◆ lua_util_urlencode()

int lua_util_urlencode ( lua_State *  lua_vm)

Function that implements url encoding

Parameters
lua_vmlua instance
Returns
number of elements pushed to lua stack