Skip to content

Commit

Permalink
gflags: Allow functions to be called from any route
Browse files Browse the repository at this point in the history
Reported by Jeff Pyle

(cherry picked from commit eb5a900)
  • Loading branch information
liviuchircu committed Sep 23, 2020
1 parent c5ef382 commit 88f89e9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions modules/gflags/gflags.c
Expand Up @@ -84,15 +84,11 @@ static unsigned int *gflags=0;

static cmd_export_t cmds[]={
{"set_gflag", (cmd_function)set_gflag, {
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}},
REQUEST_ROUTE|FAILURE_ROUTE|ONREPLY_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE|
STARTUP_ROUTE|TIMER_ROUTE|EVENT_ROUTE},
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}}, ALL_ROUTES},
{"reset_gflag", (cmd_function)reset_gflag, {
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}},
REQUEST_ROUTE},
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}}, ALL_ROUTES},
{"is_gflag", (cmd_function)is_gflag, {
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}},
REQUEST_ROUTE},
{CMD_PARAM_INT, fixup_gflags, 0}, {0,0,0}}, ALL_ROUTES},
{0,0,{{0,0,0}},0}
};

Expand Down

0 comments on commit 88f89e9

Please sign in to comment.