Added clicon_handle as parameter to all functions to get better error message
This commit is contained in:
parent
6fc8a69dff
commit
69b27f3280
7 changed files with 35 additions and 32 deletions
|
|
@ -40,12 +40,6 @@
|
|||
#ifndef _CLIXON_DATA_H_
|
||||
#define _CLIXON_DATA_H_
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
/* default group membership to access config unix socket */
|
||||
#define CLICON_SOCK_GROUP "clicon"
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -38,12 +38,6 @@
|
|||
#ifndef _CLIXON_OPTIONS_H_
|
||||
#define _CLIXON_OPTIONS_H_
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
/* default group membership to access config unix socket */
|
||||
#define CLICON_SOCK_GROUP "clicon"
|
||||
|
||||
/*
|
||||
* Types
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -69,14 +69,17 @@ struct clicon_msg *clicon_msg_encode(uint32_t id, char *format, ...);
|
|||
#endif
|
||||
int clicon_msg_decode(struct clicon_msg *msg, yang_stmt *yspec, uint32_t *id, cxobj **xml);
|
||||
|
||||
int clicon_connect_unix(char *sockpath);
|
||||
int clicon_connect_unix(clicon_handle h, char *sockpath);
|
||||
|
||||
int clicon_rpc_connect_unix(struct clicon_msg *msg,
|
||||
|
||||
int clicon_rpc_connect_unix(clicon_handle h,
|
||||
struct clicon_msg *msg,
|
||||
char *sockpath,
|
||||
char **ret,
|
||||
int *sock0);
|
||||
|
||||
int clicon_rpc_connect_inet(struct clicon_msg *msg,
|
||||
int clicon_rpc_connect_inet(clicon_handle h,
|
||||
struct clicon_msg *msg,
|
||||
char *dst,
|
||||
uint16_t port,
|
||||
char **ret,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue