| 65 | DEF_MODULE(AcmeModule, "acme_module", "foo bar"); |
| 66 | |
| 67 | class AcmeModuleWithTask : public Module { |
| 68 | public: |
| 69 | AcmeModuleWithTask() : Module() { is_task_ = true; } |
| 70 | |
| 71 | static const gate_idx_t kNumIGates = 1; |
| 72 | static const gate_idx_t kNumOGates = 3; |
| 73 | |
| 74 | CommandResponse Init(const bess::pb::EmptyArg &) { return CommandResponse(); } |
| 75 | |
| 76 | struct task_result RunTask(Context *, bess::PacketBatch *, void *) override { |
| 77 | return task_result(); |
| 78 | } |
| 79 | }; |
| 80 | |
| 81 | DEF_MODULE(AcmeModuleWithTask, "acme_module_with_task", "foo bar"); |
| 82 |
nothing calls this directly
no outgoing calls
no test coverage detected