summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_be_adapter.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-03-08 23:11:43 +0100
committerChristian Hopps <chopps@gmail.com>2023-03-22 06:22:56 +0100
commitf82370b47bddb214d53ffb94775805d637300e9b (patch)
treeeaec8f2525caf8071f724d6076fcc2b68759f842 /mgmtd/mgmt_be_adapter.h
parentlib: new message library for mgmtd client and adapters (diff)
downloadfrr-f82370b47bddb214d53ffb94775805d637300e9b.tar.xz
frr-f82370b47bddb214d53ffb94775805d637300e9b.zip
mgmtd: lib: utilize msglib constructed from the removed code
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_be_adapter.h')
-rw-r--r--mgmtd/mgmt_be_adapter.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/mgmtd/mgmt_be_adapter.h b/mgmtd/mgmt_be_adapter.h
index 5dfc2386d..7f57233d3 100644
--- a/mgmtd/mgmt_be_adapter.h
+++ b/mgmtd/mgmt_be_adapter.h
@@ -9,8 +9,9 @@
#ifndef _FRR_MGMTD_BE_ADAPTER_H_
#define _FRR_MGMTD_BE_ADAPTER_H_
-#include "mgmtd/mgmt_defines.h"
#include "mgmt_be_client.h"
+#include "mgmt_msg.h"
+#include "mgmtd/mgmt_defines.h"
#include "mgmtd/mgmt_ds.h"
#define MGMTD_BE_CONN_INIT_DELAY_MSEC 50
@@ -54,22 +55,9 @@ struct mgmt_be_client_adapter {
char xpath_reg[MGMTD_MAX_NUM_XPATH_REG][MGMTD_MAX_XPATH_LEN];
/* IO streams for read and write */
- /* pthread_mutex_t ibuf_mtx; */
- struct stream_fifo *ibuf_fifo;
- /* pthread_mutex_t obuf_mtx; */
- struct stream_fifo *obuf_fifo;
-
- /* Private I/O buffers */
- struct stream *ibuf_work;
- struct stream *obuf_work;
- uint8_t msg_buf[MGMTD_BE_MSG_MAX_LEN];
-
- /* Buffer of data waiting to be written to client. */
- /* struct buffer *wb; */
+ struct mgmt_msg_state mstate;
int refcount;
- uint32_t num_msg_tx;
- uint32_t num_msg_rx;
/*
* List of config items that should be sent to the