~sircmpwn/visurf-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] nsvi: add bind command

Details
Message ID
<20210914164356.11724-1-ecs@d2evs.net>
DKIM signature
pass
Download raw message
Patch: +12 -0
---
 frontends/visurf/commands.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/frontends/visurf/commands.c b/frontends/visurf/commands.c
index f6a6bc0a6..06a202cef 100644
--- a/frontends/visurf/commands.c
+++ b/frontends/visurf/commands.c
@@ -50,6 +50,17 @@ cmd_back(struct nsvi_state *state, int argc, char *argv[])
	return 0;
}

static int
cmd_bind(struct nsvi_state *state, int argc, char *argv[])
{
	if (argc != 3) {
		NSLOG(netsurf, ERROR, "bind: incorrect number of arguments");
		return 1;
	}
	nsvi_bindings_new(&state->bindings, argv[1], argv[2]);
	return 0;
}

static int
cmd_close(struct nsvi_state *state, int argc, char *argv[])
{
@@ -450,6 +461,7 @@ struct command {
// Alpha sorted
static const struct command commands[] = {
	{ "back", &cmd_back },
	{ "bind", &cmd_bind },
	{ "close", &cmd_close },
	{ "exline", &cmd_exline },
	{ "forward", &cmd_forward },
-- 
2.33.0
Details
Message ID
<CE9TWJ7KLBS2.3NZXFZ532WIHW@taiga>
In-Reply-To
<20210914164356.11724-1-ecs@d2evs.net> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
Thanks!

To git@git.sr.ht:~sircmpwn/visurf
   b5a873d37..0009eafc5  master -> master
Reply to thread Export thread (mbox)