/usr/include/yuma/agt/agt_sys.h is in libyuma-dev 2.10-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | /*
* Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#ifndef _H_agt_sys
#define _H_agt_sys
/* FILE: agt_sys.h
*********************************************************************
* *
* P U R P O S E *
* *
*********************************************************************
NETCONF system.yang DM module support
*********************************************************************
* *
* C H A N G E H I S T O R Y *
* *
*********************************************************************
date init comment
----------------------------------------------------------------------
04-jun-09 abb Begun.
*/
#include <xmlstring.h>
#include "dlq.h"
#include "ncxtypes.h"
#include "obj.h"
#include "ses.h"
#include "status.h"
#include "tstamp.h"
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************
* *
* C O N S T A N T S *
* *
*********************************************************************/
#define AGT_IETF_SYS_MODULE (const xmlChar *)"ietf-system"
#define AGT_SYS_MODULE (const xmlChar *)"yuma123-system"
/********************************************************************
* *
* T Y P E S *
* *
*********************************************************************/
/********************************************************************
* *
* F U N C T I O N S *
* *
*********************************************************************/
/********************************************************************
* FUNCTION agt_sys_init
*
* INIT 1:
* Initialize the server notification module data structures
*
* INPUTS:
* none
* RETURNS:
* status
*********************************************************************/
extern status_t
agt_sys_init (void);
/********************************************************************
* FUNCTION agt_sys_init2
*
* INIT 2:
* Initialize the monitoring data structures
* This must be done after the <running> config is loaded
*
* INPUTS:
* none
* RETURNS:
* status
*********************************************************************/
extern status_t
agt_sys_init2 (void);
/********************************************************************
* FUNCTION agt_sys_cleanup
*
* Cleanup the module data structures
*
* INPUTS:
*
* RETURNS:
* none
*********************************************************************/
extern void
agt_sys_cleanup (void);
/********************************************************************
* FUNCTION agt_sys_send_netconf_session_start
*
* Queue the <netconf-session-start> notification
*
* INPUTS:
* scb == session control block to use for payload values
*
* OUTPUTS:
* notification generated and added to notificationQ
*
*********************************************************************/
extern void
agt_sys_send_netconf_session_start (const ses_cb_t *scb);
/********************************************************************
* FUNCTION agt_sys_send_netconf_session_end
*
* Queue the <netconf-session-end> notification
*
* INPUTS:
* scb == session control block to use for payload values
* termreason == enum for the termination-reason leaf
* killedby == session-id for killedBy leaf if termination-reason == "killed"
* ignored otherwise
*
* OUTPUTS:
* notification generated and added to notificationQ
*
*********************************************************************/
extern void
agt_sys_send_netconf_session_end (const ses_cb_t *scb,
ses_term_reason_t termreason,
ses_id_t killedby);
/********************************************************************
* FUNCTION agt_sys_send_netconf_config_change
*
* Queue the <netconf-config-change> notification
*
* INPUTS:
* scb == session control block to use for payload values
* auditrecQ == Q of rpc_audit_rec_t structs to use
* for the notification payload contents
*
* OUTPUTS:
* notification generated and added to notificationQ
*
*********************************************************************/
extern void
agt_sys_send_netconf_config_change (const ses_cb_t *scb,
dlq_hdr_t *auditrecQ);
/********************************************************************
* FUNCTION agt_sys_send_netconf_capability_change
*
* Send a <netconf-capability-change> event for a module
* being added
*
* Queue the <netconf-capability-change> notification
*
* INPUTS:
* changed_by == session control block that made the
* change to add this module
* == NULL if the server made the change
* is_add == TRUE if the capability is being added
* FALSE if the capability is being deleted
* capstr == capability string that was added or deleted
*
* OUTPUTS:
* notification generated and added to notificationQ
*
*********************************************************************/
extern void
agt_sys_send_netconf_capability_change (ses_cb_t *changed_by,
boolean is_add,
const xmlChar *capstr);
/********************************************************************
* FUNCTION agt_sys_send_netconf_confirmed_commit
*
* Queue the <netconf-confirmed-commit> notification
*
* INPUTS:
* scb == session control block to use for payload values
* event == enum for the confirmEvent leaf
*
* OUTPUTS:
* notification generated and added to notificationQ
*
*********************************************************************/
extern void
agt_sys_send_netconf_confirmed_commit (const ses_cb_t *scb,
ncx_confirm_event_t event);
#ifdef __cplusplus
} /* end extern 'C' */
#endif
#endif /* _H_agt_sys */
|