]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed some 140 SOURCEs of ufsdump, adding a few stubs. The program seems to
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 8 Mar 2009 21:37:32 +0000 (15:37 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 8 Mar 2009 21:37:32 +0000 (15:37 -0600)
work on simple ufs cache files.

urlCanonical is currently an always-asserting stub. I am not sure what pulls
in urlCanonical. I know storeKeyPublicByRequest* require it, but I am not sure
which source requires storeKeyPublicByRequest. If the stub assertion fails on
some cache files, we will need to pull more sources or re-implement
urlCanonical.

The more sources are moved into libraries, the more difficult it may be to
write isolated, compact test cases or tools because test case stubs and
customizations may start to conflict with names defined in the libraries and
because pulling in a whole library might require defining more stubs. It is
not clear yet how real this concern is in general, but a lot of acl/
SourceLayout time was spent on making ufsdump build...

Context: SourceLayout: acl/, take 1

src/ufsdump.cc

index dd097dfe3362d7e7af4e36466fd56d09ff72b11a..b945cf33d6bda56796a959e88da680b84c29105a 100644 (file)
 #include <cassert>
 
 /* stub functions for parts of squid not factored to be dynamic yet */
-void shut_down(int)
+void
+eventAdd(const char *name, EVH * func, void *arg, double when, int, bool cbdata)
 {}
 
+// required by storeKeyPublicByRequest*
+// XXX: what pulls in storeKeyPublicByRequest?
+const char *urlCanonical(HttpRequest *) { assert(false); return NULL; }
+
 void
-reconfigure(int)
-{}
+storeAppendPrintf(StoreEntry * e, const char *fmt,...)
+{
+    va_list args;
+    va_start(args, fmt);
+
+       assert(false);
+
+    va_end(args);
+}
+
+#include "CacheManager.h"
+CacheManager*
+CacheManager::GetInstance()
+{
+       assert(false);
+    return NULL;
+}
 
-#if WHENITMINIMAL
 void
-eventAdd(const char *name, EVH * func, void *arg, double when, int, bool cbdata)
-{}
+CacheManager::registerAction(char const * action, char const * desc, OBJH * handler, int pw_req_flag, int atomic) {}
+
 
-#endif
 /* end stub functions */
 
 struct MetaStd {