yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
ycontrol_msg.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#ifndef _H_ycontrol_msg
13#define _H_ycontrol_msg
14
15/* FILE: ycontrol_msg.h
16*********************************************************************
17* *
18* P U R P O S E *
19* *
20*********************************************************************/
21
28/*********************************************************************
29* *
30* C H A N G E H I S T O R Y *
31* *
32*********************************************************************
33
34date init comment
35----------------------------------------------------------------------
3608-apr-14 abb Begun
37*/
38
39#ifndef _H_status_enum
40#include "status_enum.h"
41#endif
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47/********************************************************************
48* *
49* C O N S T A N T S *
50* *
51*********************************************************************/
52
53
54/********************************************************************
55* *
56* T Y P E S *
57* *
58*********************************************************************/
59
60
61
79/********************************************************************
80* *
81* F U N C T I O N S *
82* *
83*********************************************************************/
84
85
102extern status_t
104 const xmlChar *service_id,
105 uint32 *msgid,
106 ycontrol_msgtype_t msgtype,
107 val_value_t *service_payload,
108 status_t msg_status);
109
110
131extern status_t
133 const xmlChar *service_id,
134 uint32 *msgid,
135 ycontrol_msgtype_t msgtype,
136 val_value_t *service_payload,
137 status_t msg_status,
138 uint32 error_index,
139 const xmlChar *error_msg,
140 boolean with_ywattrs,
141 const xmlChar *txid_str);
142
143
166extern status_t
168 const xmlChar *service_id,
169 uint32 *msgid,
170 ycontrol_msgtype_t msgtype,
171 val_value_t *service_payload,
172 status_t msg_status,
173 uint32 error_index,
174 const xmlChar *error_msg,
175 boolean with_ywattrs,
176 boolean with_origin,
177 const xmlChar *txid_str);
178
179
187extern obj_template_t *
189 const xmlChar *service_name);
190
191
195#ifdef __cplusplus
196} /* end extern 'C' */
197#endif
198
199#endif /* _H_ycontrol_msg */
status_t
global error return code
Definition: status_enum.h:210
ycontrol_msgtype_t
ycontrol message type
Definition: ycontrol_types.h:60
status_t ycontrol_msg_send_ex2(ycontrol_profile_t *profile, const xmlChar *service_id, uint32 *msgid, ycontrol_msgtype_t msgtype, val_value_t *service_payload, status_t msg_status, uint32 error_index, const xmlChar *error_msg, boolean with_ywattrs, boolean with_origin, const xmlChar *txid_str)
Send a YControl message (extended2)
Definition: ycontrol_msg.c:448
status_t ycontrol_msg_send_ex(ycontrol_profile_t *profile, const xmlChar *service_id, uint32 *msgid, ycontrol_msgtype_t msgtype, val_value_t *service_payload, status_t msg_status, uint32 error_index, const xmlChar *error_msg, boolean with_ywattrs, const xmlChar *txid_str)
Send a YControl message (extended)
Definition: ycontrol_msg.c:399
status_t ycontrol_msg_send(ycontrol_profile_t *profile, const xmlChar *service_id, uint32 *msgid, ycontrol_msgtype_t msgtype, val_value_t *service_payload, status_t msg_status)
Send a YControl message.
Definition: ycontrol_msg.c:357
obj_template_t * ycontrol_msg_get_service_object(ycontrol_profile_t *profile, const xmlChar *service_name)
Get the service object from the payload container.
Definition: ycontrol_msg.c:654
global error status code enumerations
One YANG data-def-stmt.
Definition: obj.h:1229
one value to match one type
Definition: val.h:912
control block for 1 ycontrol manager (only 1 used)
Definition: ycontrol.h:294