1. 25 Jun, 2019 1 commit
  2. 17 Apr, 2019 1 commit
    • Vladimír Čunát's avatar
      module API+ABI: remove one level of indirection · 176b1c28
      Vladimír Čunát authored
      ... for layers and props.  This breaks C module API+ABI.
      It seemed weird to repeatedly call a function that returns a pointer
      to a structure in which we find the function we want to actually call.
      We've never used changing these functions AFAIK, and the target
      functions could easily be written to change their behavior instead
      (i.e. move the indirection *inside* the function).
      When breaking this, I also removed these two (_layers and _props)
      from the dynamic symbols (to be) exported from the C modules.
      They always pointed to memory belonging inside the module,
      and they seem quite sensible to be set up by the _init symbol instead.
  3. 13 Mar, 2019 1 commit
  4. 12 Mar, 2019 8 commits
  5. 21 Feb, 2019 1 commit
  6. 29 Jan, 2019 2 commits
  7. 09 Jan, 2019 1 commit
  8. 08 Jan, 2019 1 commit
  9. 26 Nov, 2018 3 commits
  10. 04 Oct, 2018 1 commit
  11. 14 Aug, 2018 4 commits
  12. 30 Jul, 2018 1 commit
  13. 30 May, 2018 1 commit
    • Marek Vavruša's avatar
      daemon: allow per-request variables in Lua · 14de9110
      Marek Vavruša authored
      The handlers in Lua can now store per-request variables that are automatically
      GC'd when the request is finished. This is useful for stateful modules,
      such as DNS64 that uses internal option flags for state tracking.
      The layers can now get a variable table like so:
      local vars = kres.request_t(r):vars()
      vars.hello = true
      The variables are persisted between different layers for each request.
  14. 11 May, 2018 1 commit
  15. 12 Apr, 2018 1 commit
  16. 04 Apr, 2018 1 commit
  17. 23 Jan, 2018 2 commits
  18. 04 Dec, 2017 1 commit
    • Vitezslav Kriz's avatar
      hints: server stop when root hints load failed · 69ea2043
      Vitezslav Kriz authored
      If user provides custom hints file with config option hints.root_file('file')
      resovler fail with error. Before it just silently pass and may fail
      when loading defaults file, which leads to confusing error message.
  19. 28 Nov, 2017 2 commits
    • Marek Vavruša's avatar
      fixed issues with newer luacheck · 6c0b9868
      Marek Vavruša authored
    • Marek Vavruša's avatar
      tests/config: added a TAP-based test environment for modules/configs · f41676d2
      Marek Vavruša authored
      I moved the test files to module directories because it allows
      vendoring of whole modules including tests etc.
      The test environment provides convenience functions and produces
      test output in TAP format. Ideally all tests should use a common
      format, so that CI can parse it provide better test output on PRs.
      It seems like Gitlab CI doesn't support anything yet, but there
      are two sort-of standards supported in CI tools - TAP and JUnit.
      I chose TAP because it's easier to read for humans, cmocka supports it,
      and it should be easier to adapt Deckard. There are also tools to
      convert TAP into JUnit XML file.
      Also added more tests for global functions and variables, and the
      test tool now also tracks coverage (if `luacov` is installed).
  20. 13 Oct, 2017 1 commit
  21. 29 Sep, 2017 1 commit
  22. 21 Sep, 2017 2 commits
  23. 11 Sep, 2017 1 commit
    • Vladimír Čunát's avatar
      roothints: various changes · 8fa8f214
      Vladimír Čunát authored
      - expose the function as hints.root_file
      - use the same filename as Debian
      - remove the unneeded script
      - docs and some nitpicks
  24. 02 Aug, 2017 1 commit