C-style update: Unified comment, retvals in order, remove trailing spaces
Changed function name for `clicon_debug` functions
This commit is contained in:
parent
6e314dd96f
commit
62348fc9c7
204 changed files with 6047 additions and 4904 deletions
|
|
@ -50,17 +50,17 @@ typedef enum {
|
|||
* see https://clixon-docs.readthedocs.io/en/latest/netconf.html#ipc
|
||||
* Must be local on device
|
||||
*/
|
||||
CLIXON_CLIENT_IPC,
|
||||
CLIXON_CLIENT_IPC,
|
||||
/* Regular NETCONF via local netconf binary
|
||||
* Fork clixon_netconf locally which in turn communicates with backend
|
||||
* Must be local on device
|
||||
*/
|
||||
CLIXON_CLIENT_NETCONF,
|
||||
CLIXON_CLIENT_NETCONF,
|
||||
/* Regular NETCONF using ssh sub-system via local SSH (openssh) client binary
|
||||
* Fork ssh locally which in turn communicates remotely to device
|
||||
* Must have openssh installed locally and device must have ssh sub-subsystem
|
||||
*/
|
||||
CLIXON_CLIENT_SSH
|
||||
CLIXON_CLIENT_SSH
|
||||
} clixon_client_type;
|
||||
|
||||
/*
|
||||
|
|
@ -70,7 +70,7 @@ typedef enum {
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
clixon_handle clixon_client_init(const char *config_file);
|
||||
int clixon_client_terminate(clixon_handle h);
|
||||
int clixon_client_lock(int sock, const char *descr, const int lock, const char *db);
|
||||
|
|
@ -83,7 +83,7 @@ int clixon_client_get_uint8(clixon_client_handle ch, uint8_t *rval, const char
|
|||
int clixon_client_get_uint16(clixon_client_handle ch, uint16_t *rval, const char *xnamespace, const char *xpath);
|
||||
int clixon_client_get_uint32(clixon_client_handle ch, uint32_t *rval, const char *xnamespace, const char *xpath);
|
||||
int clixon_client_get_uint64(clixon_client_handle ch, uint64_t *rval, const char *xnamespace, const char *xpath);
|
||||
|
||||
|
||||
/* Access functions */
|
||||
int clixon_client_socket_get(clixon_client_handle ch);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue