]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add hook utilities
authorDaniel Veillard <veillard@redhat.com>
Fri, 26 Mar 2010 14:49:45 +0000 (15:49 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 29 Mar 2010 16:21:04 +0000 (18:21 +0200)
commit2b4e3531686a21dbcdac94aa7095fdec7ea0bff3
tree8f30a80cb71d06e2d44d1e2e6a7c82bc65b4867a
parentbf7354072fc0a78f945478061ca4ea05ba597cbb
Add hook utilities

This exports 3 basic routines:
  - virHookInitialize() initializing the hook support by looking for
    scripts availability
  - virHookPresent() used to test if there is a hook for a given driver
  - virHookCall() which actually calls a synchronous script hook with
    the needed parameters
Note that this doesn't expose any public API except for the locations
and arguments passed to the scripts

* src/Makefile.am: add the 2 new files
* src/util/hooks.h src/util/hooks.c: implements the 3 functions
* src/libvirt_private.syms: export the 3 symbols internally
* po/POTFILES.in: add src/util/hooks.c to translatables modules
po/POTFILES.in
src/Makefile.am
src/libvirt_private.syms
src/util/hooks.c [new file with mode: 0644]
src/util/hooks.h [new file with mode: 0644]