* New clixon-config@2020-12-30.yang revision
* New clixon-lib@2020-12-30.yang revision * Added callback to process-control RPC feature in clixon-lib.yang to manage processes * Changed behavior of starting restconf internally using `CLICON_BACKEND_RESTCONF_PROCESS` monitoring changes in enable flag, not only the RPC. * Changed: RPC process-control output parameter status to pid
This commit is contained in:
parent
7459925bd0
commit
cf63d0f761
21 changed files with 741 additions and 280 deletions
|
|
@ -38,14 +38,22 @@
|
|||
#ifndef _CLIXON_PROC_H_
|
||||
#define _CLIXON_PROC_H_
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
typedef struct process_entry_t process_entry_t;
|
||||
|
||||
/* Process RPC callback function */
|
||||
typedef int (proc_cb_t)(clicon_handle h, process_entry_t *pe, char **operation);
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
int clixon_proc_run(char **argv, void (outcb)(char *), int doerr);
|
||||
int clixon_proc_background(char **argv, char *netns, pid_t *pid);
|
||||
int clixon_proc_background(char **argv, const char *netns, pid_t *pid);
|
||||
int clixon_proc_daemon(char **argv, pid_t *pid);
|
||||
int clixon_process_register(clicon_handle h, const char *name, const char *netns, char **argv, int argc);
|
||||
int clixon_process_register(clicon_handle h, const char *name, const char *netns, proc_cb_t *callback, char **argv, int argc);
|
||||
int clixon_process_delete_all(clicon_handle h);
|
||||
int clixon_process_operation(clicon_handle h, char *name, char *op, int *status);
|
||||
int clixon_process_operation(clicon_handle h, const char *name, char *op, const int wrapit, uint32_t *pid);
|
||||
|
||||
#endif /* _CLIXON_PROC_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue