mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-07-01 18:24:36 +02:00
Reformat code
This commit is contained in:
parent
3ddb370718
commit
55534ea002
140 changed files with 46068 additions and 48277 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
%{
|
||||
#include "capi.h"
|
||||
|
||||
%}
|
||||
|
||||
%include "capi.h"
|
||||
|
|
|
@ -18,31 +18,26 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void C_InitI2P (int argc, char *argv[], const char * appName)
|
||||
{
|
||||
std::cout << argv;
|
||||
return i2p::api::InitI2P(argc, argv, appName);
|
||||
void C_InitI2P(int argc, char *argv[], const char *appName) {
|
||||
std::cout << argv;
|
||||
return i2p::api::InitI2P(argc, argv, appName);
|
||||
}
|
||||
|
||||
void C_TerminateI2P ()
|
||||
{
|
||||
return i2p::api::TerminateI2P();
|
||||
void C_TerminateI2P() {
|
||||
return i2p::api::TerminateI2P();
|
||||
}
|
||||
|
||||
void C_StartI2P ()
|
||||
{
|
||||
std::shared_ptr<std::ostream> logStream;
|
||||
return i2p::api::StartI2P(logStream);
|
||||
void C_StartI2P() {
|
||||
std::shared_ptr<std::ostream> logStream;
|
||||
return i2p::api::StartI2P(logStream);
|
||||
}
|
||||
|
||||
void C_StopI2P ()
|
||||
{
|
||||
return i2p::api::StopI2P();
|
||||
void C_StopI2P() {
|
||||
return i2p::api::StopI2P();
|
||||
}
|
||||
|
||||
void C_RunPeerTest ()
|
||||
{
|
||||
return i2p::api::RunPeerTest();
|
||||
void C_RunPeerTest() {
|
||||
return i2p::api::RunPeerTest();
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -14,13 +14,17 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
// initialization start and stop
|
||||
void C_InitI2P (int argc, char *argv[], const char * appName);
|
||||
void C_InitI2P(int argc, char *argv[], const char *appName);
|
||||
|
||||
//void C_InitI2P (int argc, char** argv, const char * appName);
|
||||
void C_TerminateI2P ();
|
||||
void C_StartI2P ();
|
||||
void C_TerminateI2P();
|
||||
|
||||
void C_StartI2P();
|
||||
|
||||
// write system log to logStream, if not specified to <appName>.log in application's folder
|
||||
void C_StopI2P ();
|
||||
void C_RunPeerTest (); // should be called after UPnP
|
||||
void C_StopI2P();
|
||||
|
||||
void C_RunPeerTest(); // should be called after UPnP
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue