Permalink
Commits on Jul 29, 2016
Commits on Jul 14, 2016
  1. rebar3: fix Makefile

    Use rebar3 for the makefile targets.
    
    The rebar_alias plugin could be used for the shortcut commands.
    
    Keeping the makefile around for creating the libvirt_constants.hrl and
    etags. The libvirt_constants could be moved to the precompile hook with
    some changes to ignore if the files do not exist. Building the etags
    should be optional.
    committed Jul 14, 2016
Commits on Jul 12, 2016
Commits on Jul 11, 2016
Commits on Jul 10, 2016
  1. Rename gen_ escripts -> mk_

    Avoid the confusing name overlap with, e.g., gen_server by renaming the
    code generation scripts.
    committed Jul 10, 2016
Commits on Jul 9, 2016
  1. Use rebar3

    committed Jul 9, 2016
Commits on Jun 26, 2016
  1. Fix module name

    committed Jun 26, 2016
Commits on Jun 14, 2016
  1. Redirect stdout to file

    Omitted from commit b8d954a.
    committed Jun 14, 2016
Commits on Jun 12, 2016
  1. gen_verx: send output to stdout

    committed Jun 12, 2016
Commits on Jun 11, 2016
  1. Update uuid dep to 1.5.1.1

    Avoid compilation error due to use of now/0.
    committed Jun 11, 2016
Commits on Sep 10, 2015
  1. mk_libvirt_constants: normalize defines

    Small cleanup to the constants script to remove any spaces between '#'
    and 'define' before parsing the line.
    committed Sep 10, 2015
Commits on Aug 26, 2015
  1. Merge pull request #8 from agx/features/v1.2.18

    Regenerate protocol for v1.2.18
    committed Aug 26, 2015
  2. @agx

    Regenerate protocol for v1.2.18

    Taken from the above signed tag.
    agx committed Aug 16, 2015
Commits on Aug 19, 2015
  1. Merge pull request #7 from agx/features/make-tags

    Add make tags target
    committed Aug 19, 2015
  2. Merge pull request #6 from agx/fixes/spaces

    mk_libvirt_constants: Handle spaces in "# define"
    committed Aug 19, 2015
  3. @agx

    mk_libvirt_constants: Handle spaces in "# define"

    Constants have the syntax:
    
        # define VIR_NODE_MEMORY_STATS_FIELD_LENGTH 80
    
    Otherwise we're lacking several constants to rebuild against recent
    libvirt.
    agx committed Aug 16, 2015
  4. @agx

    Add make tags target

    agx committed Aug 17, 2015
Commits on Aug 1, 2015
  1. Bump version

    Remove TODO item fixed by @ksallberg in commit ae2cec.
    committed Aug 1, 2015
  2. tcp/tls: exit on socket errors

    committed Aug 1, 2015
Commits on Jul 31, 2015
  1. Merge pull request #5 from ksallberg/master

    Bug fix proposal: Handle errors appearing when trying to close closed…
    committed Jul 31, 2015
  2. @ksallberg

    Bug fix proposal: Handle errors appearing when trying to close closed…

    … (or nonexisting ports). Also avoid sending stop call to verx_client_unix gen_server when receiving EXIT info from libvirtd, as this causes another error. Fixed typo in README.
    
    Fixed problems with receiving EXIT from libvirtd, when the receiving gen_server process dies before we tell it to stop.
    ksallberg committed Jul 30, 2015
Commits on Jun 6, 2015
  1. gen_remote_protocol: set path to header file

    Commit dc61c3b modified the gen_remote_protocol.escript to include a
    header file. If ERL_LIBS is unset, the escript would fail to find the
    header:
    
    ==> verx (compile)
    /home/essen/ninenines/erlang.mk/test/app1/deps/verx/bin/gen_remote_protocol.escript:8: can't find include lib "verx/include/libvirt_constants.hrl"
    /home/essen/ninenines/erlang.mk/test/app1/deps/verx/bin/gen_remote_protocol.escript:12: undefined macro 'VIR_SECURITY_MODEL_BUFLEN'
    
    Set a default search path.
    
    See:
    #4
    ninenines/erlang.mk#265
    
    Thanks @essen!
    committed Jun 6, 2015
Commits on May 29, 2015
Commits on Feb 12, 2015
  1. Bump version to 0.5.2

    committed Feb 12, 2015
  2. Use constants for generating remote protocol code

    Remove hardcoded libvirt constants from the escript used to create the
    Erlang module from the remote protocol XDR file. Include the values from
    libvirt_constants.hrl instead.
    
    Add support for pulling out constants defined as macros in the libvirt
    header files. The method is hackish: pull any define containing digits
    or addition like "(1 + 2)".
    
    Regenerate the remote protocol module to verify nothing has changed,
    except the date of creation.
    committed Feb 12, 2015
Commits on Feb 11, 2015
Commits on Feb 10, 2015
  1. mk_libvirt_constants: fail on term conversion

    When a value defined in the header file does not have an exact match for
    an Erlang term, exit immediately and write the value to stderr.
    
    Remove preceding/trailing whitespace from the name/values. A trailing
    tab caused an empty value to be used as the constant.
    
    Note because of the way shell pipes work (unless set -o pipefail is
    used), when the output of the script is piped through "sort | uniq", an
    error will not cause the whole pipeline to exit, i.e., the output of the
    script preceding the error will be written to libvirt_constants.hrl.
    
    Reported by @ksallberg in:
    
    #2
    
    Builds on the fix also provided by ksallberg in:
    
    #3
    
    Thanks Kristian!
    committed Feb 10, 2015
  2. @ksallberg

    Bugfix constants with no comma at EOL

    Fixed problem, script did not include the value of
    constants with no comma at end of line. Also
    included a usage comment in the script.
    ksallberg committed Feb 10, 2015
  3. Convert mk_libvirt_constants to awk script

    Convert the shell script used to generate the libvirt constants header
    file to awk. Regenerate the header using include/libvirt/*.h:
    
        bin/mk_libvirt_constants /path/to/libvirt/include/libvirt/*.h | \
            sort | uniq > include/libvirt_constants.hrl
    
    The version of the header files was taken from:
    
    commit 95da191376c4893ad3da1a7b37594f679fab9e03
    Date:   Fri Jan 23 18:22:35 2015 +0800
    
    For details, see:
    
    #2
    
    Thanks @ksallberg!
    committed Feb 9, 2015
Commits on Feb 9, 2015
  1. @ksallberg

    Added common libvirt constants, found by in libvirt c-api header files

    Script to automate the fetching of libvirt constants
    ksallberg committed with Feb 5, 2015
Commits on Dec 26, 2014
  1. Force precedence in macros

    committed Dec 26, 2014
Commits on Dec 25, 2014
  1. Update to libvirt 1.2.11

    Generate the XDR interface using libvirt git master. Amazingly, the
    protocol is backwards compatible and all tests pass on an Ubuntu 12.04
    system running libvirt 0.9.8 after some minor code modifications.
    
    The biggest change is that the connection oriented function names are
    now namespaced with "connect_". So, where previously the call would be:
    
        Ref = verx_client:start_link([]),
        verx:open(Ref)
    
    Is now changed to:
    
        verx:connect_open(Ref)
    
    The documentation, tests and examples have been updated to use the
    "connect_" namespace.
    committed Dec 25, 2014