gst-qa-override-registry: load overrides dynamically
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 30 Jul 2013 09:20:43 +0000 (10:20 +0100)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Tue, 30 Jul 2013 12:41:00 +0000 (09:41 -0300)
commit7fedf5a111054fa7261384bc9b5669fff8014a33
treeddb336b15956445d53e96c7611b27c495a523a30
parent09fda8bbd2ad47996ea8873c643ef79a04c326e3
gst-qa-override-registry: load overrides dynamically

Shared objects listed in GST_QA_OVERRIDE are loaded on startup,
and the symbol gst_qa_create_overrides is run. It should create
any override needed. While it can do anything it wants, this
is discouraged.

GST_QA_OVERRIDE should be a comma separated list of shared objects,
any relative paths should be from the current working directory
at the time they are loaded (ie, if the process to be traced
changes cwd, use absolute paths).

No attempt whatsoever is made at not running what was not meant.

Includes a sample shared object for illustration purposes.
validate/gst/qa/Makefile.am
validate/gst/qa/gst-qa-default-overrides.c [new file with mode: 0644]
validate/gst/qa/gst-qa-override-registry.c
validate/gst/qa/gst-qa-override-registry.h
validate/gst/qa/gst-qa-runner.c