Inital commit
This commit is contained in:
parent
edc5e091bb
commit
d6e393ea58
145 changed files with 58117 additions and 0 deletions
48
apps/netconf/netconf_rpc.h
Normal file
48
apps/netconf/netconf_rpc.h
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
*
|
||||
Copyright (C) 2009-2016 Olof Hagsand and Benny Holmgren
|
||||
|
||||
This file is part of CLICON.
|
||||
|
||||
CLICON is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
CLICON is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with CLICON; see the file COPYING. If not, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
*
|
||||
* Code for handling netconf rpc messages
|
||||
*****************************************************************************/
|
||||
#ifndef _NETCONF_RPC_H_
|
||||
#define _NETCONF_RPC_H_
|
||||
|
||||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
int
|
||||
netconf_rpc_dispatch(clicon_handle h,
|
||||
cxobj *xorig,
|
||||
cxobj *xn,
|
||||
cbuf *xf,
|
||||
cbuf *xf_err);
|
||||
|
||||
int netconf_create_rpc_reply(cbuf *xf, /* msg buffer */
|
||||
cxobj *xr, /* orig request */
|
||||
char *body, int ok);
|
||||
int netconf_create_rpc_error(cbuf *xf, /* msg buffer */
|
||||
cxobj *xr, /* orig request */
|
||||
char *tag,
|
||||
char *type,
|
||||
char *severity,
|
||||
char *message,
|
||||
char *info);
|
||||
|
||||
#endif /* _NETCONF_RPC_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue