working on adding a entity workflow
This commit is contained in:
33
source/ssh_server_client.h
Normal file
33
source/ssh_server_client.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef SSH_SERVER_CLIENT_H
|
||||
#define SSH_SERVER_CLIENT_H
|
||||
|
||||
typedef struct {
|
||||
int inputSize;
|
||||
int* outputSize;
|
||||
char* inputBuffer;
|
||||
char* outputBuffer;
|
||||
|
||||
}ssh_terminal_data;
|
||||
|
||||
typedef int(*ssh_server_callback)(void* userdata);
|
||||
typedef int(*ssh_server_run_callback)(void* ssh_terminal_data, void* userdata);
|
||||
|
||||
typedef struct {
|
||||
void* init_var;
|
||||
void* run_var;
|
||||
void* stop_var;
|
||||
ssh_server_callback ssh_init;
|
||||
ssh_server_run_callback ssh_run;
|
||||
ssh_server_callback ssh_stop;
|
||||
}ServerLoopCallbacks;
|
||||
|
||||
typedef struct {
|
||||
int port;
|
||||
int id;
|
||||
ServerLoopCallbacks cbs;
|
||||
}ServerConfig;
|
||||
|
||||
|
||||
int ssh_start(ServerConfig* conf);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user