yumapro  20.10-12
YumaPro SDK
ncx_owner.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 - 2021, YumaWorks, Inc., All Rights Reserved.
3  *
4  * Unless required by applicable law or agreed to in writing,
5  * software distributed under the License is distributed on an
6  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7  * KIND, either express or implied. See the License for the
8  * specific language governing permissions and limitations
9  * under the License.
10  */
11 #ifndef _H_ncx_owner
12 #define _H_ncx_owner
13 
14 /* FILE: ncx_owner.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
26 /*********************************************************************
27 * *
28 * C H A N G E H I S T O R Y *
29 * *
30 *********************************************************************
31 
32 date init comment
33 ----------------------------------------------------------------------
34 20apr20 am Moved from ncx_owner
35 
36 */
37 
38 #include <xmlstring.h>
39 
40 #ifndef _H_ncxtypes
41 #include "ncxtypes.h"
42 #endif
43 
44 #ifndef _H_status
45 #include "status.h"
46 #endif
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52 /********************************************************************
53 * *
54 * C O N S T A N T S *
55 * *
56 *********************************************************************/
57 
58 
59 /********************************************************************
60 * *
61 * T Y P E S *
62 * *
63 *********************************************************************/
64 
65 
66 /********************************************************************
67 * *
68 * F U N C T I O N S *
69 * *
70 *********************************************************************/
71 
85 extern void
86  ncx_owner_init (void);
87 
88 
93 extern void
94  ncx_owner_cleanup (void);
95 
96 
105 extern status_t
106  ncx_owner_store_name (const xmlChar *name,
107  ncx_owner_id_t *id);
108 
109 
116 extern const xmlChar *
118 
119 
123 #ifdef __cplusplus
124 } /* end extern 'C' */
125 #endif
126 
127 #endif /* _H_ncx_owner */
ncx_owner_store_name
status_t ncx_owner_store_name(const xmlChar *name, ncx_owner_id_t *id)
Add an owner name to the registry; return the ID,.
Definition: ncx_owner.c:173
xml_strdup
xmlChar * xml_strdup(const xmlChar *copyFrom)
String duplicate for xmlChar.
Definition: xml_util.c:1553
ncx_owner_id_t
uint8 ncx_owner_id_t
used as index into the agt_owner registry
Definition: ncxtypes.h:1261
ncx_owner_get_name
const xmlChar * ncx_owner_get_name(ncx_owner_id_t id)
Find an owner name to the registry.
Definition: ncx_owner.c:213
ncx_owner_cleanup
void ncx_owner_cleanup(void)
Cleanup the Owner registry.
Definition: ncx_owner.c:142
status_enum.h
global error status code enumerations
ERR_TOO_MANY_ENTRIES
@ ERR_TOO_MANY_ENTRIES
012
Definition: status_enum.h:202
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
ncx_owner_init
void ncx_owner_init(void)
Initialize the Owner registry.
Definition: ncx_owner.c:122
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
ncxtypes.h
YANG module data structures Many internal representations of YANG module constructs.
ncx_register_get_owner_fn
void ncx_register_get_owner_fn(ncx_get_owner_fn_t cbfn)
Register a callback to get the owner name.
Definition: ncx.c:12600
ncx.h
YANG module utility functions.
ncx_owner.h
NETCONF Server owner registry for NMDA support.
status.h
Global error messages for status code enumerations.