/*
- * $Id: StoreIOState.h,v 1.8 2006/05/23 00:21:47 wessels Exp $
+ * $Id: StoreIOState.h,v 1.9 2006/05/23 00:30:21 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* storeClientReadBody
* storeClientReadHeader
*/
- typedef void STRCB(void *their_data, const char *buf, ssize_t len);
+ typedef void STRCB(void *their_data, const char *buf, ssize_t len, StoreIOState::Pointer self);
/*
* STFNCB is the "store file number callback." It is called
* storeSwapInFileNotify
* storeSwapOutFileNotify
*/
- typedef void STFNCB(void *their_data, int errflag);
+ typedef void STFNCB(void *their_data, int errflag, StoreIOState::Pointer self);
/*
* STIOCB is the "store close callback" for store files. It
* storeSwapOutFileClosed
* storeSwapInFileClosed
*/
- typedef void STIOCB(void *their_data, int errflag);
+ typedef void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self);
/* StoreIOState does not get mempooled - it's children do */
void *operator new (size_t amount);
/*
- * $Id: store_io_ufs.cc,v 1.31 2006/05/23 00:21:48 wessels Exp $
+ * $Id: store_io_ufs.cc,v 1.32 2006/05/23 00:30:21 wessels Exp $
*
* DEBUG: section 79 Storage Manager UFS Interface
* AUTHOR: Duane Wessels
if (len > 0 && read_buf != buf)
memcpy(read_buf, buf, len);
- callback(cbdata, read_buf, len);
+ callback(cbdata, read_buf, len, this);
} else if (closing && theFile.getRaw()!= NULL && !theFile->ioInProgress())
doCallback(errflag);
}
void *cbdata;
if (cbdataReferenceValidDone(callback_data, &cbdata) && theCallback)
- theCallback(cbdata, errflag);
+ theCallback(cbdata, errflag, this);
/* We are finished with the file as this is on close or error only.*/
/* This must be the last line, as theFile may be the only object holding
/*
- * $Id: store_client.cc,v 1.145 2006/05/23 00:21:47 wessels Exp $
+ * $Id: store_client.cc,v 1.146 2006/05/23 00:30:21 wessels Exp $
*
* DEBUG: section 90 Storage Manager Client-Side Interface
* AUTHOR: Duane Wessels
}
static void
-storeClientReadBody(void *data, const char *buf, ssize_t len)
+storeClientReadBody(void *data, const char *buf, ssize_t len, StoreIOState::Pointer self)
{
store_client *sc = (store_client *)data;
assert(sc->flags.disk_io_pending);
}
static void
-storeClientReadHeader(void *data, const char *buf, ssize_t len)
+storeClientReadHeader(void *data, const char *buf, ssize_t len, StoreIOState::Pointer self)
{
store_client *sc = (store_client *)data;
sc->readHeader(buf, len);
/*
- * $Id: store_swapin.cc,v 1.38 2006/05/23 00:21:47 wessels Exp $
+ * $Id: store_swapin.cc,v 1.39 2006/05/23 00:30:21 wessels Exp $
*
* DEBUG: section 20 Storage Manager Swapin Functions
* AUTHOR: Duane Wessels
}
static void
-storeSwapInFileClosed(void *data, int errflag)
+storeSwapInFileClosed(void *data, int errflag, StoreIOState::Pointer self)
{
store_client *sc = (store_client *)data;
debug(20, 3) ("storeSwapInFileClosed: sio=%p, errflag=%d\n",
}
static void
-storeSwapInFileNotify(void *data, int errflag)
+storeSwapInFileNotify(void *data, int errflag, StoreIOState::Pointer self)
{
store_client *sc = (store_client *)data;
StoreEntry *e = sc->entry;
/*
- * $Id: store_swapout.cc,v 1.105 2006/05/23 00:21:47 wessels Exp $
+ * $Id: store_swapout.cc,v 1.106 2006/05/23 00:30:21 wessels Exp $
*
* DEBUG: section 20 Storage Manager Swapout Functions
* AUTHOR: Duane Wessels
}
static void
-storeSwapOutFileNotify(void *data, int errflag)
+storeSwapOutFileNotify(void *data, int errflag, StoreIOState::Pointer self)
{
generic_cbdata *c = (generic_cbdata *)data;
StoreEntry *e = (StoreEntry *)c->data;
}
static void
-storeSwapOutFileClosed(void *data, int errflag)
+storeSwapOutFileClosed(void *data, int errflag, StoreIOState::Pointer self)
{
generic_cbdata *c = (generic_cbdata *)data;
StoreEntry *e = (StoreEntry *)c->data;