"Fossies" - the Fresh Open Source Software Archive

Member "navit-0.5.6/navit/map/csv/csv.h" (6 Mar 2021, 1967 Bytes) of package /linux/privat/navit-0.5.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "csv.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 0.5.5_vs_0.5.6.

    1 /**
    2  * Navit, a modular navigation system.
    3  * Copyright (C) 2005-2008 Navit Team
    4  *
    5  * This program is free software; you can redistribute it and/or
    6  * modify it under the terms of the GNU General Public License
    7  * version 2 as published by the Free Software Foundation.
    8  *
    9  * This program is distributed in the hope that it will be useful,
   10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12  * GNU General Public License for more details.
   13  *
   14  * You should have received a copy of the GNU General Public License
   15  * along with this program; if not, write to the
   16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
   17  * Boston, MA  02110-1301, USA.
   18  */
   19 
   20 #include <stdio.h>
   21 #include <glib.h>
   22 
   23 #include "attr.h"
   24 #include "coord.h"
   25 #include "quadtree.h"
   26 
   27 
   28 struct map_priv {
   29     int id;
   30     struct quadtree_node* tree_root; /**< Root of the quadtree from which items can be retrieved by their coordinates */
   31     int flags;
   32     GHashTable*qitem_hash;           /**< Hash table to retrieve items by their ID */
   33     char* filename;                  /**< Name of the file in which the map is stored */
   34     int dirty;                       /**< Need to write map file on exit */
   35     int attr_cnt;                    /**< Number of elements in `attr_types` */
   36     enum attr_type *attr_types;      /**< Array of attribute types supported by this map */
   37     int next_item_idx;               /**< Zero-based index (`id_lo`) for the next item to be added */
   38     enum item_type item_type;        /**< Item type stored in this map */
   39     GList* new_items;                /**< List of quadtree items that have no coord set yet */
   40     char *charset;                   /**< Identifier for the character set of this map */
   41 };
   42 
   43 struct map_rect_priv {
   44     struct map_selection *sel;
   45     struct quadtree_iter *qiter;
   46     struct quadtree_item *qitem;
   47     struct coord c;
   48     int bStarted;
   49     struct item item;
   50     struct map_priv *m;
   51     GList* at_iter;
   52 };
   53