f9f0df8aa014f020ad1fd047f9ccc2079b1d8d12
[alexxy/gromacs.git] / include / vmdio.h
1 /* -*- mode: c; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; c-file-style: "stroustrup"; -*-
2  *
3  * 
4  * This file is part of Gromacs        Copyright (c) 1991-2008
5  * David van der Spoel, Erik Lindahl, Berk Hess, University of Groningen.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * To help us fund GROMACS development, we humbly ask that you cite
13  * the research papers on the package. Check out http://www.gromacs.org
14  * 
15  * And Hey:
16  * Gnomes, ROck Monsters And Chili Sauce
17  */
18
19 #ifndef VMDIO_H_
20 #define VMDIO_H_
21
22 #include "molfile_plugin.h"
23 #include "types/simple.h"
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 struct trxframe;
30
31 typedef struct 
32 {
33     molfile_plugin_t *api;
34     const char* filetype;
35     void* handle;
36     bool bV;
37 } t_gmxvmdplugin;
38     
39 int read_first_vmd_frame(int  *status,const char *fn, struct trxframe *fr,int flags);
40 bool read_next_vmd_frame(int status,struct trxframe *fr);
41 int load_vmd_library(const char *fn, t_gmxvmdplugin *vmdplugin);
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif /* VMDIO_H_ */