AtomError *error;
gpointer config_data;
AtomBackend *backend;
+ AtomFrontend *frontend;
GHashTable *bemap;
};
ctx->error = NULL;
ctx->config_data = NULL;
ctx->backend = NULL;
+ ctx->frontend = NULL;
ctx->bemap = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, g_free);
return ctx;
atom_error_delete (ctx->error);
if (ctx->backend)
atom_backend_delete (ctx->backend);
+ if (ctx->frontend)
+ atom_frontend_delete (ctx->frontend);
if (ctx->bemap)
g_hash_table_destroy (ctx->bemap);
g_slice_free (AtomCtx, ctx);
ctx->backend = backend;
}
+AtomFrontend *
+atom_frontend (AtomCtx *ctx)
+{
+ return ctx->frontend;
+}
+
+void
+atom_frontend_set (AtomCtx *ctx, AtomFrontend *frontend)
+{
+ ctx->frontend = frontend;
+}
+
void
atom_map_backend_requests (AtomCtx *ctx, char **reqs,
AtomEntry **entries, size_t len)