diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-03-20 18:12:33 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-04-22 16:36:22 +0300 | 
| commit | 5b219644aeeff43521f0b5e7740a3cc841497955 (patch) | |
| tree | 8155def3b2a260bfeefa521613504fb9a7da234d /mgmtd/mgmt_be_adapter.h | |
| parent | 5c3e95d422d487249ee3c6405ac2cddfa69af394 (diff) | |
mgmtd: add backend xpath map for RPC
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_be_adapter.h')
| -rw-r--r-- | mgmtd/mgmt_be_adapter.h | 12 | 
1 files changed, 10 insertions, 2 deletions
diff --git a/mgmtd/mgmt_be_adapter.h b/mgmtd/mgmt_be_adapter.h index 491410aa15..c9f2ab1b7a 100644 --- a/mgmtd/mgmt_be_adapter.h +++ b/mgmtd/mgmt_be_adapter.h @@ -235,15 +235,23 @@ extern void mgmt_be_xpath_register_write(struct vty *vty);   */  extern int mgmt_be_send_native(enum mgmt_be_client_id id, void *msg); +enum mgmt_be_xpath_subscr_type { +	MGMT_BE_XPATH_SUBSCR_TYPE_CFG, +	MGMT_BE_XPATH_SUBSCR_TYPE_OPER, +	MGMT_BE_XPATH_SUBSCR_TYPE_NOTIF, +	MGMT_BE_XPATH_SUBSCR_TYPE_RPC, +}; +  /**   * Lookup the clients which are subscribed to a given `xpath`   * and the way they are subscribed.   *   * Args:   *     xpath - the xpath to check for subscription information. - *     config - true for config interest false for oper interest. + *     type - type of subscription to check for.   */ -extern uint64_t mgmt_be_interested_clients(const char *xpath, bool config); +extern uint64_t mgmt_be_interested_clients(const char *xpath, +					   enum mgmt_be_xpath_subscr_type type);  /**   * mgmt_fe_adapter_send_notify() - notify FE clients of a notification.  | 
