haproxy/addons/deviceatlas/dummy/dacache.cpp
David Carlier 5c196f0d8d BUILD/MEDIUM: deviceatlas: updating the addon part.
- Reflecing the changes done in addons/deviceatlas/Makefile.inc.
 Enabling the cache feature and its disabling option as well.
- Now the `dadwsch` application is part of the API's package for more
general purposes, we remove it.
- Minor and transparent to user changes into da.c's workflow, also
making more noticeable some notices with appropriate logging levels.
- Adding support for the new `deviceatlas-cache-size` config keyword,
 a no-op when the cache support is disabled.
- Adding missing compilation units and relevant api updates to
the dummy library version.
2024-01-26 18:54:27 +01:00

27 lines
519 B
C++

#include "dac.h"
extern "C" {
void da_atlas_cache_init(const da_atlas_t *atlas) {
(void)atlas;
}
da_status_t da_atlas_cache_insert(const da_atlas_t *atlas, unsigned long long h, da_deviceinfo_t *info) {
(void)atlas;
(void)h;
(void)info;
return DA_OK;
}
da_status_t da_atlas_cache_search(const da_atlas_t *atlas, unsigned long long h, da_deviceinfo_t **info) {
(void)atlas;
(void)h;
(void)info;
return DA_OK;
}
void da_atlas_cache_close(da_atlas_t *atlas) {
(void)atlas;
}
}