myMPD
Internal API documentation
Loading...
Searching...
No Matches
interface.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2025 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
11#ifndef MYMPD_API_SCRIPTS_INTERFACE_H
12#define MYMPD_API_SCRIPTS_INTERFACE_H
13
14#include "src/lib/list.h"
15#include "src/lib/mpdclient.h"
16
17#include <lauxlib.h>
18#include <lua.h>
19#include <lualib.h>
20#include <stdbool.h>
21
22struct t_config *get_lua_global_config(lua_State *lua_vm);
23void populate_lua_table(lua_State *lua_vm, struct t_list *lua_mympd_state);
24void populate_lua_table_field_mpd_song(lua_State *lua_vm, const char *key, const struct mpd_song *song);
25void populate_lua_table_field_p(lua_State *lua_vm, const char *key, const char *value);
26void populate_lua_table_field_i(lua_State *lua_vm, const char *key, int64_t value);
27void populate_lua_table_field_f(lua_State *lua_vm, const char *key, double value);
28void populate_lua_table_field_b(lua_State *lua_vm, const char *key, bool value);
29
30#endif
void populate_lua_table_field_i(lua_State *lua_vm, const char *key, int64_t value)
Definition interface.c:112
struct t_config * get_lua_global_config(lua_State *lua_vm)
Definition interface.c:22
void populate_lua_table_field_b(lua_State *lua_vm, const char *key, bool value)
Definition interface.c:136
void populate_lua_table(lua_State *lua_vm, struct t_list *lua_mympd_state)
Definition interface.c:34
void populate_lua_table_field_p(lua_State *lua_vm, const char *key, const char *value)
Definition interface.c:100
void populate_lua_table_field_f(lua_State *lua_vm, const char *key, double value)
Definition interface.c:124
void populate_lua_table_field_mpd_song(lua_State *lua_vm, const char *key, const struct mpd_song *song)
Definition interface.c:65
Linked list implementation.
Custom libmpdclient include.
Definition config_def.h:22
Definition list.h:32