[GRASS-SVN] r51949 - in grass/trunk/include: . defs

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 3 05:59:35 PDT 2012


Author: mmetz
Date: 2012-06-03 05:59:34 -0700 (Sun, 03 Jun 2012)
New Revision: 51949

Modified:
   grass/trunk/include/defs/segment.h
   grass/trunk/include/segment.h
Log:
segment lib: update headers

Modified: grass/trunk/include/defs/segment.h
===================================================================
--- grass/trunk/include/defs/segment.h	2012-06-03 11:34:46 UTC (rev 51948)
+++ grass/trunk/include/defs/segment.h	2012-06-03 12:59:34 UTC (rev 51949)
@@ -1,23 +1,16 @@
 #ifndef GRASS_SEGMENTDEFS_H
 #define GRASS_SEGMENTDEFS_H
 
-int segment_address(const SEGMENT *, off_t, off_t, int *, int *);
-int segment_address_fast(const SEGMENT *, off_t, off_t, int *, int *);
-int segment_address_slow(const SEGMENT *, off_t, off_t, int *, int *);
+int segment_open(SEGMENT *, char *, off_t, off_t, int, int, int, int);
+int segment_close(SEGMENT *);
 int segment_flush(SEGMENT *);
 int segment_format(int, off_t, off_t, int, int, int);
 int segment_format_nofill(int, off_t, off_t, int, int, int);
 int segment_get(SEGMENT *, void *, off_t, off_t);
 int segment_get_row(const SEGMENT *, void *, off_t);
 int segment_init(SEGMENT *, int, int);
-int segment_pagein(SEGMENT *, int);
-int segment_pageout(SEGMENT *, int);
 int segment_put(SEGMENT *, const void *, off_t, off_t);
 int segment_put_row(const SEGMENT *, const void *, off_t);
 int segment_release(SEGMENT *);
-int segment_seek(const SEGMENT *, int, int);
-int segment_seek_fast(const SEGMENT *, int, int);
-int segment_seek_slow(const SEGMENT *, int, int);
-int segment_setup(SEGMENT *);
 
 #endif /* GRASS_SEGMENTDEFS_H */

Modified: grass/trunk/include/segment.h
===================================================================
--- grass/trunk/include/segment.h	2012-06-03 11:34:46 UTC (rev 51948)
+++ grass/trunk/include/segment.h	2012-06-03 12:59:34 UTC (rev 51949)
@@ -40,6 +40,7 @@
     int (*segment_address)();
     int (*segment_seek)();
     
+    char *fname;		/* segment file name */
     int fd;			/* file descriptor to read/write segment */
     struct SEGMENT_SCB		/* control blocks */
     {



More information about the grass-commit mailing list