xref: /src/contrib/kyua/utils/config/lua_module.hpp (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390) !
108334c51SBrooks Davis // Copyright 2012 The Kyua Authors.
208334c51SBrooks Davis // All rights reserved.
308334c51SBrooks Davis //
408334c51SBrooks Davis // Redistribution and use in source and binary forms, with or without
508334c51SBrooks Davis // modification, are permitted provided that the following conditions are
608334c51SBrooks Davis // met:
708334c51SBrooks Davis //
808334c51SBrooks Davis // * Redistributions of source code must retain the above copyright
908334c51SBrooks Davis //   notice, this list of conditions and the following disclaimer.
1008334c51SBrooks Davis // * Redistributions in binary form must reproduce the above copyright
1108334c51SBrooks Davis //   notice, this list of conditions and the following disclaimer in the
1208334c51SBrooks Davis //   documentation and/or other materials provided with the distribution.
1308334c51SBrooks Davis // * Neither the name of Google Inc. nor the names of its contributors
1408334c51SBrooks Davis //   may be used to endorse or promote products derived from this software
1508334c51SBrooks Davis //   without specific prior written permission.
1608334c51SBrooks Davis //
1708334c51SBrooks Davis // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1808334c51SBrooks Davis // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1908334c51SBrooks Davis // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2008334c51SBrooks Davis // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2108334c51SBrooks Davis // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2208334c51SBrooks Davis // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2308334c51SBrooks Davis // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2408334c51SBrooks Davis // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2508334c51SBrooks Davis // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2608334c51SBrooks Davis // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2708334c51SBrooks Davis // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2808334c51SBrooks Davis 
2908334c51SBrooks Davis /// \file utils/config/lua_module.hpp
3008334c51SBrooks Davis /// Bindings to expose a configuration tree to Lua.
3108334c51SBrooks Davis 
3208334c51SBrooks Davis #if !defined(UTILS_CONFIG_LUA_MODULE_HPP)
3308334c51SBrooks Davis #define UTILS_CONFIG_LUA_MODULE_HPP
3408334c51SBrooks Davis 
3508334c51SBrooks Davis #include <string>
3608334c51SBrooks Davis 
3708334c51SBrooks Davis #include "lutok/state.hpp"
3808334c51SBrooks Davis #include "utils/config/tree_fwd.hpp"
3908334c51SBrooks Davis 
4008334c51SBrooks Davis namespace utils {
4108334c51SBrooks Davis namespace config {
4208334c51SBrooks Davis 
4308334c51SBrooks Davis 
4408334c51SBrooks Davis void redirect(lutok::state&, tree&);
4508334c51SBrooks Davis 
4608334c51SBrooks Davis 
4708334c51SBrooks Davis }  // namespace config
4808334c51SBrooks Davis }  // namespace utils
4908334c51SBrooks Davis 
5008334c51SBrooks Davis #endif  // !defined(UTILS_CONFIG_LUA_MODULE_HPP)
51