mirror of
https://oauth2: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@github.com/m1ngsama/TNT.git
synced 2026-06-26 05:44:38 +08:00
17 lines
562 B
C
17 lines
562 B
C
#ifndef EXEC_H
|
|
#define EXEC_H
|
|
|
|
#include "ssh_server.h" /* for client_t */
|
|
|
|
/* Dispatch the non-interactive SSH exec command stored in
|
|
* client->exec_command. Returns the exit status to send back to the
|
|
* SSH client:
|
|
* TNT_EXIT_OK = success
|
|
* TNT_EXIT_ERROR = runtime error (I/O, OOM, persistence failure)
|
|
* TNT_EXIT_USAGE = usage error (unknown command, bad args)
|
|
*
|
|
* Reads g_room and shared client state. Safe to call once per
|
|
* exec-mode session before the channel is closed. */
|
|
int exec_dispatch(client_t *client);
|
|
|
|
#endif /* EXEC_H */
|