Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic library support #93

Merged
merged 8 commits into from May 15, 2020
Merged

Commits on Oct 21, 2019

  1. Add dynamic library support

    PMunch committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    1762437 View commit details
    Browse the repository at this point in the history
  2. Improve dynlib module and add documentation

    Dynamic library module is now only a thin wrapper that loads dynamic
    libraries and forwards all function calls directly to the loaded module.
    This meant adding get_mem and clear, and get_mem calls have been added
    in the expected places.
    
    Documentation has also been added to the example.conf and the
    unbound.conf manpage.
    PMunch committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    8eeb910 View commit details
    Browse the repository at this point in the history
  3. Add support for multiple dynamic modules

    Allows the use of multiple dynamic modules. Simply add more "dynlib"
    entries to the "modules-config" and the same amount of "dynlib-file"
    entries in the dynlib configuration block.
    PMunch committed Oct 21, 2019
    Configuration menu
    Copy the full SHA
    f177dc9 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2019

  1. Configuration menu
    Copy the full SHA
    f798114 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2019

  1. Add inplace callback to dynlibmod, improve example

    This adds the possibility to properly register inplace callbacks in the
    dynamic library module. It works by creating a wrapper procedure that
    is available to the dynamic library and will call the given callback
    through a whitelisted callback function.
    
    The dynamic library example has already been improved to include
    comments and some simple examples on allocating and deallocating memory
    and registering callbacks.
    PMunch committed Nov 1, 2019
    Configuration menu
    Copy the full SHA
    d104d3b View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2019

  1. Add "dynlib" prefix to example output, log queries

    This adds the "dynlib: " prefix to all messages created by the
    `helloworld.c` dynamic library example.
    
    It also adds logging of queries that pass through `operate`.
    PMunch committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    5eabc42 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2019

  1. Fix return code of init to mirror native modules

    The return code of the init procedure was just set to be 1 in the
    dynamic library loading module. This ha been rectified and it will now
    return whatever is returned from the loaded module.
    PMunch committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    8802509 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Configuration menu
    Copy the full SHA
    b7e8dc1 View commit details
    Browse the repository at this point in the history