yumapro  20.10-12
YumaPro SDK
agt_sil_profile.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifdef WITH_YCONTROL
13 #ifndef _H_agt_sil_profile
14 #define _H_agt_sil_profile
15 
16 /* FILE: agt_sil_profile.h
17 *********************************************************************
18 * *
19 * P U R P O S E *
20 * *
21 *********************************************************************/
22 
29 /*********************************************************************
30 * *
31 * C H A N G E H I S T O R Y *
32 * *
33 *********************************************************************
34 
35 date init comment
36 ----------------------------------------------------------------------
37 06-sep-14 abb Begun
38 */
39 
40 #ifndef _H_agt
41 #include "agt.h"
42 #endif
43 
44 #ifndef _H_obj
45 #include "obj.h"
46 #endif
47 
48 #ifndef _H_val
49 #include "val.h"
50 #endif
51 
52 #ifndef _H_status_enum
53 #include "status_enum.h"
54 #endif
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 /********************************************************************
61 * *
62 * C O N S T A N T S *
63 * *
64 *********************************************************************/
65 
66 
67 /********************************************************************
68 * *
69 * T Y P E S *
70 * *
71 *********************************************************************/
72 
73 
74 /********************************************************************
75 * *
76 * F U N C T I O N S *
77 * *
78 *********************************************************************/
79 
80 /* group is defined in agt.h */
81 
115 extern val_value_t *
116  agt_sil_profile_make_value (agt_profile_t *profile,
117  obj_template_t *parent_obj,
118  status_t *res);
119 
120 
124 #ifdef __cplusplus
125 } /* end extern 'C' */
126 #endif
127 
128 #endif /* _H_agt_sil_profile */
129 #endif // WITH_YCONTROL
NCX_AGT_TARG_RUNNING
@ NCX_AGT_TARG_RUNNING
target=running
Definition: ncxtypes.h:355
agt_make_int_leaf
val_value_t * agt_make_int_leaf(obj_template_t *parentobj, const xmlChar *leafname, int32 leafval, status_t *res)
make an int32 val_value_t struct for a specified leaf or leaf-list
Definition: agt_util.c:3721
agt_util.h
Utility Functions for NCX Server method routines.
val.h
Value Node Basic Support.
status_enum.h
global error status code enumerations
agt_sil_profile.h
Server SIL <agt-profile> message handler.
agt_sil_profile_make_value
val_value_t * agt_sil_profile_make_value(agt_profile_t *profile, obj_template_t *parent_obj, status_t *res)
Create a agt-profile container to send to a subsystem.
Definition: agt_sil_profile.c:92
NCX_AGT_START_NONE
@ NCX_AGT_START_NONE
not set
Definition: ncxtypes.h:364
AGT_ACM_MODEL_YUMA_NACM
@ AGT_ACM_MODEL_YUMA_NACM
YUMA NACM (obsolete, not supported)
Definition: agt.h:631
AGT_ACM_MODEL_EXTERNAL
@ AGT_ACM_MODEL_EXTERNAL
external ACM via yp_system library
Definition: agt.h:632
ncxconst.h
Contains NCX constants.
AGT_ACM_MODEL_NONE
@ AGT_ACM_MODEL_NONE
not set
Definition: agt.h:629
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
val_add_child
void val_add_child(val_value_t *child, val_value_t *parent)
Add a child (deprecated: use val_child_add instead)
Definition: val.c:8231
AGT_TM_NONE
@ AGT_TM_NONE
this value is used
Definition: agt.h:638
NCX_AGT_TARG_NONE
@ NCX_AGT_TARG_NONE
not set
Definition: ncxtypes.h:353
AGT_ACM_MODEL_IETF_NACM
@ AGT_ACM_MODEL_IETF_NACM
IETF NACM (default)
Definition: agt.h:630
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
NCX_AGT_TARG_CANDIDATE
@ NCX_AGT_TARG_CANDIDATE
target=candidate
Definition: ncxtypes.h:354
val_util.h
Value Node Utilities.
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
AGT_ACMOD_ENFORCING
@ AGT_ACMOD_ENFORCING
full enforcement
Definition: agt.h:609
agt.h
Multi-Protocol Network Management Server.
agt_make_leaf
val_value_t * agt_make_leaf(obj_template_t *parentobj, const xmlChar *leafname, const xmlChar *leafstrval, status_t *res)
make a string val_value_t struct for a specified leaf or leaf-list
Definition: agt_util.c:3683
AGT_MAX_PORTS
#define AGT_MAX_PORTS
maximum number of –port leaf-list values that will be saved
Definition: agt.h:188
NCX_AGT_START_MIRROR
@ NCX_AGT_START_MIRROR
with-startup=false
Definition: ncxtypes.h:365
ERR_NCX_NOT_FOUND
@ ERR_NCX_NOT_FOUND
225
Definition: status_enum.h:264
ncx_get_name_match_string
const xmlChar * ncx_get_name_match_string(ncx_name_match_t match)
Get the string for the ncx_name_match_t enum.
Definition: ncx.c:10649
agt_make_uint_leaf
val_value_t * agt_make_uint_leaf(obj_template_t *parentobj, const xmlChar *leafname, uint32 leafval, status_t *res)
make a uint32 val_value_t struct for a specified leaf or leaf-list
Definition: agt_util.c:3702
NCX_AGT_START_DISTINCT
@ NCX_AGT_START_DISTINCT
with-startup=true
Definition: ncxtypes.h:366
obj_find_child
obj_template_t * obj_find_child(obj_template_t *obj, const xmlChar *modname, const xmlChar *objname)
Find a child object with the specified Qname.
Definition: obj.c:6116
NCX_EL_AGT_ACCESS_CONTROL
#define NCX_EL_AGT_ACCESS_CONTROL
<agt-profile> message name strings
Definition: ncxconst.h:608
log.h
NCX System Logging Manager.
ncx_get_withdefaults_string
const xmlChar * ncx_get_withdefaults_string(ncx_withdefaults_t withdef)
Get the string for the specified enum value.
Definition: ncx.c:8810
AGT_ACMOD_NONE
@ AGT_ACMOD_NONE
not set
Definition: agt.h:608
AGT_TM_PRIVATE
@ AGT_TM_PRIVATE
private transactions
Definition: agt.h:640
val_new_value
val_value_t * val_new_value(void)
Malloc and initialize the fields in a val_value_t.
Definition: val.c:2697
ncx.h
YANG module utility functions.
obj.h
Data Object Support.
AGT_ACMOD_PERMISSIVE
@ AGT_ACMOD_PERMISSIVE
permissive mode, read + exec allowed
Definition: agt.h:610
val_init_from_template
void val_init_from_template(val_value_t *val, struct obj_template_t_ *obj)
Initialize a value node from its object template.
AGT_ACMOD_OFF
@ AGT_ACMOD_OFF
NACM completely off.
Definition: agt.h:612
AGT_TM_SHARED
@ AGT_TM_SHARED
shared transactions (only value supported)
Definition: agt.h:639
SET_ERROR
#define SET_ERROR(E)
macro SET_ERROR
Definition: status_enum.h:103
AGT_ACMOD_DISABLED
@ AGT_ACMOD_DISABLED
almost all access control turned off
Definition: agt.h:611
val_free_value
void val_free_value(val_value_t *val)
Scrub the memory in a val_value_t by freeing all the sub-fields and then freeing the entire struct it...
Definition: val.c:2842
status.h
Global error messages for status code enumerations.