Skip to content

Commit

Permalink
mgt_param: expose mcf_findpar
Browse files Browse the repository at this point in the history
  • Loading branch information
walid-git committed May 15, 2023
1 parent 6905b1d commit a142aff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/varnishd/mgt/mgt.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ enum mcf_which_e {
void MCF_ParamConf(enum mcf_which_e, const char *param, const char *, ...)
v_printflike_(3, 4);

struct parspec *MCF_FindPar(const char *name);

void MCF_ParamSet(struct cli *, const char *param, const char *val);
void MCF_ParamProtect(struct cli *, const char *arg);
void MCF_DumpRstParam(void);
Expand Down
6 changes: 6 additions & 0 deletions bin/varnishd/mgt/mgt_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,12 @@ MCF_ParamProtect(struct cli *cli, const char *args)

/*--------------------------------------------------------------------*/

struct parspec *
MCF_FindPar(const char *name)
{
return mcf_findpar(name);
}

void
MCF_ParamSet(struct cli *cli, const char *param, const char *val)
{
Expand Down

0 comments on commit a142aff

Please sign in to comment.