~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/Store.cci

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
1
/*
3
 
 * $Id: Store.cci,v 1.2 2005/01/03 16:08:25 robertc Exp $
 
2
 * $Id$
4
3
 *
5
4
 * DEBUG: section 20    Storage Manager
6
5
 * AUTHOR: Harvest Derived
21
20
 *  it under the terms of the GNU General Public License as published by
22
21
 *  the Free Software Foundation; either version 2 of the License, or
23
22
 *  (at your option) any later version.
24
 
 *  
 
23
 *
25
24
 *  This program is distributed in the hope that it will be useful,
26
25
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
27
26
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28
27
 *  GNU General Public License for more details.
29
 
 *  
 
28
 *
30
29
 *  You should have received a copy of the GNU General Public License
31
30
 *  along with this program; if not, write to the Free Software
32
31
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
33
32
 *
34
33
 */
35
34
 
36
 
// #include "squid.h"
37
 
#if 0
38
 
#include "StoreClient.h"
39
 
#include "stmem.h"
40
 
#include "HttpReply.h"
41
 
#include "HttpRequest.h"
42
 
#endif
43
35
#include "MemObject.h"
44
 
#if 0
45
 
#include "mem_node.h"
46
 
#include "StoreMeta.h"
47
 
#include "SwapDir.h"
48
 
#endif
49
36
 
 
37
/**
 
38
 \retval true   Store contains 0 bytes of data.
 
39
 \retval false  Store contains 1 or more bytes of data.
 
40
 \retval false  Store contains negative content !!!!!!
 
41
 */
50
42
bool
51
43
StoreEntry::isEmpty () const
52
44
{
54
46
    return mem_obj->endOffset() == 0;
55
47
}
56
48
 
 
49
/// \retval * - Always NULL for 'null' filesystem.
57
50
HttpReply const *
58
51
NullStoreEntry::getReply() const
59
52
{
60
53
    return NULL;
61
54
}
62
55
 
 
56
/// \retval N/A         Kills squid with fatal error if called before Store Root is set.
63
57
Store &
64
58
Store::Root()
65
59
{