Get string from AtomFeed
[cascardo/atompub.git] / src / ctx.c
index 73f17fc..e9d940b 100644 (file)
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -23,7 +23,7 @@
 
 struct _atom_ctx
 {
-  GError *error;
+  AtomError *error;
   gpointer config_data;
   AtomBackend *backend;
 };
@@ -43,21 +43,21 @@ void
 atom_ctx_delete (AtomCtx *ctx)
 {
   if (ctx->error)
-    g_error_free (ctx->error);
+    atom_error_delete (ctx->error);
   if (ctx->backend)
     atom_backend_delete (ctx->backend);
   g_slice_free (AtomCtx, ctx);
 }
 
 void
-atom_error_set (AtomCtx *ctx, GError *error)
+atom_error_set (AtomCtx *ctx, AtomError *error)
 {
   if (ctx->error)
-    g_error_free (ctx->error);
+    atom_error_delete (ctx->error);
   ctx->error = error;
 }
 
-GError *
+AtomError *
 atom_error_get (AtomCtx *ctx)
 {
   return ctx->error;