Upstream | cc2ee17 | 1970-01-12 13:46:40 +0000 | [diff] [blame^] | 1 | /** |
| 2 | * @file op_abi.cpp |
| 3 | * This file contains a simple C interface to the ABI-describing functionality, |
| 4 | * the majority of which is implemented in C++. this is the file which is |
| 5 | * intended for use in files outside the /libabi directory. |
| 6 | * |
| 7 | * @remark Copyright 2002 OProfile authors |
| 8 | * @remark Read the file COPYING |
| 9 | * |
| 10 | * @author Graydon Hoare |
| 11 | */ |
| 12 | |
| 13 | #include "op_abi.h" |
| 14 | #include "abi.h" |
| 15 | |
| 16 | #include <fstream> |
| 17 | |
| 18 | using namespace std; |
| 19 | |
| 20 | int op_write_abi_to_file(char const * abi_file) |
| 21 | { |
| 22 | ofstream file(abi_file); |
| 23 | if (!file) |
| 24 | return 0; |
| 25 | |
| 26 | abi curr; |
| 27 | file << curr; |
| 28 | |
| 29 | return 1; |
| 30 | } |