diff options
Diffstat (limited to 'tests/unit/stubs/market.h')
| -rw-r--r-- | tests/unit/stubs/market.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/stubs/market.h b/tests/unit/stubs/market.h new file mode 100644 index 0000000..b81564d --- /dev/null +++ b/tests/unit/stubs/market.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #ifndef STUBS_MARKET_H | ||
| 2 | #define STUBS_MARKET_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | |||
| 7 | typedef struct { | ||
| 8 | uint8_t bssid[6]; | ||
| 9 | int8_t rssi; | ||
| 10 | uint16_t price_per_step; | ||
| 11 | uint32_t step_size; | ||
| 12 | uint8_t metric; | ||
| 13 | uint8_t mint_hash[4]; | ||
| 14 | uint8_t npub_hash[4]; | ||
| 15 | int64_t discovered_ms; | ||
| 16 | } market_t; | ||
| 17 | |||
| 18 | static inline const market_t *market_get(void) { return NULL; } | ||
| 19 | static inline int market_find_cheapest(void) { return -1; } | ||
| 20 | |||
| 21 | #endif | ||