/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* camel-stream-fs.h :stream based on unix filesystem */ /* * Author: * Bertrand Guiheneuf * * Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ #ifndef CAMEL_SEEKABLE_STREAM_H #define CAMEL_SEEKABLE_STREAM_H 1 #ifdef __cplusplus extern "C" { #pragma } #endif /* __cplusplus }*/ #include #include #include #define CAMEL_SEEKABLE_STREAM_TYPE (camel_seekable_stream_get_type ()) #define CAMEL_SEEKABLE_STREAM(obj) (GTK_CHECK_CAST((obj), CAMEL_SEEKABLE_STREAM_TYPE, CamelSeekableStream)) #define CAMEL_SEEKABLE_STREAM_CLASS(k) (GTK_CHECK_CLASS_CAST ((k), CAMEL_SEEKABLE_STREAM_TYPE, CamelSeekableStreamClass)) #define CAMEL_IS_SEEKABLE_STREAM(o) (GTK_CHECK_TYPE((o), CAMEL_SEEKABLE_STREAM_TYPE)) typedef enum { CAMEL_STREAM_SET = SEEK_SET, CAMEL_STREAM_CUR = SEEK_CUR, CAMEL_STREAM_END = SEEK_END } CamelStreamSeekPolicy; #define CAMEL_STREAM_UNBOUND (~0) struct _CamelSeekableStream { CamelStream parent_object; off_t position; /* current postion in the stream */ off_t bound_start; /* first valid position */ off_t bound_end; /* first invalid position */ }; typedef struct { CamelStreamClass parent_class; /* Virtual methods */ off_t (*seek) (CamelSeekableStream *stream, off_t offset, CamelStreamSeekPolicy policy); off_t (*tell) (CamelSeekableStream *stream); int (*set_bounds) (CamelSeekableStream *stream, off_t start, off_t end); } CamelSeekableStreamClass; /* Standard Gtk function */ GtkType camel_seekable_stream_get_type (void); /* public methods */ off_t camel_seekable_stream_seek (CamelSeekableStream *stream, off_t offset, CamelStreamSeekPolicy policy); off_t camel_seekable_stream_tell (CamelSeekableStream *stream); int camel_seekable_stream_set_bounds (CamelSeekableStream *, off_t start, off_t end); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CAMEL_SEEKABLE_STREAM_H */ dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Fix build after r369447demon2014-09-301-0/+2
* Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1
* - Pass maintainership to python@sunpoet2014-09-071-1/+1
* - Use version-coded PDF docs [1]wen2014-09-072-8/+8
* - Enable concurrent installation support for different python versionsmva2014-09-031-5/+2
* math/fftw3:tijl2014-09-011-0/+1
* Modernize pythonbapt2014-08-291-4/+2
* Fix packaging with pkg-installantoine2014-06-181-2/+2
* - Fix plist when define DOCS=offwen2014-06-091-3/+2
* - Stage supportwen2014-05-282-15/+9
* - Update LICENSEsunpoet2014-04-271-1/+1
* Update the default version of GCC used in the Ports Collection fromgerald2014-03-111-0/+1
* Update to version 0.13.3.demon2014-02-182-8/+8
* Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most casestijl2014-02-171-1/+1
* - Fix distinfowen2013-11-181-2/+2
* - Update to 0.13.1wen2013-11-172-6/+5
* Update to libmpc version 1.0.1 which brings the following fixes:gerald2013-10-261-0/+1
* - Update to 0.12.1wen2013-10-172-3/+3
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* - Take maintainershipwen2013-08-211-1/+1
* - update to 0.12.0dryice2013-08-172-3/+3
* - let it build with python3 toorm2013-07-221-1/+1
* NOPORTDOCS -> PORT_OPTIONS:MDOCS.bsam2013-06-201-2/+2
* - Reset maintainer due to fatal email bouncezi2013-06-181-1/+1
* - update to 0.11.0rm2012-10-172-17/+14
* - Remove automatic dependency to SuiteSparse; use OPTIONS insteadmva2012-10-071-4/+10
* - Update to 0.10.1wen2012-05-232-3/+3
* - Update to 0.10.0wen2011-12-092-9/+21
* adjust linking and comments in dependent ports after the math/atlas update;bf2011-11-221-1/+1
* - add run time dependency on py-scipyeadler2011-10-201-1/+2
* - update fftw3* to 3.3 [1], and adjust dependent portsbf2011-10-17