BRL-CAD
plugin.h
Go to the documentation of this file.
1 /* P L U G I N . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2015 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file plugin.h
21  *
22  * Registration of GCV conversion plugins.
23  *
24  */
25 
26 
27 #ifndef PLUGIN_H
28 #define PLUGIN_H
29 
30 
31 #include "common.h"
32 
33 #include "gcv.h"
34 
35 
37 
38 
39 struct gcv_converter {
40  const char *file_extensions;
41  int (*reader_fn)(const char *path, struct rt_wdb *wdbp,
42  const struct gcv_opts *options);
43  int (*writer_fn)(const char *path, struct db_i *dbip,
44  const struct gcv_opts *options);
45 };
46 
47 
49  const struct gcv_converter *converters;
50 };
51 
52 
54 
55 
56 #endif
57 
58 
59 /*
60  * Local Variables:
61  * tab-width: 8
62  * mode: C
63  * indent-tabs-mode: t
64  * c-file-style: "stroustrup"
65  * End:
66  * ex: shiftwidth=4 tabstop=8
67  */
Definition: raytrace.h:800
Header file for the BRL-CAD common definitions.
Definition: gcv.c:8
int(* writer_fn)(const char *path, struct db_i *dbip, const struct gcv_opts *options)
Definition: plugin.h:43
int(* reader_fn)(const char *path, struct rt_wdb *wdbp, const struct gcv_opts *options)
Definition: plugin.h:41
#define __BEGIN_DECLS
Definition: common.h:73
char * options
Definition: gqa.c:56
const struct gcv_converter * converters
Definition: plugin.h:49
#define __END_DECLS
Definition: common.h:74
const char * file_extensions
Definition: plugin.h:40