blob: 72d8771bde18b31107772b7a6f0eb21e1372fc5b [file] [log] [blame]
Alexander Afanasyevf23a7b62013-07-17 13:22:25 -07001/** -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 *
6 * GNU 3.0 license, See the LICENSE file for more information
7 *
8 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
9 */
10
11#include "ns3/ndnSIM-module.h"
12
13using namespace ns3;
14using namespace ndn;
15
16static inline void
17__dummy_function_on_interest_callback_instantiation (Ptr<const Name>, Ptr<const Interest>)
18{
19}
20
21static inline void
Alexander Afanasyev772f51b2013-08-01 18:53:25 -070022__dummy_function_on_data_callback_instantiation (Ptr<const Interest>, Ptr<const Data>)
Alexander Afanasyevf23a7b62013-07-17 13:22:25 -070023{
24}
25
26static inline void
27__dummy_function_on_timeout_callback_instantiation (Ptr<const Interest>)
28{
29}
30
31static inline void
32__dummy_function_to_force_ndn_api_face_callback_instantiations ()
33{
34 ApiFace face (0);
35 Ptr<Interest> interest;
36 Ptr<Name> prefix;
37
38 face.ExpressInterest (interest,
39 MakeCallback (__dummy_function_on_data_callback_instantiation),
40 MakeCallback (__dummy_function_on_timeout_callback_instantiation)
41 );
42
43 face.SetInterestFilter (prefix,
44 MakeCallback (__dummy_function_on_interest_callback_instantiation));
45
46 std::string tmp ("bla");
47 char &test = tmp[0];
48}
49
50
51// /// @cond include_hidden
52// #ifdef PYTHON_SCAN
53// struct CallbackVoidNameInterest : public Callback<void, Ptr<const Name>, Ptr<const Interest> > { };
Alexander Afanasyev772f51b2013-08-01 18:53:25 -070054// struct CallbackVoidInterestData : public Callback<void, Ptr<const Interest>, Ptr<const Data> > { };
Alexander Afanasyevf23a7b62013-07-17 13:22:25 -070055// struct CallbackVoidInterest : public Callback<void, Ptr<const Interest> > { };
56// #endif
57// /// @endcond
58