blob: 7d35e1882b6d6a7793a8f74618f699e5da4230c8 [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
22__dummy_function_on_data_callback_instantiation (Ptr<const Interest>, Ptr<const ContentObject>)
23{
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> > { };
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