]> git.mxchange.org Git - flightgear.git/blobdiff - Cockpit/cockpit.h
C++ - ifing the code a bit.
[flightgear.git] / Cockpit / cockpit.h
index 90d992f4a1832d61261598515f1e2d2621cc70b2..abcfc2a668c3489c2b6a6ead0d497366ef94ba4d 100644 (file)
  **************************************************************************/
  
 
-#include "hud.h"
+#ifndef _COCKPIT_H
+#define _COCKPIT_H
+
+
+#include <Cockpit/hud.h>
+
+
+#ifdef __cplusplus                                                          
+extern "C" {                            
+#endif                                   
 
 
 // And in the future (near future i hope).
-// #include "panel.h"
+// #include <Cockpit/panel.h>
 
-struct COCKPIT {
+typedef struct  {
        int code;
        Hptr hud;
        // As above.
        // PANEL *panel;
        int status;
-};
+}fgCOCKPIT, *pfgCockpit;
+
+fgCOCKPIT *fgCockpitInit( fgAIRCRAFT *cur_aircraft );
+void fgCockpitUpdate( void );
+
+
+#ifdef __cplusplus
+}
+#endif
+
 
-struct COCKPIT *fgCockpitInit( struct AIRCRAFT cur_aircraft );
-void fgCockpitUpdate();
+#endif /* _COCKPIT_H */
 
 
 /* $Log$
-/* Revision 1.1  1997/08/29 18:03:21  curt
-/* Initial revision.
+/* Revision 1.8  1998/04/22 13:26:19  curt
+/* C++ - ifing the code a bit.
 /*
+ * Revision 1.7  1998/04/21 17:02:34  curt
+ * Prepairing for C++ integration.
+ *
+ * Revision 1.6  1998/02/07 15:29:33  curt
+ * Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
+ * <chotchkiss@namg.us.anritsu.com>
+ *
+ * Revision 1.5  1998/01/22 02:59:29  curt
+ * Changed #ifdef FILE_H to #ifdef _FILE_H
+ *
+ * Revision 1.4  1998/01/19 19:27:01  curt
+ * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+ * This should simplify things tremendously.
+ *
+ * Revision 1.3  1998/01/19 18:40:19  curt
+ * Tons of little changes to clean up the code and to remove fatal errors
+ * when building with the c++ compiler.
+ *
+ * Revision 1.2  1997/12/10 22:37:39  curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
+ * Revision 1.1  1997/08/29 18:03:21  curt
+ * Initial revision.
+ *
  */