yumapro
24.10-2
YumaPro SDK
|
Thin client IO handler for YumaPro server. More...
#include "status_enum.h"
Go to the source code of this file.
Macros | |
#define | SUBSYS_BUFFLEN 32000 |
max length of an <ncx-connect> message | |
#define | SUBSYS_TRACE1(cb, fmt, ...) |
SUBSYS_TRACE Level 1 log debug trace macro. | |
#define | SUBSYS_TRACE2(cb, fmt, ...) |
SUBSYS_TRACE Level 2 log debug trace macro. | |
#define | SUBSYS_TRACE3(cb, fmt, ...) |
SUBSYS_TRACE Level 3 log debug trace macro. | |
#define | XML_START_MSG |
copied from ncx/xml_util.h to avoid inluding that file and all the files it includes | |
Typedefs | |
typedef status_t(* | subsys_stdout_fn_t) (const char *buff, size_t bufflen) |
STDOUT FUNCTION TEMPLATE subsys_stdout_fn_t. More... | |
typedef ssize_t(* | subsys_stdin_fn_t) (char *buff, size_t bufflen) |
STDIN FUNCTION TEMPLATE subsys_stdin_fn_t. More... | |
Enumerations | |
enum | proto_id_t { PROTO_ID_NONE , PROTO_ID_NETCONF , PROTO_ID_YANGAPI , PROTO_ID_CLI , PROTO_ID_WEBUI , PROTO_ID_YCONTROL , PROTO_ID_RESTCONF } |
the type of protocol starting the subsystem More... | |
Functions | |
int | run_subsystem (proto_id_t protocol_id, int trace_level, int argc, char **argv) |
Run the subsystem : entry point. More... | |
int | run_subsystem_ex (proto_id_t protocol_id, int trace_level, int argc, char **argv, char **envp, subsys_stdin_fn_t stdin_fn, subsys_stdout_fn_t stdout_fn, int32 stdin_len) |
Run the subsystem : entry point (extended) More... | |
int | run_subsystem_full (proto_id_t protocol_id, int trace_level, int argc, char **argv, char **envp, subsys_stdin_fn_t stdin_fn, subsys_stdout_fn_t stdout_fn, int32 stdin_len) |
Run the subsystem : entry point (full) More... | |
status_t | init_subsystem_ycontrol (int trace_level, const char *subsys_id) |
@ More... | |
status_t | init_subsystem_ycontrol_ha (int trace_level, const char *subsys_id, const char *server_id, const char *server_addr, uint16 server_port) |
@ More... | |
status_t | connect_subsystem_ycontrol (int *retfd) |
Connect the subsystem for YControl. More... | |
status_t | connect_subsystem_srid (const char *server_root, int *retfd) |
Connect the subsystem for YControl using a server root. More... | |
status_t | check_subsystem_io (void) |
Check if any input ready to transfer. More... | |
void | cleanup_subsystem_ycontrol (status_t res) |
Cleanup the subsystem variables. More... | |
Thin client IO handler for YumaPro server.