diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-11-11 17:10:02 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-06-14 19:29:23 +0200 |
commit | 29ad6f6882de5a871d6d81c609e8b20d825d6138 (patch) | |
tree | 99278b998ec54ea564526fc9d9e4a5de32be1e0b /lib/clippy.h | |
parent | build: fix some cross-compilation issues (diff) | |
download | frr-29ad6f6882de5a871d6d81c609e8b20d825d6138.tar.xz frr-29ad6f6882de5a871d6d81c609e8b20d825d6138.zip |
lib: clippy the assistant
Wraps the command parsing code for Python, so we can use it to do fancy
preprocessing and replace extract.pl.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/clippy.h')
-rw-r--r-- | lib/clippy.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/clippy.h b/lib/clippy.h new file mode 100644 index 000000000..8df98cbb8 --- /dev/null +++ b/lib/clippy.h @@ -0,0 +1,28 @@ +/* + * clippy (CLI preparator in python) + * Copyright (C) 2016-2017 David Lamparter for NetDEF, Inc. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _FRR_CLIPPY_H +#define _FRR_CLIPPY_H + +#include <Python.h> + +extern PyObject *clippy_parse(PyObject *self, PyObject *args); +extern PyMODINIT_FUNC command_py_init(void); + +#endif /* _FRR_CLIPPY_H */ |