Skip to content

Commit cb0883f

Browse files
committed
broker: move module handlers into modhash.c
Problem: the message handlers for managing modules are in the huge broker.c, which makes them tricky to follow. Move module message handlers over to modhash.c and register them under the "module" service name: broker.insmod -> module.load broker.rmmod -> module.remove broker.lsmod -> module.list broker.module-status -> module.status broker.module-debug -> module.debug Other than the service name change and the source relocation, there are no substantive code changes in this commit. Update users and tests.
1 parent 79bd0b0 commit cb0883f

File tree

10 files changed

+555
-512
lines changed

10 files changed

+555
-512
lines changed

src/broker/broker.c

Lines changed: 16 additions & 476 deletions
Large diffs are not rendered by default.

src/broker/broker.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ struct broker {
6161

6262
typedef struct broker broker_ctx_t;
6363

64+
int broker_event_sendmsg_new (broker_ctx_t *ctx, flux_msg_t **msg);
65+
int broker_response_sendmsg_new (broker_ctx_t *ctx, flux_msg_t **msg);
66+
void broker_request_sendmsg_new (broker_ctx_t *ctx, flux_msg_t **msg);
67+
6468
#endif /* !_BROKER_H */
6569

6670
/*

0 commit comments

Comments
 (0)