1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Adjust for assuan_register_command change.

This commit is contained in:
Werner Koch 2009-11-04 10:06:38 +00:00
parent 717c38381a
commit 8e8368b00e
10 changed files with 39 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2009-11-04 Werner Koch <wk@g10code.com>
* command.c (register_commands): Add NULL arg to
assuan_register_command.
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
* command.c (reset_notify): Take LINE arg and return error.

View File

@ -1865,7 +1865,7 @@ register_commands (assuan_context_t ctx)
for (i=0; table[i].name; i++)
{
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
if (rc)
return rc;
}

View File

@ -1,3 +1,8 @@
2009-11-04 Werner Koch <wk@g10code.com>
* server.c (register_commands): Add NULL arg to
assuan_register_command.
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
* server.c (reset_notify, input_notify, output_notify): Update to

View File

@ -634,7 +634,7 @@ register_commands (assuan_context_t ctx)
for (i=0; table[i].name; i++)
{
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
if (rc)
return rc;
}

View File

@ -1,2 +1,4 @@
2009-11-04 Werner Koch <wk@g10code.com>
Under initial development - no need for a ChangeLog.

View File

@ -212,6 +212,15 @@ reset_notify (assuan_context_t ctx, char *line)
further commands. The filename is reset with the RESET command,
another OPEN or the CREATE command.
*/
static const char hlp_open[] =
"OPEN [<options>] <filename>\n"
"\n"
"Open the container FILENAME. FILENAME must be percent-plus\n"
"escaped. A quick check to see whether this is a suitable G13\n"
"container file is done. However no cryptographic check or any\n"
"other check is done. This command is used to define the target for\n"
"further commands. The filename is reset with the RESET command,\n"
"another OPEN or the CREATE command.";
static gpg_error_t
cmd_open (assuan_context_t ctx, char *line)
{
@ -543,8 +552,9 @@ register_commands (assuan_context_t ctx)
static struct {
const char *name;
assuan_handler_t handler;
const char * const help;
} table[] = {
{ "OPEN", cmd_open },
{ "OPEN", cmd_open, hlp_open },
{ "MOUNT", cmd_mount },
{ "UMOUNT", cmd_umount },
{ "RECIPIENT", cmd_recipient },
@ -560,7 +570,8 @@ register_commands (assuan_context_t ctx)
for (i=0; table[i].name; i++)
{
err = assuan_register_command (ctx, table[i].name, table[i].handler);
err = assuan_register_command (ctx, table[i].name, table[i].handler,
table[i].help);
if (err)
return err;
}

View File

@ -1,3 +1,8 @@
2009-11-04 Werner Koch <wk@g10code.com>
* command.c (register_commands): Add NULL arg to
assuan_register_command.
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
* command.c (reset_notify): Take LINE arg and return error.

View File

@ -1879,7 +1879,7 @@ register_commands (assuan_context_t ctx)
for (i=0; table[i].name; i++)
{
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
if (rc)
return rc;
}

View File

@ -1,3 +1,8 @@
2009-11-04 Werner Koch <wk@g10code.com>
* server.c (register_commands): Add NULL arg to
assuan_register_command.
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
* server.c (reset_notify, input_notify, output_notify): Update to

View File

@ -1132,7 +1132,7 @@ register_commands (assuan_context_t ctx)
for (i=0; table[i].name; i++)
{
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
if (rc)
return rc;
}