DCFG
Dynamic Control Flow Graph
 All Classes Functions
dcfg_pin_api.H
1 /*BEGIN_LEGAL
2 BSD License
3 
4 Copyright (c) 2015 Intel Corporation. All rights reserved.
5 
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are
8 met:
9 
10 Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer. Redistributions
12 in binary form must reproduce the above copyright notice, this list of
13 conditions and the following disclaimer in the documentation and/or
14 other materials provided with the distribution. Neither the name of
15 the Intel Corporation nor the names of its contributors may be used to
16 endorse or promote products derived from this software without
17 specific prior written permission.
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR
23 ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 END_LEGAL */
31 
32 #ifndef DCFG_PIN_API_H
33 #define DCFG_PIN_API_H
34 
35 #include "pin.H"
36 #include "dcfg_api.H"
37 
38 namespace dcfg_pin_api {
39 
46  public:
47 
48  // Default virtual destructor to ensure cleanup.
49  virtual ~DCFG_PIN_MANAGER() {}
50 
56  static DCFG_PIN_MANAGER* new_manager();
57 
62  virtual bool dcfg_enable_knob() const;
63 
68  virtual void activate() =0;
69 
75  virtual void activate(void * pinplay_engine
78  ) =0;
79 
89  virtual dcfg_api::DCFG_DATA_CPTR get_dcfg_data() const =0;
90 
98  virtual void
99  set_cfg_collection(bool enable
101  ) =0;
102  };
103 
104 }; // namespace
105 #endif