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

« back to all changes in this revision

Viewing changes to src/fs/coss/CossSwapDir.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-05-04 11:15:49 UTC
  • mfrom: (1.3.1 upstream)
  • mto: (20.3.1 squeeze) (21.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100504111549-1apjh2g5sndki4te
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#error COSS Support is not stable in 3.0. Please do not use.
2
1
#ifndef __COSSSWAPDIR_H__
3
2
#define __COSSSWAPDIR_H__
4
3
 
 
4
class StoreEntry;
 
5
class CossSwapDir;
 
6
class CossMemBuf;
 
7
class DiskIOStrategy;
 
8
class DiskIOModule;
 
9
class ConfigOptionVector;
 
10
class DiskFile;
 
11
 
5
12
#include "SwapDir.h"
6
 
#include "StoreSearch.h"
 
13
#include "DiskIO/IORequestor.h"
 
14
 
7
15
 
8
16
#ifndef COSS_MEMBUF_SZ
9
17
#define COSS_MEMBUF_SZ  1048576
15
23
#define COSS_ALLOC_ALLOCATE             1
16
24
#define COSS_ALLOC_REALLOC              2
17
25
 
18
 
class CossSwapDir;
19
 
 
20
 
 
21
 
class CossMemBuf;
22
 
 
23
 
class DiskIOStrategy;
24
 
 
25
 
class DiskIOModule;
26
 
 
27
 
class ConfigOptionVector;
28
 
#include "DiskIO/DiskFile.h"
29
 
#include "DiskIO/IORequestor.h"
30
 
 
 
26
 
 
27
/// \ingroup COSS
31
28
class CossSwapDir : public SwapDir, public IORequestor
32
29
{
33
30
 
93
90
    const char *stripe_path;
94
91
};
95
92
 
 
93
/// \ingroup COSS
96
94
extern void storeCossAdd(CossSwapDir *, StoreEntry *);
 
95
/// \ingroup COSS
97
96
extern void storeCossRemove(CossSwapDir *, StoreEntry *);
 
97
/// \ingroup COSS
98
98
extern void storeCossStartMembuf(CossSwapDir * SD);
99
99
 
 
100
 
 
101
#include "StoreSearch.h"
 
102
 
 
103
/// \ingroup COSS
100
104
class StoreSearchCoss : public StoreSearch
101
105
{
102
106
 
106
110
    ~StoreSearchCoss();
107
111
    /* Iterator API - garh, wrong place */
108
112
    /* callback the client when a new StoreEntry is available
109
 
     * or an error occurs 
 
113
     * or an error occurs
110
114
     */
111
115
    virtual void next(void (callback)(void *cbdata), void *cbdata);
112
116
    /* return true if a new StoreEntry is immediately available */