mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
458 B
C
27 lines
458 B
C
3 years ago
|
#pragma once
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
/// change our network id globally across all contexts
|
||
|
void
|
||
|
lokinet_set_netid(const char*);
|
||
|
|
||
|
/// get our current netid
|
||
|
/// must be free()'d after use
|
||
|
const char*
|
||
|
lokinet_get_netid();
|
||
|
|
||
|
/// set log level
|
||
|
/// possible values: trace, debug, info, warn, error, none
|
||
|
/// return 0 on success
|
||
|
/// return non zero on fail
|
||
|
int
|
||
|
lokinet_log_level(const char*);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|