mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-26 04:47:34 +02:00
added new ns plugin #4313
This commit is contained in:
parent
1f41b92693
commit
a0f2261931
4 changed files with 115 additions and 0 deletions
38
src/plugin/ns/ns.cpp
Normal file
38
src/plugin/ns/ns.cpp
Normal file
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* synergy -- mouse and keyboard sharing utility
|
||||
* Copyright (C) 2015 Synergy Si Ltd
|
||||
*
|
||||
* This package is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* found in the file COPYING that should have accompanied this file.
|
||||
*
|
||||
* This package 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 "ns.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int
|
||||
init(void (*sendEvent)(const char*, void*), void (*log)(const char*))
|
||||
{
|
||||
std::cout << "hello world" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
cleanup()
|
||||
{
|
||||
std::cout << "goodbye world" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue