| 55 | } |
| 56 | |
| 57 | APIHook const * |
| 58 | HttpHookState::getNext() |
| 59 | { |
| 60 | APIHook const *zret = nullptr; |
| 61 | |
| 62 | Dbg(dbg_ctl_plugin, "computing next callback for hook %d", _id); |
| 63 | |
| 64 | if (zret = _global.candidate(); zret) { |
| 65 | ++_global; |
| 66 | } else if (zret = _ssn.candidate(); zret) { |
| 67 | ++_ssn; |
| 68 | } else if (zret = _txn.candidate(); zret) { |
| 69 | ++_txn; |
| 70 | } |
| 71 | |
| 72 | return zret; |
| 73 | } |
| 74 | |
| 75 | void |
| 76 | HttpHookState::Scope::init(HttpAPIHooks const *feature_hooks, TSHttpHookID id) |
no test coverage detected