trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject git commit: new method to api
Date Tue, 04 Sep 2012 05:20:25 GMT
Updated Branches:
  refs/heads/master 39a8c289c -> 1798bb9b9


new method to api


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1798bb9b
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1798bb9b
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1798bb9b

Branch: refs/heads/master
Commit: 1798bb9b961e5e305113221f2a40dbacdaf666e1
Parents: 39a8c28
Author: Brian Geffon <briang@apache.org>
Authored: Mon Sep 3 22:20:14 2012 -0700
Committer: Brian Geffon <briang@apache.org>
Committed: Mon Sep 3 22:20:14 2012 -0700

----------------------------------------------------------------------
 lib/cpp11api/cpp11api.cc |    4 ++++
 lib/cpp11api/ts-cpp11.h  |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1798bb9b/lib/cpp11api/cpp11api.cc
----------------------------------------------------------------------
diff --git a/lib/cpp11api/cpp11api.cc b/lib/cpp11api/cpp11api.cc
index 4226444..73fcdc3 100644
--- a/lib/cpp11api/cpp11api.cc
+++ b/lib/cpp11api/cpp11api.cc
@@ -487,6 +487,10 @@ void ats::api::SetRequestMethod(Transaction &t, const std::string
&method) {
   TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
 }
 
+void ats::api::ReenableTransaction(Transaction &t, NextState ns) {
+  ReenableBasedOnNextState(t.ts_http_txn_, ns);
+}
+
 static int TransactionContinuationHandler(TSCont contp, TSEvent event,
     void *edata) {
   TSHttpTxn txnp = static_cast<TSHttpTxn>(edata);

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1798bb9b/lib/cpp11api/ts-cpp11.h
----------------------------------------------------------------------
diff --git a/lib/cpp11api/ts-cpp11.h b/lib/cpp11api/ts-cpp11.h
index 920b421..b1e2a48 100644
--- a/lib/cpp11api/ts-cpp11.h
+++ b/lib/cpp11api/ts-cpp11.h
@@ -87,7 +87,7 @@ void SetRequestMethod(Transaction &t, const std::string &);
 int GetServerResponseStatusCode(Transaction &t);
 bool IsInternalRequest(Transaction &);
 void* GetTransactionIdentifier(Transaction &);
-
+void ReenableTransaction(Transaction &, NextState);
 
 /* headers */
 // TODO: Switch these out to deal with shared_ptrs to a HeaderVector


Mime
View raw message