1193326Sed/* Plugin support for BFD.
2193326Sed   Copyright (C) 2009-2017 Free Software Foundation, Inc.
3193326Sed
4193326Sed   This file is part of BFD, the Binary File Descriptor library.
5193326Sed
6193326Sed   This program is free software; you can redistribute it and/or modify
7193326Sed   it under the terms of the GNU General Public License as published by
8193326Sed   the Free Software Foundation; either version 3 of the License, or
9239462Sdim   (at your option) any later version.
10239462Sdim
11239462Sdim   This program is distributed in the hope that it will be useful,
12239462Sdim   but WITHOUT ANY WARRANTY; without even the implied warranty of
13193326Sed   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14193326Sed   GNU General Public License for more details.
15212904Sdim
16249423Sdim   You should have received a copy of the GNU General Public License
17198092Srdivacky   along with this program; if not, write to the Free Software
18249423Sdim   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19234353Sdim   MA 02110-1301, USA.  */
20212904Sdim
21249423Sdim#ifndef _PLUGIN_H_
22193326Sed#define _PLUGIN_H_
23210299Sed
24204643Srdivackyvoid bfd_plugin_set_program_name (const char *);
25198092Srdivackyint bfd_plugin_open_input (bfd *, struct ld_plugin_input_file *);
26198092Srdivackyvoid bfd_plugin_set_plugin (const char *);
27198092Srdivackybfd_boolean bfd_plugin_target_p (const bfd_target *);
28249423Sdimbfd_boolean bfd_plugin_specified_p (void);
29249423Sdimbfd_boolean bfd_link_plugin_object_p (bfd *);
30249423Sdimvoid register_ld_plugin_object_p (const bfd_target *(*object_p) (bfd *));
31249423Sdim
32249423Sdimtypedef struct plugin_data_struct
33249423Sdim{
34249423Sdim  int nsyms;
35234353Sdim  const struct ld_plugin_symbol *syms;
36193326Sed}
37221345Sdimplugin_data_struct;
38193326Sed
39212904Sdim#endif
40193326Sed