libnetconf
0.10.0-146_trunk
NETCONF Library
|
libnetconf's general public functions and structures definitions. More...
#include <stdint.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | NC_INIT_ALL 0xffff8fff |
#define | NC_INIT_CLIENT 0x00004000 |
#define | NC_INIT_DATASTORES 0x00000100 |
#define | NC_INIT_KEEPALIVECHECK 0x00000080 |
#define | NC_INIT_LIBSSH_PTHREAD 0x00000200 |
#define | NC_INIT_MONITORING 0x00000008 |
#define | NC_INIT_MULTILAYER 0x00001000 |
#define | NC_INIT_NACM 0x00000004 |
#define | NC_INIT_NOTIF 0x00000002 |
#define | NC_INIT_SINGLELAYER 0x00002000 |
#define | NC_INIT_URL 0x00000040 |
#define | NC_INIT_VALIDATE 0x00000020 |
#define | NC_INIT_WD 0x00000010 |
#define | NC_INITRET_NOTFIRST 0x00000001 |
#define | NC_INITRET_RECOVERY 0x00000002 |
#define | nc_msgid char* |
Type representing NETCONF message-id attribute. More... | |
Typedefs | |
typedef struct nc_msg | nc_ntf |
Event notification message. More... | |
typedef struct nc_msg | nc_reply |
reply message. More... | |
typedef struct nc_msg | nc_rpc |
rpc message. More... | |
Functions | |
int | nc_close (void) |
Release libnetconf resources. Init flag is used to determine if close should be applied as system-wide (NC_INIT_MULTILAYER) or not (NC_INIT_SINGLELAYER). System-wide nc_close() closes all the shared structures if no other libnetconf participant is currently running. Local release of the calling instance from the shared structures is done in both cases. More... | |
time_t | nc_datetime2time (const char *datetime) |
Transform given string in RFC 3339 compliant format to the time_t (seconds since the epoch) accepted by most Linux functions. More... | |
void | nc_hello_timeout (int timeout) |
Set <hello> timeout - how long libnetconf will wait for the <hello> message from the other side. Default value is -1 (infinite timeout). More... | |
int | nc_init (int flags) |
Initialize libnetconf for system-wide usage. This initialization is shared across all the processes. More... | |
char * | nc_time2datetime (time_t time, const char *tz) |
Transform given time_t (seconds since the epoch) into the RFC 3339 format accepted by NETCONF functions. More... | |
void | nc_verb_error (const char *format,...) |
Function for logging error messages. More... | |
void | nc_verb_verbose (const char *format,...) |
Function for logging verbose messages. More... | |
void | nc_verb_warning (const char *format,...) |
Function for logging warning messages. More... | |
void | nc_verbosity (NC_VERB_LEVEL level) |
Set libnetconf's verbosity level. More... | |
libnetconf's general public functions and structures definitions.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
ALTERNATIVELY, provided that this notice is retained in full, this product may be distributed under the terms of the GNU General Public License (GPL) version 2 or later, in which case the provisions of the GPL apply INSTEAD OF those given above.
This software is provided ``as is, and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the company or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
#define NC_INIT_ALL 0xffff8fff |
nc_init()'s flag to enable all optional features/subsystems
#define NC_INIT_CLIENT 0x00004000 |
nc_init()'s flag for NETCONF clients
#define NC_INIT_DATASTORES 0x00000100 |
nc_init()'s flag to use internal datastores
#define NC_INIT_KEEPALIVECHECK 0x00000080 |
nc_init()'s flag to enable check of monitored sessions. Sometimes the process holding a monitored session crashes and status information of the session is not properly removed from the monitored sessions list. If this option is used, libnetconf checks if the process holding the session is still alive. To do this properly, the session is connected with the PID of the nc_session_monitor() caller. If the PID changes (e.g. after fork() or daemon()), the process is supposed to call nc_session_monitor() againg.
#define NC_INIT_LIBSSH_PTHREAD 0x00000200 |
nc_init()'s flag to initialize libssh pthread callbacks
#define NC_INIT_MONITORING 0x00000008 |
nc_init()'s flag to enable ietf-netconf-monitoring module
#define NC_INIT_MULTILAYER 0x00001000 |
nc_init()'s flag for multi-layer server architecture
#define NC_INIT_NACM 0x00000004 |
nc_init()'s flag to enable Acccess Control subsystem
#define NC_INIT_NOTIF 0x00000002 |
nc_init()'s flag to enable Notification subsystem.
#define NC_INIT_SINGLELAYER 0x00002000 |
nc_init()'s flag for single-layer server architecture
#define NC_INIT_URL 0x00000040 |
nc_init()'s flag to enable server's URL capability
#define NC_INIT_VALIDATE 0x00000020 |
nc_init()'s flag to enable server's validation capability
#define NC_INIT_WD 0x00000010 |
nc_init()'s flag to enable with-default capability
#define NC_INITRET_NOTFIRST 0x00000001 |
#define NC_INITRET_RECOVERY 0x00000002 |
nc_init()'s return flag for this process crashing before (not calling nc_close())
enum NC_ERR_PARAM |
enum NC_NOTIF_TYPE |