diff options
Diffstat (limited to 'lib/mgmt_fe_client.h')
| -rw-r--r-- | lib/mgmt_fe_client.h | 45 | 
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/mgmt_fe_client.h b/lib/mgmt_fe_client.h index eee4594e17..9d569348ae 100644 --- a/lib/mgmt_fe_client.h +++ b/lib/mgmt_fe_client.h @@ -114,6 +114,12 @@ struct mgmt_fe_client_cbs {  			       LYD_FORMAT result_type, void *result, size_t len,  			       int partial_error); +	/* Called when edit result is returned */ +	int (*edit_notify)(struct mgmt_fe_client *client, uintptr_t user_data, +			   uint64_t client_id, uint64_t session_id, +			   uintptr_t session_ctx, uint64_t req_id, +			   const char *xpath); +  	/* Called with asynchronous notifications from backends */  	int (*async_notification)(struct mgmt_fe_client *client,  				  uintptr_t user_data, uint64_t client_id, @@ -410,6 +416,45 @@ extern int mgmt_fe_send_get_data_req(struct mgmt_fe_client *client,  				     const char *xpath);  /* + * Send EDIT to MGMTD daemon. + * + * client + *    Client object. + * + * session_id + *    Client session ID. + * + * req_id + *    Client request ID. + * + * datastore + *    Datastore for editing. + * + * request_type + *    The LYD_FORMAT of the request. + * + * flags + *    Flags to control the behavior of the request. + * + * operation + *    NB_OP_* operation to perform. + * + * xpath + *    the xpath to edit. + * + * data + *    the data tree. + * + * Returns: + *    0 on success, otherwise msg_conn_send_msg() return values. + */ +extern int mgmt_fe_send_edit_req(struct mgmt_fe_client *client, +				 uint64_t session_id, uint64_t req_id, +				 uint8_t datastore, LYD_FORMAT request_type, +				 uint8_t flags, uint8_t operation, +				 const char *xpath, const char *data); + +/*   * Destroy library and cleanup everything.   */  extern void mgmt_fe_client_destroy(struct mgmt_fe_client *client);  | 
