mirror of https://github.com/wolfSSL/wolfssh.git
Change examples' header file including guard from pragma-once to ifndef-define.
parent
6cbc0d855e
commit
1be4042711
|
@ -19,13 +19,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#ifndef _WOLFSSH_EXAMPLES_CLIENT_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_CLIENT_H_
|
||||||
#ifndef _WOLFSSH_CLIENT_H_
|
|
||||||
#define _WOLFSSH_CLIENT_H_
|
|
||||||
|
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD client_test(void* args);
|
THREAD_RETURN WOLFSSH_THREAD client_test(void* args);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _WOLFSSH_CLIENT_H_ */
|
#endif /* _WOLFSSH_EXAMPLES_CLIENT_H_ */
|
||||||
|
|
|
@ -19,13 +19,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#ifndef _WOLFSSH_EXAMPLES_ECHOSERVER_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_ECHOSERVER_H_
|
||||||
#ifndef _WOLFSSH_ECHOSERVER_H_
|
|
||||||
#define _WOLFSSH_ECHOSERVER_H_
|
|
||||||
|
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD echoserver_test(void* args);
|
THREAD_RETURN WOLFSSH_THREAD echoserver_test(void* args);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _WOLFSSH_ECHOSERVER_H_ */
|
#endif /* _WOLFSSH_EXAMPLES_ECHOSERVER_H_ */
|
||||||
|
|
|
@ -1,8 +1,27 @@
|
||||||
#pragma once
|
/* wolfssh_portfwd.h
|
||||||
|
*
|
||||||
|
* Copyright (C) 2014-2020 wolfSSL Inc.
|
||||||
|
*
|
||||||
|
* This file is part of wolfSSH.
|
||||||
|
*
|
||||||
|
* wolfSSH 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.
|
||||||
|
*
|
||||||
|
* wolfSSH 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 wolfSSH. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef _WOLFSSH_CLIENT_H_
|
|
||||||
#define _WOLFSSH_CLIENT_H_
|
#ifndef _WOLFSSH_EXAMPLES_PORTFWD_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_PORTFWD_H_
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args);
|
THREAD_RETURN WOLFSSH_THREAD portfwd_worker(void* args);
|
||||||
|
|
||||||
#endif /* _WOLFSSH_CLIENT_H_ */
|
#endif /* _WOLFSSH_EXAMPLES_PORTFWD_H_ */
|
||||||
|
|
|
@ -19,11 +19,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#ifndef _WOLFSSH_EXAMPLES_SCPCLIENT_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_SCPCLIENT_H_
|
||||||
#ifndef _WOLFSSH_SCPCLIENT_H_
|
|
||||||
#define _WOLFSSH_SCPCLIENT_H_
|
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD scp_client(void*);
|
THREAD_RETURN WOLFSSH_THREAD scp_client(void*);
|
||||||
|
|
||||||
#endif /* _WOLFSSH_SCPCLIENT_H_ */
|
#endif /* _WOLFSSH_EXAMPLES_SCPCLIENT_H_ */
|
||||||
|
|
|
@ -19,13 +19,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#ifndef _WOLFSSH_EXAMPLES_SERVER_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_SERVER_H_
|
||||||
#ifndef _WOLFSSH_SERVER_H_
|
|
||||||
#define _WOLFSSH_SERVER_H_
|
|
||||||
|
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD server_test(void* args);
|
THREAD_RETURN WOLFSSH_THREAD server_test(void* args);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _WOLFSSH_SERVER_H_ */
|
#endif /* _WOLFSSH_EXAMPLES_SERVER_H_ */
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#ifndef _WOLFSSH_EXAMPLES_SFTPCLIENT_H_
|
||||||
|
#define _WOLFSSH_EXAMPLES_SFTPCLIENT_H_
|
||||||
|
|
||||||
|
|
||||||
THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args);
|
THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args);
|
||||||
|
|
||||||
|
#endif /* _WOLFSSH_EXAMPLES_SFTPCLIENT_H_ */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue