summaryrefslogtreecommitdiffstats
path: root/lib/clippy.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-08-09 19:11:53 +0200
committerDavid Lamparter <equinox@diac24.net>2021-02-23 16:56:58 +0100
commit5609b3af497c44d980aad2bc7d6332dedd7974e7 (patch)
tree132a58bfe8ba5f582cddd9e0fe7625b5abb8da01 /lib/clippy.h
parentMerge pull request #7435 from sudhanshukumar22/bgp-peer-group-issue (diff)
downloadfrr-5609b3af497c44d980aad2bc7d6332dedd7974e7.tar.xz
frr-5609b3af497c44d980aad2bc7d6332dedd7974e7.zip
lib/clippy: add libelf wrapper
This adds _clippy.ELFFile, which provides a fast wrapper around libelf. The API is similar to / a subset of pyelfutils, which unfortunately is painfully slow (to the tune of minutes instead of seconds.) The idea is that xrefs can be read out of ELF files by reading out the "xref_array" section or "FRRouting/XREF" note. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/clippy.h')
-rw-r--r--lib/clippy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/clippy.h b/lib/clippy.h
index be4db6e63..95af27410 100644
--- a/lib/clippy.h
+++ b/lib/clippy.h
@@ -20,6 +20,7 @@
#ifndef _FRR_CLIPPY_H
#define _FRR_CLIPPY_H
+#include <stdbool.h>
#include <Python.h>
#ifdef __cplusplus
@@ -28,6 +29,7 @@ extern "C" {
extern PyObject *clippy_parse(PyObject *self, PyObject *args);
extern PyMODINIT_FUNC command_py_init(void);
+extern bool elf_py_init(PyObject *pymod);
#ifdef __cplusplus
}