1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-03-25 04:17:42 +00:00
haproxy/include/import/da.h
Willy Tarreau 876054df96 CLEANUP: da: make use of the late init registration code
Instead of having a #ifdef in the main init code we now use the registered
init functions. Doing so also enables error checking as errors were previously
reported as alerts but ignored. Also they were incorrect as the 'status'
variable was hidden by a second one and was always reporting DA_SYS (which
is apparently an error) in every case including the case where no file was
loaded. The init_deviceatlas() function was unexported since it's not used
outside of this place anymore.
2016-12-21 21:30:54 +01:00

11 lines
155 B
C

#ifndef _IMPORT_DA_H
#define _IMPORT_DA_H
#ifdef USE_DEVICEATLAS
#include <types/global.h>
#include <dac.h>
void deinit_deviceatlas(void);
#endif
#endif