blob: 6460d015d05cb29623d31b64a27a79b3fe202456 [file] [log] [blame]
Upstreamcc2ee171970-01-12 13:46:40 +00001/**
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
18using namespace std;
19
20int 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}