You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2010/11/30 02:43:06 UTC
svn commit: r1040383 [11/38] - in /trafficserver/traffic/branches/wccp: ./
build/ contrib/ contrib/perl/AdminClient/lib/Apache/TS/ example/
example/add-header/ example/app-template/ example/append-transform/
example/basic-auth/ example/blacklist-0/ exa...
Modified: trafficserver/traffic/branches/wccp/proxy/InkAPIInternal.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/proxy/InkAPIInternal.h?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/proxy/InkAPIInternal.h (original)
+++ trafficserver/traffic/branches/wccp/proxy/InkAPIInternal.h Tue Nov 30 01:42:55 2010
@@ -29,15 +29,12 @@
#include "StatSystem.h"
#include "P_Net.h"
#include "api/ts/ts.h"
-#include "api/ts/ts_private_frozen.h"
+#include "api/ts/experimental.h"
#include "api/ts/InkAPIPrivateIOCore.h"
#include "HTTP.h"
#include "List.h"
#include "ProxyConfig.h"
#include "P_Cache.h"
-class CacheAPIHooks;
-extern CacheAPIHooks *cache_global_hooks;
-
/* ****** Cache Structure ********* */
@@ -100,7 +97,7 @@ public:
struct INKConfigImpl:public ConfigInfo
{
void *mdata;
- INKConfigDestroyFunc m_destroy_func;
+ TSConfigDestroyFunc m_destroy_func;
virtual ~ INKConfigImpl()
{
@@ -147,36 +144,16 @@ public:
~HttpAPIHooks();
void clear();
- void prepend(INKHttpHookID id, INKContInternal * cont);
- void append(INKHttpHookID id, INKContInternal * cont);
- APIHook *get(INKHttpHookID id);
+ void prepend(TSHttpHookID id, INKContInternal * cont);
+ void append(TSHttpHookID id, INKContInternal * cont);
+ APIHook *get(TSHttpHookID id);
// A boolean value to quickly see if
// any hooks are set
int hooks_set;
private:
- APIHooks m_hooks[INK_HTTP_LAST_HOOK];
-};
-
-
-class CacheAPIHooks
-{
-public:
- CacheAPIHooks();
- ~CacheAPIHooks();
-
- void clear();
- void prepend(INKCacheHookID id, INKContInternal * cont);
- void append(INKCacheHookID id, INKContInternal * cont);
- APIHook *get(INKCacheHookID id);
-
- // A boolean value to quickly see if
- // any hooks are set
- int hooks_set;
-
-private:
- APIHooks m_hooks[INK_HTTP_LAST_HOOK];
+ APIHooks m_hooks[TS_HTTP_LAST_HOOK];
};
@@ -196,11 +173,11 @@ public:
if (!trylock) {
eventProcessor.schedule_in(this, HRTIME_MSECONDS(10), ET_NET);
} else {
- m_cont->handleEvent(INK_EVENT_MGMT_UPDATE, NULL);
+ m_cont->handleEvent(TS_EVENT_MGMT_UPDATE, NULL);
delete this;
}
} else {
- m_cont->handleEvent(INK_EVENT_MGMT_UPDATE, NULL);
+ m_cont->handleEvent(TS_EVENT_MGMT_UPDATE, NULL);
delete this;
}
@@ -230,6 +207,4 @@ void api_init();
extern HttpAPIHooks *http_global_hooks;
extern ConfigUpdateCbTable *global_config_cbs;
-//extern inkcoreapi INKMCOPreload_fp MCOPreload_fp;
-
#endif /* __INK_API_INTERNAL_H__ */