diff options
| author | Christian Hopps <chopps@labn.net> | 2023-07-08 23:11:15 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-11-06 17:44:58 -0500 | 
| commit | a65cda16b28bc84b052636118823082de9600cfc (patch) | |
| tree | 975a1abb64919cc9a9c201b8c50ef7602bd72483 /lib/mgmt_be_client.c | |
| parent | e1b2381f40132650f1c0a2285432c0d00aef7383 (diff) | |
mgmtd: simplify xpath registries
- move from client id indexed array of uints for register info
  per client to a u64 bitmask.
- add bit walking FOREACH macro
Walk the client IDs whose bits are set in a mask.
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
| -rw-r--r-- | lib/mgmt_be_client.c | 7 | 
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c index be10dcf6a1..762ace1361 100644 --- a/lib/mgmt_be_client.c +++ b/lib/mgmt_be_client.c @@ -118,13 +118,6 @@ struct mgmt_be_client {  struct debug mgmt_dbg_be_client = {0, "Management backend client operations"}; -const char *mgmt_be_client_names[MGMTD_BE_CLIENT_ID_MAX + 1] = { -#ifdef HAVE_STATICD -	[MGMTD_BE_CLIENT_ID_STATICD] = "staticd", -#endif -	[MGMTD_BE_CLIENT_ID_MAX] = "Unknown/Invalid", -}; -  static int mgmt_be_client_send_msg(struct mgmt_be_client *client_ctx,  				   Mgmtd__BeMessage *be_msg)  {  | 
