12#ifndef _H_ycontrol_msg_cmn
13#define _H_ycontrol_msg_cmn
53#ifndef _H_ycontrol_types
66#define YCONTROL_SEND_FAILED (const xmlChar *)"send failed"
106extern const xmlChar *
138 const xmlChar *subsys_id,
142 const xmlChar *service_id,
161 const xmlChar *server_id,
162 const xmlChar *subsys_id,
163 const xmlChar *service_id);
195 const xmlChar *errstr,
210 const xmlChar *errstr);
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_cmn_reuse_error(val_value_t *error_val, status_t res, const xmlChar *errstr)
Reuse an error message value struct and replace only changing fields.
Definition: ycontrol_msg_cmn.c:439
status_t ycontrol_msg_cmn_new_ok(obj_template_t *msgobj, val_value_t **ret_ok)
Create a new YControl OK response message.
Definition: ycontrol_msg_cmn.c:476
status_t ycontrol_msg_cmn_new_payload(obj_template_t *msgobj, val_value_t **ret_payload)
Create a new payload value for the message object.
Definition: ycontrol_msg_cmn.c:337
ycontrol_msgtype_t ycontrol_msg_cmn_get_msgtype_enum(val_value_t *msgval, status_t *res)
Get the message type enumeration from the message.
Definition: ycontrol_msg_cmn.c:113
const xmlChar * ycontrol_msg_cmn_get_msgtype(ycontrol_msgtype_t msgtype)
Get the string for the message type enumeration.
Definition: ycontrol_msg_cmn.c:74
status_t ycontrol_msg_cmn_new(const xmlChar *server_id, const xmlChar *subsys_id, obj_template_t *msgobj, uint32 msgid, ycontrol_msgtype_t msgtype, const xmlChar *service_id, val_value_t **ret_msgval)
Create a new YControl message.
Definition: ycontrol_msg_cmn.c:152
status_t ycontrol_msg_cmn_reuse(val_value_t *msgval, uint32 msgid, ycontrol_msgtype_t msgtype, const xmlChar *server_id, const xmlChar *subsys_id, const xmlChar *service_id)
Reuse a message value struct and replace only changing fields.
Definition: ycontrol_msg_cmn.c:264
status_t ycontrol_msg_cmn_new_error(obj_template_t *msgobj, status_t res, const xmlChar *errstr, val_value_t **ret_error)
Create a new YControl error response message.
Definition: ycontrol_msg_cmn.c:371
global error status code enumerations
One YANG data-def-stmt.
Definition: obj.h:1229
one value to match one type
Definition: val.h:912
Value Node Basic Support.
Some YControl data types.