}
assert(cp->cmd != NULL);
- cp->cmd(token_s, priv);
+ cp->cmd(token_s, priv, cmd);
}
}
{
for (; cmd->name != NULL; cmd++)
- cmd->cmd(NULL, NULL);
+ cmd->cmd(NULL, NULL, NULL);
}
/**********************************************************************
*/
static void
-cmd_test(char **av, void *priv)
+cmd_test(CMD_ARGS)
{
(void)priv;
+ (void)cmd;
if (av == NULL)
return;
*/
void
-cmd_delay(char **av, void *priv)
+cmd_delay(CMD_ARGS)
{
double f;
(void)priv;
+ (void)cmd;
if (av == NULL)
return;
AN(av[1]);
*/
void
-cmd_dump(char **av, void *priv)
+cmd_dump(CMD_ARGS)
{
+ (void)cmd;
if (av == NULL)
return;
printf("cmd_dump(%p)\n", priv);
}
static void
-cmd_http_expect(char **av, void *priv)
+cmd_http_expect(CMD_ARGS)
{
struct http *hp;
char *lhs;
char *cmp;
char *rhs;
+ (void)cmd;
CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
assert(!strcmp(av[0], "expect"));
av++;
*/
static void
-cmd_http_rxresp(char **av, void *priv)
+cmd_http_rxresp(CMD_ARGS)
{
struct http *hp;
+ (void)cmd;
CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
AN(hp->client);
assert(!strcmp(av[0], "rxresp"));
*/
static void
-cmd_http_txresp(char **av, void *priv)
+cmd_http_txresp(CMD_ARGS)
{
struct http *hp;
struct vsb *vsb;
const char *nl = "\r\n";
int l;
+ (void)cmd;
CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
AZ(hp->client);
assert(!strcmp(av[0], "txresp"));
*/
static void
-cmd_http_rxreq(char **av, void *priv)
+cmd_http_rxreq(CMD_ARGS)
{
struct http *hp;
+ (void)cmd;
CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
AZ(hp->client);
assert(!strcmp(av[0], "rxreq"));
*/
static void
-cmd_http_txreq(char **av, void *priv)
+cmd_http_txreq(CMD_ARGS)
{
struct http *hp;
struct vsb *vsb;
const char *nl = "\r\n";
int l;
+ (void)cmd;
CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
AN(hp->client);
assert(!strcmp(av[0], "txreq"));