Permalink
Browse files

TS-522 Removed deprecated (very old) APIs.

I also cleaned out the "private" include files, and moved a few
APIs over to ts/ts.h and the rest into ts/experimental.h. We can
later promote things over from experimental.h to ts.h.

Finally, for completeness, I added

  inkapi void INKVConnActiveTimeoutSet(INKVConn connp, TSHRTime timeout);
  inkapi void INKVConnActiveTimeoutCancel(INKVConn connp);

git-svn-id: https://svn.apache.org/repos/asf/trafficserver/traffic/trunk@1034195 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent f523e78 commit 81965d90299c0d889c358128704d6175819d0a6b @zwoop zwoop committed Nov 11, 2010
Showing with 1,079 additions and 1,896 deletions.
  1. +6 −6 example/add-header/readme.txt
  2. +1 −1 example/basic-auth/basic-auth.c
  3. +1 −1 example/basic-auth/readme.txt
  4. +1 −1 example/prefetch/prefetch-plugin-eg1.c
  5. +1 −1 example/prefetch/test-hns-plugin.c
  6. +1 −1 example/replace-header/replace-header.c
  7. +4 −6 example/response-header-1/response-header-1.c
  8. +1 −1 example/thread-pool/psi.c
  9. +1 −1 iocore/cluster/P_ClusterCache.h
  10. +312 −844 proxy/InkAPI.cc
  11. +1 −1 proxy/InkAPIInternal.h
  12. +2 −6 proxy/InkAPITest.cc
  13. +0 −7 proxy/InkIOCoreAPI.cc
  14. +1 −3 proxy/Makefile.am
  15. +1 −1 proxy/Prefetch.h
  16. +1 −1 proxy/UDPAPIClientTest.h
  17. +1 −1 proxy/UDPAPITest.h
  18. +529 −1 proxy/api/ts/experimental.h
  19. +40 −205 proxy/api/ts/ts.h
  20. +0 −105 proxy/api/ts/ts_private.h
  21. +0 −536 proxy/api/ts/ts_private_frozen.h
  22. +5 −2 test/plugin/INKContinuations/ServerSM.cc
  23. +3 −3 test/plugin/INKNetConnect/INKqa8418.c
  24. +8 −8 test/plugin/add-header-deprecated/add-header.deprecated.c
  25. +6 −6 test/plugin/add-header-deprecated/readme.txt
  26. +7 −7 test/plugin/alt-info/alt-info.c
  27. +2 −2 test/plugin/assembly/assembly.c
  28. +5 −5 test/plugin/assembly/headers.c
  29. +4 −4 test/plugin/basic-auth-deprecated/basic-auth.deprecated.c
  30. +1 −1 test/plugin/basic-auth-deprecated/readme.txt
  31. +6 −6 test/plugin/check-mime-1/check-mime-1.c
  32. +70 −63 test/plugin/check-mime/check-mime-0.c
  33. +19 −19 test/plugin/check-mime/check-mime.c
  34. +1 −1 test/plugin/climate/climate.c
  35. +5 −3 test/plugin/cluster-RPC/clusterRPC.c
  36. +1 −1 test/plugin/lookup/lookup.c
  37. +4 −4 test/plugin/order/orderplugin1.c
  38. +4 −5 test/plugin/order/orderplugin2.c
  39. +4 −4 test/plugin/order/orderplugin3.c
  40. +4 −4 test/plugin/order/orderplugin4.c
  41. +8 −10 test/plugin/order/orderstartplugin.c
  42. +4 −4 test/plugin/redirect-1-deprecated/redirect-1.deprecated.c
  43. +3 −3 test/plugin/redirect-1-neg/redirect-1-neg.c
  44. +0 −1 test/plugin/test-transform/test-transform.c
@@ -15,9 +15,9 @@ The INKPluginInit function does the following:
using the following functions:
INKMBufferCreate
INKMimeHdrCreate
- INKMimeFieldCreate
+ INKMimeHdrFieldCreate
INKMimeFieldInsert
- INKMimeFieldNameSet
+ INKMimeHdrFieldNameSet
INKMimeFieldValueInsert
@@ -39,10 +39,10 @@ header from the current transaction, using
HTTP request, using the following functions:
INKMimeHdrFieldGet
- INKMimeFieldCreate
- INKMimeFieldCopy
- INKMimeHdrFieldInsert
- INKMimeFieldNext
+ INKMimeHdrFieldCreate
+ INKMimeHdrFieldCopy
+ INKMimeHdrFieldAPpend
+ INKMimeHdrFieldNext
When add_header is done, it uses
INKHttpTxnReenable
@@ -134,7 +134,7 @@ handle_dns(INKHttpTxn txnp, INKCont contp)
goto done;
}
- field_loc = INKMimeHdrFieldRetrieve(bufp, hdr_loc, INK_MIME_FIELD_PROXY_AUTHORIZATION);
+ field_loc = INKMimeHdrFieldFind(bufp, hdr_loc, INK_MIME_FIELD_PROXY_AUTHORIZATION, INK_MIME_LEN_PROXY_AUTHORIZATION);
if (!field_loc) {
INKHandleMLocRelease(bufp, INK_NULL_MLOC, hdr_loc);
INKError("no Proxy-Authorization field\n");
@@ -8,7 +8,7 @@ The basic-auth.c plugin performs basic HTTP proxy authentication.
handler, auth-plugin, calls handle_dns to check the
Proxy-Authorization field.
- handle_dns uses INKHttpTxnClientReqGet and INKMimeHdrFieldRetrieve
+ handle_dns uses INKHttpTxnClientReqGet and INKMimeHdrFieldFind
to obtain the Proxy-Authorization field.
-- If the request does not have the Proxy-Authorization field,
@@ -30,7 +30,7 @@
#include <stdio.h>
#include <string.h>
#include <ts/ts.h>
-#include <ts/ts_private.h>
+#include <ts/experimental.h>
/* We will register the following two hooks */
@@ -61,7 +61,7 @@ correctness of the parse/prefetch module. It has the following options:
#include <sys/types.h>
#include <sys/stat.h>
#include <ts/ts.h>
-#include <ts/ts_private.h>
+#include <ts/experimental.h>
/* We will register the following two hooks */
@@ -47,7 +47,7 @@ replace_header(INKHttpTxn txnp, INKCont contp)
goto done;
}
- field_loc = INKMimeHdrFieldRetrieve(resp_bufp, resp_loc, INK_MIME_FIELD_ACCEPT_RANGES);
+ field_loc = INKMimeHdrFieldFind(resp_bufp, resp_loc, INK_MIME_FIELD_ACCEPT_RANGES, INK_MIME_LEN_ACCEPT_RANGES);
if (field_loc == 0) {
/* field was not found */
@@ -168,16 +168,14 @@ modify_header(INKHttpTxn txnp, INKCont contp)
/* TODO check these comments for correctness */
/*
- * Since INKMimeHdrFieldValueGet returned with valid values
- * are we also guaranteed that INKMimeHdrFieldValueGetUint returns
- * valid values? There is no erro code for INKMimeHdrFieldValueGetUint
+ * Since INKMimeHdrFieldValueStringGet returned with valid values
+ * are we also guaranteed that INKMimeHdrFieldValueUintGet returns
+ * valid values? There is no erro code for INKMimeHdrFieldValueUintGet
* and 0 is a valid value.
*/
/* Get the cached MIME value for this name in this HTTP header */
/*
- num_refreshes =
- INKMimeHdrFieldValueGetUint(cached_bufp, cached_loc,
- cached_field_loc, 0);
+ INKMimeHdrFieldValueUintGet(cached_bufp, cached_loc, cached_field_loc, 0, &num_refreshes);
INKDebug("resphdr",
"Cached header shows %d refreshes so far", num_refreshes );
@@ -988,7 +988,7 @@ transform_handler(INKCont contp, INKEvent event, void *edata)
/*-------------------------------------------------------------------------
trylock_handler
- Small handler to handle INKMutexTryLock failures
+ Small handler to handle INKMutexLockTry failures
Input:
contp continuation for the current transaction
@@ -942,7 +942,7 @@ ClusterFuncToQpri(int cluster_func)
* *
****************************************************************************
* Note: All of the following must be kept in sync with INKClusterRPCKey_t *
- * definition in ts/ts_private.h *
+ * definition in ts/ts.h and ts/experimental.h *
****************************************************************************/
/************************************************
Oops, something went wrong.

0 comments on commit 81965d9

Please sign in to comment.