Formatting, whitespace

This commit is contained in:
Olof hagsand 2025-03-16 17:28:11 +01:00
parent f26ea043c7
commit 411f509fd8
19 changed files with 288 additions and 288 deletions

View file

@ -1587,11 +1587,11 @@ from_client_restart_plugin(clixon_handle h,
* @retval -1 Error
*/
static int
from_client_process_control(clixon_handle h,
cxobj *xe,
cbuf *cbret,
void *arg,
void *regarg)
from_client_process_control(clixon_handle h,
cxobj *xe,
cbuf *cbret,
void *arg,
void *regarg)
{
int retval = -1;
cxobj *x;
@ -1631,7 +1631,7 @@ from_client_process_control(clixon_handle h,
* @retval -1 Error
*/
static int
from_client_hello(clixon_handle h,
from_client_hello(clixon_handle h,
cxobj *x,
struct client_entry *ce,
cbuf *cbret)

View file

@ -408,10 +408,10 @@ startup_common(clixon_handle h,
* @retval -1 Error - or validation failed (but cbret not set)
*/
int
startup_validate(clixon_handle h,
char *db,
cxobj **xtr,
cbuf *cbret)
startup_validate(clixon_handle h,
char *db,
cxobj **xtr,
cbuf *cbret)
{
int retval = -1;
int ret;
@ -454,9 +454,9 @@ startup_validate(clixon_handle h,
* Only called from startup_mode_startup
*/
int
startup_commit(clixon_handle h,
char *db,
cbuf *cbret)
startup_commit(clixon_handle h,
char *db,
cbuf *cbret)
{
int retval = -1;
int ret;

View file

@ -137,7 +137,7 @@ confirmed_commit_state_get(clixon_handle h)
}
static int
confirmed_commit_state_set(clixon_handle h,
confirmed_commit_state_set(clixon_handle h,
enum confirmed_commit_state state)
{
struct confirmed_commit *cc = NULL;
@ -211,8 +211,8 @@ confirmed_commit_fn_arg_get(clixon_handle h,
static int
confirmed_commit_fn_arg_set(clixon_handle h,
int (*fn)(int, void*),
void *arg)
int (*fn)(int, void*),
void *arg)
{
struct confirmed_commit *cc = NULL;
@ -325,7 +325,7 @@ cancel_rollback_event(clixon_handle h)
* @see do_rollback()
*/
static int
rollback_fn(int fd,
rollback_fn(int fd,
void *arg)
{
clixon_handle h = arg;

View file

@ -130,13 +130,13 @@ restconf_client_get_capabilities(clixon_handle h,
* @retval -1 Error (fatal)
*/
static int
client_get_streams(clixon_handle h,
yang_stmt *yspec,
char *xpath,
cvec *nsc,
yang_stmt *ymod,
char *top,
cxobj **xret)
client_get_streams(clixon_handle h,
yang_stmt *yspec,
char *xpath,
cvec *nsc,
yang_stmt *ymod,
char *top,
cxobj **xret)
{
int retval = -1;
yang_stmt *yns = NULL; /* yang namespace */
@ -396,16 +396,16 @@ filter_xpath_again(clixon_handle h,
* @retval -1 Error
*/
static int
get_nacm_and_reply(clixon_handle h,
cxobj *xret,
cxobj **xvec,
size_t xlen,
char *xpath,
cvec *nsc,
char *username,
int32_t depth,
withdefaults_type wdef,
cbuf *cbret)
get_nacm_and_reply(clixon_handle h,
cxobj *xret,
cxobj **xvec,
size_t xlen,
char *xpath,
cvec *nsc,
char *username,
int32_t depth,
withdefaults_type wdef,
cbuf *cbret)
{
int retval = -1;
cxobj *xnacm = NULL;
@ -447,12 +447,12 @@ get_nacm_and_reply(clixon_handle h,
* @retval -1 Error
*/
static int
element2value(clixon_handle h,
cxobj *xe,
char *name,
char *defaultstr,
cbuf *cbret,
uint32_t *value)
element2value(clixon_handle h,
cxobj *xe,
char *name,
char *defaultstr,
cbuf *cbret,
uint32_t *value)
{
char *valstr;
cxobj *x;

View file

@ -75,8 +75,8 @@
*/
int
clixon_plugin_reset_one(clixon_plugin_t *cp,
clixon_handle h,
char *db)
clixon_handle h,
char *db)
{
int retval = -1;
plgreset_t *fn; /* callback */
@ -137,7 +137,7 @@ clixon_plugin_reset_all(clixon_handle h,
*/
static int
clixon_plugin_pre_daemon_one(clixon_plugin_t *cp,
clixon_handle h)
clixon_handle h)
{
int retval = -1;
plgdaemon_t *fn; /* Daemonize plugin callback function */
@ -199,7 +199,7 @@ clixon_plugin_pre_daemon_all(clixon_handle h)
*/
static int
clixon_plugin_daemon_one(clixon_plugin_t *cp,
clixon_handle h)
clixon_handle h)
{
int retval = -1;
plgdaemon_t *fn; /* Daemonize plugin callback function */
@ -332,11 +332,11 @@ clixon_plugin_statedata_one(clixon_plugin_t *cp,
* @note xret can be replaced in this function
*/
int
clixon_plugin_statedata_all(clixon_handle h,
yang_stmt *yspec,
cvec *nsc,
char *xpath,
cxobj **xret)
clixon_plugin_statedata_all(clixon_handle h,
yang_stmt *yspec,
cvec *nsc,
char *xpath,
cxobj **xret)
{
int retval = -1;
int ret;
@ -457,8 +457,7 @@ int
clixon_plugin_lockdb_all(clixon_handle h,
char *db,
int lock,
int id
)
int id)
{
int retval = -1;
@ -786,9 +785,9 @@ plugin_transaction_revert_all(clixon_handle h,
* The commit failed is called for only failed plugin before revert all cb.
*/
static int
plugin_transaction_commit_failed(clixon_plugin_t *cp,
clixon_handle h,
transaction_data_t *td)
plugin_transaction_commit_failed(clixon_plugin_t *cp,
clixon_handle h,
transaction_data_t *td)
{
trans_cb_t *fn;
@ -806,7 +805,7 @@ plugin_transaction_commit_failed(clixon_plugin_t *cp,
* @retval -1 Error
*/
int
plugin_transaction_commit_one(clixon_plugin_t *cp,
plugin_transaction_commit_one(clixon_plugin_t *cp,
clixon_handle h,
transaction_data_t *td)
{

View file

@ -130,9 +130,9 @@ startup --+-------------------------------------> BROKEN XML
* @note: if commit fails, copy factory to running
*/
int
startup_mode_startup(clixon_handle h,
char *db,
cbuf *cbret)
startup_mode_startup(clixon_handle h,
char *db,
cbuf *cbret)
{
int retval = -1;
int ret = 0;

View file

@ -85,15 +85,15 @@
* @see struct clixon_handle, struct cli_handle
*/
struct backend_handle {
int bh_magic; /* magic (HDR)*/
clicon_hash_t *bh_copt; /* clicon option list (HDR) */
clicon_hash_t *bh_data; /* internal clicon data (HDR) */
clicon_hash_t *ch_db_elmnt; /* xml datastore element cache data */
event_stream_t *bh_stream; /* notification streams, see clixon_stream.[ch] */
int bh_magic; /* magic (HDR)*/
clicon_hash_t *bh_copt; /* clicon option list (HDR) */
clicon_hash_t *bh_data; /* internal clicon data (HDR) */
clicon_hash_t *ch_db_elmnt; /* xml datastore element cache data */
event_stream_t *bh_stream; /* notification streams, see clixon_stream.[ch] */
/* ------ end of common handle ------ */
struct client_entry *bh_ce_list; /* The client list */
int bh_ce_nr; /* Number of clients, just increment */
struct client_entry *bh_ce_list; /* The client list */
int bh_ce_nr; /* Number of clients, just increment */
};
/*! Creates and returns a clicon config handle for other CLICON API calls