diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-04 09:42:14 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 09:39:43 +0200 |
commit | 62e96a3535714088a5dabe3cb4a8523165b19877 (patch) | |
tree | 14be557e47f903a506624a50ba11d58b41687181 /src/pcu_vty_functions.cpp | |
parent | a700dd9e11d31805cfe8dd07fc27ac96425cbf0c (diff) |
vty: Add a file for C++ functions
Currently the pcu_vty.c doesn't compile with C++. Thus C++ object
cannot be access directly there.
This commit adds a helper C++ file that exports all functions with C
calling conventions and naming to work around that limitation until
the transition of pcu_vty.c is completed.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_vty_functions.cpp')
-rw-r--r-- | src/pcu_vty_functions.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp new file mode 100644 index 00000000..b43e3e47 --- /dev/null +++ b/src/pcu_vty_functions.cpp @@ -0,0 +1,36 @@ +/* pcu_vty_functions.cpp + * + * Copyright (C) 2015 by Sysmocom s.f.m.c. GmbH + * Author: Jacob Erlbeck <jerlbeck@sysmocom.de> + * + * 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; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ +/* OsmoBTS VTY interface */ + + +#include <stdint.h> +#include <stdlib.h> +#include "pcu_vty_functions.h" + +extern "C" { +# include <osmocom/vty/command.h> +# include <osmocom/vty/logging.h> +# include <osmocom/vty/misc.h> +} + +int pcu_vty_config_write_pcu_ext(struct vty *vty) +{ + return CMD_SUCCESS; +} |