-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhcvplugin_echo.cc
50 lines (44 loc) · 1.89 KB
/
hcvplugin_echo.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/****************************************************************
* file hcvplugin_echo.cc
*
* Description:
* Example plugin of https://github.com/bstarynk/helpcovid just echoing the argument
*
* Author(s):
* © Copyright 2020
* Basile Starynkevitch <[email protected]>
* Abhishek Chakravarti <[email protected]>
*
*
* License:
* This HELPCOVID program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#include "hcv_header.hh"
/// mandatory in every HelpCovid plugin
const char hcvplugin_name[]="echo";
const char hcvplugin_version[]=__DATE__ "@" __TIME__;
const char hcvplugin_gpl_compatible_license[]="GPLv3+";
const char hcvplugin_gitapi[]=HELPCOVID_GITID;
/// mandatory initialization routine
void
hcvplugin_initialize_web(httplib::Server*,const char*arg)
{
if (!arg)
HCV_SYSLOGOUT(LOG_WARNING, "echo plugin " << hcvplugin_version
<< " hcvplugin_initialize_web without arguments");
else
HCV_SYSLOGOUT(LOG_NOTICE, "echo plugin " << hcvplugin_version
<< " hcvplugin_initialize_web got argument: " << arg);
} // end of hcvplugin_initialize_web
/***************** end of example plugin hcvplugin_echo.cc in github.com/bstarynk/helpcovid */