Skip to content

Commit 450960d

Browse files
committed
Create gateway.h
1 parent 405ce84 commit 450960d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/detection/gateway/gateway.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#pragma once
2+
3+
#include "fastfetch.h"
4+
#include "modules/gateway/option.h"
5+
6+
/*
7+
* Detection interface for the gateway module.
8+
* Mirrors the style used by src/detection/localip/localip.h
9+
*/
10+
11+
int ffDetectGateway(char* gw_buf, size_t gw_buf_size, char* ifname_buf, size_t ifname_buf_size);
12+
13+
/* Probe function used by the module wrapper.
14+
* Returns true if gw_ip is considered reachable given opts.
15+
*/
16+
bool ffProbeGateway(const char* gw_ip, const FFGatewayOptions* opts);

0 commit comments

Comments
 (0)