summaryrefslogtreecommitdiff
path: root/lib/mgmt_fe_client.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-01-15 07:03:34 -0500
committerGitHub <noreply@github.com>2024-01-15 07:03:34 -0500
commitf2bb6874268b271e49ca2acdc5dba5efd2b0b697 (patch)
treef44cc26dec9896b45d2a3c4139b1ea30fd2f3e75 /lib/mgmt_fe_client.h
parentbd9174f424bd33e75895160aa1f4a63dae795460 (diff)
parent2764344bcbd37c5ea69231d6e51ba9cd58edbb44 (diff)
Merge pull request #15154 from idryzhov/mgmt-get-data
mgmtd get-data request expansion
Diffstat (limited to 'lib/mgmt_fe_client.h')
-rw-r--r--lib/mgmt_fe_client.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/mgmt_fe_client.h b/lib/mgmt_fe_client.h
index f3292d18fd..3abe29b1cf 100644
--- a/lib/mgmt_fe_client.h
+++ b/lib/mgmt_fe_client.h
@@ -15,6 +15,7 @@ extern "C" {
#include "mgmt_pb.h"
#include "frrevent.h"
#include "mgmt_defines.h"
+#include "mgmt_msg_native.h"
/***************************************************************
* Macros
@@ -367,7 +368,7 @@ extern int mgmt_fe_send_regnotify_req(struct mgmt_fe_client *client,
int num_reqs);
/*
- * Send GET-TREE to MGMTD daemon.
+ * Send GET-DATA to MGMTD daemon.
*
* client
* Client object.
@@ -381,15 +382,19 @@ extern int mgmt_fe_send_regnotify_req(struct mgmt_fe_client *client,
* result_type
* The LYD_FORMAT of the result.
*
+ * flags
+ * Flags to control the behavior of the request.
+ *
* xpath
* the xpath to get.
*
* Returns:
* 0 on success, otherwise msg_conn_send_msg() return values.
*/
-extern int mgmt_fe_send_get_tree_req(struct mgmt_fe_client *client,
+extern int mgmt_fe_send_get_data_req(struct mgmt_fe_client *client,
uint64_t session_id, uint64_t req_id,
- LYD_FORMAT result_type, const char *xpath);
+ LYD_FORMAT result_type, uint8_t flags,
+ const char *xpath);
/*
* Destroy library and cleanup everything.