ssh now can return a string
This commit is contained in:
parent
ae11c5d0b8
commit
f7c104e979
2 changed files with 74 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef ARC_SSH_H_
|
||||
#define ARC_SSH_H_
|
||||
|
||||
#include "arc/std/string.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -44,6 +46,11 @@ void ARC_Ssh_RunInSession(ARC_Ssh *ssh, ARC_Ssh_SessionFn sessionFn);
|
|||
*/
|
||||
void ARC_Ssh_ExecStrInNewSession(ARC_Ssh *ssh, char *command);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*/
|
||||
ARC_String *ARC_Ssh_ExecStrInNewSessionAndGetResponse(ARC_Ssh *ssh, char *command);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue