Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NFD_MGMT_APP_FACE_HPP |
| 8 | #define NFD_MGMT_APP_FACE_HPP |
| 9 | |
| 10 | #include "common.hpp" |
| 11 | |
| 12 | namespace nfd { |
| 13 | |
| 14 | typedef ndn::func_lib::function<void(const Name&, const Interest&)> OnInterest; |
| 15 | |
| 16 | class AppFace |
| 17 | { |
| 18 | public: |
| 19 | virtual void |
| 20 | setInterestFilter(const Name& filter, |
| 21 | OnInterest onInterest) = 0; |
| 22 | |
| 23 | virtual void |
| 24 | put(const Data& data) = 0; |
| 25 | |
| 26 | virtual |
| 27 | ~AppFace() { } |
| 28 | }; |
| 29 | |
| 30 | } // namespace nfd |
| 31 | |
| 32 | #endif //NFD_MGMT_APP_FACE_HPP |