mirror of
https://github.com/Proxmark/proxmark3.git
synced 2024-11-21 04:50:14 -08:00
4197a3f6ff
- add @gpakosz whereami library (https://github.com/gpakosz/whereami) in order to ... - determine and set absolute paths for LUA scripts and LUA libraries
28 lines
887 B
C
28 lines
887 B
C
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2013 m h swende <martin at swende.se>
|
|
//
|
|
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
|
// at your option, any later version. See the LICENSE.txt file for the text of
|
|
// the license.
|
|
//-----------------------------------------------------------------------------
|
|
// Some lua scripting glue to proxmark core.
|
|
//-----------------------------------------------------------------------------
|
|
#ifndef SCRIPTING_H__
|
|
#define SCRIPTING_H__
|
|
|
|
#include <lua.h>
|
|
|
|
#define LUA_LIBRARIES_DIRECTORY "lualibs/"
|
|
#define LUA_SCRIPTS_DIRECTORY "scripts/"
|
|
#define LUA_LIBRARIES_WILDCARD "?.lua"
|
|
|
|
/**
|
|
* @brief set_libraries loads the core components of pm3 into the 'pm3'
|
|
* namespace within the given lua_State
|
|
* @param L
|
|
*/
|
|
|
|
int set_pm3_libraries(lua_State *L);
|
|
|
|
#endif
|