added client callbacks to ssh server

This commit is contained in:
2026-03-16 14:01:34 -07:00
parent 76d2e27879
commit b6c9afaf20
8 changed files with 64 additions and 19 deletions

View File

@@ -0,0 +1,3 @@
target_sources( ${PROJECT_NAME}
PUBLIC client.c
)

View File

@@ -0,0 +1,22 @@
#include "client.h"
#include <string.h>
#include <tart.h>
int client_auth(void* userdata);
int client_init(void* cli) {
return 0;
}
int client_update(ssh_terminal_data* td, void* cli) {
client* c = (client*)cli;
strcpy(td->outputBuffer, "testing 1212\n\r");
return 0;
}
int client_stop(void* cli) {
return 0;
}

View File

@@ -1,6 +1,16 @@
#ifndef CLIENT_H
#define CLIENT_H
#include "../ssh_server_client.h"
typedef struct {} client;
int client_auth(void* userdata);
int client_init(void*);
int client_update(ssh_terminal_data* td, void*);
int client_stop(void*);
#endif