Alexander Afanasyev | f23a7b6 | 2013-07-17 13:22:25 -0700 | [diff] [blame] | 1 | /** -*- 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 | |
| 13 | using namespace ns3; |
| 14 | using namespace ndn; |
| 15 | |
| 16 | static inline void |
| 17 | __dummy_function_on_interest_callback_instantiation (Ptr<const Name>, Ptr<const Interest>) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | static inline void |
| 22 | __dummy_function_on_data_callback_instantiation (Ptr<const Interest>, Ptr<const ContentObject>) |
| 23 | { |
| 24 | } |
| 25 | |
| 26 | static inline void |
| 27 | __dummy_function_on_timeout_callback_instantiation (Ptr<const Interest>) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | static 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> > { }; |
| 54 | // struct CallbackVoidInterestContentObject : public Callback<void, Ptr<const Interest>, Ptr<const ContentObject> > { }; |
| 55 | // struct CallbackVoidInterest : public Callback<void, Ptr<const Interest> > { }; |
| 56 | // #endif |
| 57 | // /// @endcond |
| 58 | |