/usr/include/yuma/agt/agt_cap.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 | /*
* 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_cap
#define _H_agt_cap
/* FILE: agt_cap.h
*********************************************************************
* *
* P U R P O S E *
* *
*********************************************************************
NETCONF Server capabilities handler
*********************************************************************
* *
* C H A N G E H I S T O R Y *
* *
*********************************************************************
date init comment
----------------------------------------------------------------------
03-feb-06 abb Begun; split out from base/cap.h
*/
#ifndef _H_agt
#include "agt.h"
#endif
#ifndef _H_cap
#include "cap.h"
#endif
#ifndef _H_ncxconst
#include "ncxconst.h"
#endif
#ifndef _H_status
#include "status.h"
#endif
#ifndef _H_val
#include "val.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************
* *
* F U N C T I O N S *
* *
*********************************************************************/
/********************************************************************
* FUNCTION agt_cap_cleanup
*
* Clean the NETCONF server capabilities
*
* INPUTS:
* none
* RETURNS:
* none
*********************************************************************/
extern void
agt_cap_cleanup (void);
/********************************************************************
* FUNCTION agt_cap_set_caps
*
* Initialize the NETCONF server capabilities
*
* INPUTS:
* agttarg == the target of edit-config for this server
* agtstart == the type of startup configuration for this server
* defstyle == default with-defaults style for the entire server
*
* RETURNS:
* NO_ERR if all goes well
*********************************************************************/
extern status_t
agt_cap_set_caps (ncx_agttarg_t agttarg,
ncx_agtstart_t agtstart,
const xmlChar *defstyle);
/********************************************************************
* FUNCTION agt_cap_set_modules
*
* Initialize the NETCONF server capabilities modules list
* MUST call after agt_cap_set_caps
*
* INPUTS:
* profile == server profile control block to use
*
* RETURNS:
* status
*********************************************************************/
extern status_t
agt_cap_set_modules (agt_profile_t *profile);
/********************************************************************
* FUNCTION agt_cap_add_module
*
* Add a module at runtime, after the initial set has been set
* MUST call after agt_cap_set_caps
*
* RETURNS:
* status
*********************************************************************/
extern status_t
agt_cap_add_module (ncx_module_t *mod);
/********************************************************************
* FUNCTION agt_cap_get_caps
*
* Get the NETCONF server capabilities
*
* INPUTS:
* none
* RETURNS:
* pointer to the server caps list
*********************************************************************/
extern cap_list_t *
agt_cap_get_caps (void);
/********************************************************************
* FUNCTION agt_cap_get_capsval
*
* Get the NETCONF server capabilities in val_value_t format
*
* INPUTS:
* none
* RETURNS:
* pointer to the server caps list
*********************************************************************/
extern val_value_t *
agt_cap_get_capsval (void);
/********************************************************************
* FUNCTION agt_cap_std_set
*
* Check if the STD capability is set for the server
*
* INPUTS:
* cap == ID of capability to check
*
* RETURNS:
* TRUE is STD cap set, FALSE otherwise
*********************************************************************/
extern boolean
agt_cap_std_set (cap_stdid_t cap);
#ifdef __cplusplus
} /* end extern 'C' */
#endif
#endif /* _H_agt_cap */
|