/* * control.c * * Common control structure * * (c) 2007 Thomas White * * dtr - Diffraction Tomography Reconstruction * */ #include #include #include #include "control.h" #include "image.h" ControlContext *control_ctx_new() { ControlContext *ctx; ctx = malloc(sizeof(ControlContext)); ctx->x_centre = 0; ctx->y_centre = 0; ctx->have_centres = 0; ctx->cell = NULL; ctx->dirax = NULL; ctx->images = image_list_new(); return ctx; }