Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build:
before_script:
- apt update
- apt -y install libsystemd0 libsystemd-dev
- apt -y install cmake lua-unit libmxml1 libmxml-dev lua-compat53-dev
- apt -y install cmake lua-unit lua-expat lua-compat53-dev
- apt -y install luajit libluajit-5.1-dev
- apt -y install lua5.1 liblua5.1-dev
- apt -y install lua5.2 liblua5.2-dev
Expand Down
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include(GNUInstallDirs)

find_package(PkgConfig REQUIRED)
pkg_check_modules(SYSTEMD REQUIRED libsystemd>=242)
pkg_check_modules(MXML REQUIRED mxml)

set(CONFIG_LUA_VER "" CACHE STRING "build for exact Lua version")

Expand Down Expand Up @@ -38,7 +37,7 @@ if( "${LUA_VER}" STREQUAL "5.1" OR "${LUA_VER}" STREQUAL "5.2" )
cmake_path(GET COMPAT53 PARENT_PATH COMPAT53_DIR)
endif()

set(LSDBUS_SRCS src/lsdbus.c src/message.c src/introspect.c src/evl.c src/vtab.c)
set(LSDBUS_SRCS src/lsdbus.c src/message.c src/evl.c src/vtab.c)

set(LSDBUS_INST_DIR
${CMAKE_INSTALL_PREFIX}/lib/lua/${LUA_VER}/lsdbus/)
Expand All @@ -47,7 +46,7 @@ add_library(core SHARED ${LSDBUS_SRCS})
target_compile_options(core PRIVATE -Wall -Wextra)
target_compile_definitions(core PRIVATE LIBSYSTEMD_VERSION=${SYSTEMD_VERSION})
target_include_directories(core PRIVATE ${LUA_INCLUDE_DIRS} ${COMPAT53_DIR})
target_link_libraries(core ${SYSTEMD_LIBRARIES} ${MXML_LIBRARIES} )
target_link_libraries(core ${SYSTEMD_LIBRARIES})
set_target_properties(core PROPERTIES PREFIX "")
install(TARGETS core LIBRARY DESTINATION ${LSDBUS_INST_DIR})

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ and sd-event APIs.
First, ensure that the correct packages are installed. For example:

```sh
$ sudo apt-get install cmake lua5.3 liblua5.3-dev libsystemd-dev libmxml-dev
$ sudo apt-get install cmake lua5.3 liblua5.3-dev libsystemd-dev lua-expat
```

To run the tests, install `lua-unit` or install it directly from here
Expand Down
1 change: 1 addition & 0 deletions lsdbus-scm-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ source = {

dependencies = {
"lua >= 5.1",
"luaexpat >= 1.3.0",
"compat53 >= 0.5", -- only for lua < 5.3
}

Expand Down
218 changes: 0 additions & 218 deletions src/introspect.c

This file was deleted.

2 changes: 0 additions & 2 deletions src/lsdbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,6 @@ static int lsdbus_bus_gc(lua_State *L)

static const luaL_Reg lsdbus_f [] = {
{ "open", lsdbus_open },
{ "xml_fromfile", lsdbus_xml_fromfile },
{ "xml_fromstr", lsdbus_xml_fromstr },
/* { "testmsg_tolua", lsdbus_testmsg_tolua }, */
{ NULL, NULL },
};
Expand Down
3 changes: 0 additions & 3 deletions src/lsdbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ struct lsdbus_slot* __lsdbus_slot_push(lua_State *L, sd_bus_slot *slot, uint32_t
int lsdbus_slot_push(lua_State *L, sd_bus_slot *slot, uint32_t flags);
void init_reg_vtab_user(lua_State *L);

int lsdbus_xml_fromfile(lua_State *L);
int lsdbus_xml_fromstr(lua_State *L);

void regtab_store(lua_State *L, const char* regtab, void *k, int funidx);
int regtab_get(lua_State *L, const char* regtab, void *k);
void regtab_clear(lua_State *L, const char* regtab, void *k);
Expand Down
Loading