/ src / tle-tools.h
tle-tools.h
 1  /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 2  /*
 3      Gpredict: Real-time satellite tracking and orbit prediction program
 4  
 5      Copyright (C)  2001-2009  Alexandru Csete, OZ9AEC.
 6  
 7      Authors: Alexandru Csete <oz9aec@gmail.com>
 8  
 9      Comments, questions and bugreports should be submitted via
10      http://sourceforge.net/projects/gpredict/
11      More details can be found at the project home page:
12  
13              http://gpredict.oz9aec.net/
14   
15      This program is free software; you can redistribute it and/or modify
16      it under the terms of the GNU General Public License as published by
17      the Free Software Foundation; either version 2 of the License, or
18      (at your option) any later version.
19    
20      This program is distributed in the hope that it will be useful,
21      but WITHOUT ANY WARRANTY; without even the implied warranty of
22      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23      GNU General Public License for more details.
24    
25      You should have received a copy of the GNU General Public License
26      along with this program; if not, visit http://www.fsf.org/
27  */
28  #ifndef TLE_TOOLS_H
29  #define TLE_TOOLS_H 1
30  
31  #include <glib.h>
32  #include "sgpsdp/sgp4sdp4.h"
33  //#include "gtk-sat-data.h"
34  
35  
36  enum {
37       TLE_CONV_SUCCESS = 0,
38       TLE_CONV_ERROR
39  };
40  
41  
42  
43  gint twoline2tle (gchar *line1, gchar *line2, gchar *line3,
44                        gboolean checksum, tle_t *tle);
45  
46  gint tle2twoline (tle_t *tle, gchar *line1, gchar *line2, gchar *line3);
47  
48  
49  #endif