BSB Developer Docs
Loading...
Searching...
No Matches
web_server.h File Reference

API for controlling HTTP web server. More...

#include <toolbox/semver.h>

Go to the source code of this file.

Functions

void web_server_get_api_version (SemVer *version)
 Get the HTTP API version.
 
void web_server_get_api_version_string (FuriString *version_string)
 Get the HTTP API version string.
 
bool web_server_is_api_version_compatible (const SemVer *version)
 Check if the given version is compatible with the firmware API version.
 

Detailed Description

API for controlling HTTP web server.

Function Documentation

◆ web_server_get_api_version()

void web_server_get_api_version ( SemVer * version)

Get the HTTP API version.

Parameters
[out]versionPointer to a SemVer structure to hold the value (must be allocated).

◆ web_server_get_api_version_string()

void web_server_get_api_version_string ( FuriString * version_string)

Get the HTTP API version string.

Parameters
[out]version_stringA string to write the version into. The string should be initialized by the caller.

◆ web_server_is_api_version_compatible()

bool web_server_is_api_version_compatible ( const SemVer * version)

Check if the given version is compatible with the firmware API version.

Parameters
[in]versionPointer to a SemVer structure to be checked against.
Returns
true if the version is compatible, false otherwise