blob: af58cdf72af31e09102b29b3c29e857c08a07773 [file] [log] [blame]
Steve DiBenedetto5b433982014-01-29 17:14:27 -07001/* -*- 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
12namespace nfd {
13
14typedef ndn::func_lib::function<void(const Name&, const Interest&)> OnInterest;
15
16class AppFace
17{
18public:
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