/ libi2pd_wrapper / capi.h
capi.h
1 /* 2 * Copyright (c) 2021-2022, The PurpleI2P Project 3 * 4 * This file is part of Purple i2pd project and licensed under BSD3 5 * 6 * See full license text in LICENSE file at top of project tree 7 */ 8 9 #ifndef CAPI_H__ 10 #define CAPI_H__ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 // initialization start and stop 17 void C_InitI2P (int argc, char *argv[], const char * appName); 18 //void C_InitI2P (int argc, char** argv, const char * appName); 19 void C_TerminateI2P (); 20 void C_StartI2P (); 21 // write system log to logStream, if not specified to <appName>.log in application's folder 22 void C_StopI2P (); 23 void C_RunPeerTest (); // should be called after UPnP 24 25 #ifdef __cplusplus 26 } 27 #endif 28 29 #endif