mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 08:30:59 +01:00 
			
		
		
		
	- 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.
		
			
				
	
	
		
			27 lines
		
	
	
		
			519 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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;
 | |
| }
 | |
| }
 | |
| 
 |