File: plotxxx.c

package info (click to toggle)
astrometry.net 0.98%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,428 kB
  • sloc: ansic: 165,791; python: 18,438; makefile: 1,560; sh: 157; cpp: 78; pascal: 67; awk: 56; perl: 9
file content (47 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 # This file is part of the Astrometry.net suite.
 # Licensed under a 3-clause BSD style license - see LICENSE
 */
#include <string.h>
#include <math.h>

#include "plotxxx.h"
#include "cairoutils.h"
#include "ioutils.h"
#include "log.h"
#include "errors.h"

DEFINE_PLOTTER(xxx);

plotxxx_t* plot_xxx_get(plot_args_t* pargs) {
    return plotstuff_get_config(pargs, "xxx");
}

void* plot_xxx_init(plot_args_t* plotargs) {
    plotxxx_t* args = calloc(1, sizeof(plotxxx_t));
    return args;
}

int plot_xxx_plot(const char* command,
                  cairo_t* cairo, plot_args_t* pargs, void* baton) {
    plotxxx_t* args = (plotxxx_t*)baton;
    return 0;
}

int plot_xxx_command(const char* cmd, const char* cmdargs,
                     plot_args_t* pargs, void* baton) {
    plotxxx_t* args = (plotxxx_t*)baton;
    if (streq(cmd, "xxx_file")) {
        //plot_image_set_filename(args, cmdargs);
    } else {
        ERROR("Did not understand command \"%s\"", cmd);
        return -1;
    }
    return 0;
}

void plot_xxx_free(plot_args_t* plotargs, void* baton) {
    plotxxx_t* args = (plotxxx_t*)baton;
    free(args);
}