[GRASS-SVN] r45868 - grass/trunk/include
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 8 02:29:16 EDT 2011
Author: mmetz
Date: 2011-04-07 23:29:15 -0700 (Thu, 07 Apr 2011)
New Revision: 45868
Modified:
grass/trunk/include/segment.h
Log:
update header for segment lib
Modified: grass/trunk/include/segment.h
===================================================================
--- grass/trunk/include/segment.h 2011-04-08 06:26:35 UTC (rev 45867)
+++ grass/trunk/include/segment.h 2011-04-08 06:29:15 UTC (rev 45868)
@@ -1,7 +1,7 @@
#ifndef GRASS_SEGMENT_H
#define GRASS_SEGMENT_H
-#include <grass/config.h>
+#include <grass/gis.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -24,19 +24,19 @@
int len; /* bytes per data value */
int srows; /* rows in segments */
int scols; /* cols in segments */
- int srowscols; /* rows x cols in segments */
+ int srowscols; /* rows x cols in segments */
int size; /* size in bytes of a segment */
int spr; /* segments per row */
int spill; /* cols in last segment in row */
/* fast mode */
- int slow_adrs; /* toggles fast address mode */
- int scolbits; /* column bitshift */
- int srowbits; /* row bitshift */
- int segbits; /* segment bitshift */
- int slow_seek; /* toggles fast seek mode */
- int lenbits; /* data size bitshift */
- int sizebits; /* segment size bitshift */
+ int slow_adrs; /* toggles fast address mode */
+ int scolbits; /* column bitshift */
+ int srowbits; /* row bitshift */
+ int segbits; /* segment bitshift */
+ int slow_seek; /* toggles fast seek mode */
+ int lenbits; /* data size bitshift */
+ int sizebits; /* segment size bitshift */
int fd; /* file descriptor to read/write segment */
struct SEGMENT_SCB /* control blocks */
@@ -46,7 +46,7 @@
struct aq *age; /* pointer to position in age queue */
int n; /* segment number */
} *scb;
- struct RB_TREE *loaded; /* search tree of loaded segments */
+ int *load_idx; /* index of loaded segments */
int nfreeslots; /* number of free slots */
int *freeslot; /* array of free slots */
struct aq *agequeue, /* queue of age for order of access */
@@ -57,14 +57,6 @@
int offset; /* offset of data past header */
} SEGMENT;
-typedef struct
-{
- int i;
- int n;
-} SEGID;
-
-#include <grass/gis.h>
-
int segment_address(const SEGMENT *, int, int, int *, int *);
int segment_flush(SEGMENT *);
int segment_format(int, int, int, int, int, int);
@@ -79,6 +71,5 @@
int segment_release(SEGMENT *);
int segment_seek(const SEGMENT *, int, int);
int segment_setup(SEGMENT *);
-int segment_compare(const void *, const void *);
#endif /* GRASS_SEGMENT_H */
More information about the grass-commit
mailing list