Fix:core:Made command.h c++ friendly
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 30 Mar 2010 11:57:33 +0000 (11:57 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 30 Mar 2010 11:57:33 +0000 (11:57 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3103 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/command.h

index 78b5214..bf86e2e 100644 (file)
@@ -1,3 +1,28 @@
+/**
+ * Navit, a modular navigation system.
+ * Copyright (C) 2005-2010 Navit Team
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA  02110-1301, USA.
+ */
+
+#ifndef NAVIT_COMMAND_H
+#define NAVIT_COMMAND_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct command_table {
        char *command;
@@ -26,3 +51,8 @@ int command_saved_error(struct command_saved *cs);
 struct command_saved *command_saved_new(char *command, struct navit *navit, struct callback *cb);
 void command_saved_destroy(struct command_saved *cs);
 /* end of prototypes */
+#ifdef __cplusplus
+}
+#endif
+
+ #endif /* NAVIT_COMMAND_H */