1 /* 2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors 3 * 4 * Squid software is distributed under GPLv2+ license and includes 5 * contributions from numerous individuals and organizations. 6 * Please see the COPYING and CONTRIBUTORS files for details. 7 */ 8 9 #include "squid.h" 10 #include "event.h" 11 12 #define STUB_API "event.cc" 13 #include "tests/STUB.h" 14 15 void eventAdd(const char *name, EVH * func, void *arg, double when, int, bool cbdata) STUB_NOP 16 void eventAddIsh(const char *name, EVH * func, void *arg, double delta_ish, int) STUB 17 void eventDelete(EVH * func, void *arg) STUB 18 void eventInit(void) STUB 19 void eventFreeMemory(void) STUB 20 int eventFind(EVH *, void *) STUB_RETVAL(-1) 21 22 // ev_entry::ev_entry(char const * name, EVH * func, void *arg, double when, int weight, bool cbdata) STUB 23 // ev_entry::~ev_entry() STUB 24 // EVH *func; 25 26 EventScheduler::EventScheduler() STUB 27 EventScheduler::~EventScheduler() STUB 28 void EventScheduler::cancel(EVH * func, void * arg) STUB 29 int EventScheduler::timeRemaining() const STUB_RETVAL(1) 30 void EventScheduler::clean() STUB 31 void EventScheduler::dump(StoreEntry *) STUB 32 bool EventScheduler::find(EVH * func, void * arg) STUB_RETVAL(false) 33 void EventScheduler::schedule(const char *name, EVH * func, void *arg, double when, int weight, bool cbdata) STUB 34 int EventScheduler::checkEvents(int timeout) STUB_RETVAL(-1) 35 EventScheduler *EventScheduler::GetInstance() STUB_RETVAL(NULL) 36 37