projects
/
cascardo
/
atompub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Get context error support.
[cascardo/atompub.git]
/
src
/
ctx.c
diff --git
a/src/ctx.c
b/src/ctx.c
index
9b81a3b
..
7289ab3
100644
(file)
--- a/
src/ctx.c
+++ b/
src/ctx.c
@@
-40,9
+40,17
@@
atom_ctx_new ()
void
atom_error_set (AtomCtx *ctx, GError *error)
{
+ if (ctx->error)
+ g_error_free (ctx->error);
ctx->error = error;
}
+GError *
+atom_error_get (AtomCtx *ctx)
+{
+ return ctx->error;
+}
+
void *
atom_config_data (AtomCtx *ctx)
{