1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Allow to store an arbitrary pointer in the context.

Added assuan_write_status().
This commit is contained in:
Werner Koch 2001-11-19 12:40:30 +00:00
parent 2b2a800a77
commit f375790d24
4 changed files with 60 additions and 0 deletions

View file

@ -83,3 +83,16 @@ assuan_set_error (ASSUAN_CONTEXT ctx, int err, const char *text)
return err;
}
void
assuan_set_pointer (ASSUAN_CONTEXT ctx, void *pointer)
{
if (ctx)
ctx->user_pointer = pointer;
}
void *
assuan_get_pointer (ASSUAN_CONTEXT ctx)
{
return ctx? ctx->user_pointer : NULL;
}