1 /* 2 * Copyright (c) 2016 PLUMgrid, Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include "exported_files.h" 18 19 using std::map; 20 using std::string; 21 22 namespace ebpf { 23 24 // c++11 feature for including raw string literals 25 // see http://www.stroustrup.com/C++11FAQ.html#raw-strings 26 27 map<string, const char *> ExportedFiles::headers_ = { 28 { 29 "/virtual/include/bcc/bpf.h", 30 #include "compat/linux/virtual_bpf.h" 31 }, 32 { 33 "/virtual/include/bcc/proto.h", 34 #include "export/proto.h" 35 }, 36 { 37 "/virtual/include/bcc/helpers.h", 38 #include "export/helpers.h" 39 }, 40 { 41 "/virtual/lib/clang/include/stdarg.h", 42 #include "clang/include/stdarg.h" 43 }, 44 }; 45 46 map<string, const char *> ExportedFiles::footers_ = { 47 { 48 "/virtual/include/bcc/footer.h", 49 #include "export/footer.h" 50 }, 51 }; 52 53 } 54