2021-06-08 20:25:45 +00:00
|
|
|
/*
|
2022-02-18 06:20:06 +00:00
|
|
|
* Copyright (c) 2021-2022, The PurpleI2P Project
|
2021-06-08 20:25:45 +00:00
|
|
|
*
|
|
|
|
* This file is part of Purple i2pd project and licensed under BSD3
|
|
|
|
*
|
|
|
|
* See full license text in LICENSE file at top of project tree
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CAPI_H__
|
|
|
|
#define CAPI_H__
|
|
|
|
|
2021-06-18 03:12:22 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-06-08 20:25:45 +00:00
|
|
|
// initialization start and stop
|
2022-02-13 18:21:18 +00:00
|
|
|
void C_InitI2P (int argc, char *argv[], const char * appName);
|
2021-06-18 03:12:22 +00:00
|
|
|
//void C_InitI2P (int argc, char** argv, const char * appName);
|
2021-06-08 20:25:45 +00:00
|
|
|
void C_TerminateI2P ();
|
2021-07-02 17:20:28 +00:00
|
|
|
void C_StartI2P ();
|
2021-06-08 20:25:45 +00:00
|
|
|
// 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
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|