mirror of
https://github.com/eclipse/upm.git
synced 2025-10-30 06:34:58 +03:00
cpp_headers: Renamed C++ headers from .h -> .hpp
To make room for UPM C and C++ sensor code to coexist, all UPM
C++ headers have been renamed from h -> hpp. This commit contains
updates to documentation, includes, cmake collateral, examples, and
swig interface files.
* Renamed all cxx/cpp header files which contain the string
'copyright intel' from .h -> .hpp (if not already hpp).
* Replaced all references to .h with .hpp in documentation,
source files, cmake collateral, example code, and swig interface
files.
* Replaced cmake variable module_h with module_hpp.
* Intentionally left upm.h since this file currently does not
contain code (documentation only).
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
set (libname "my9221")
|
||||
set (libdescription "upm my9221")
|
||||
set (module_src ${libname}.cxx groveledbar.cxx grovecircularled.cxx)
|
||||
set (module_h ${libname}.h groveledbar.h grovecircularled.h)
|
||||
set (module_hpp ${libname}.hpp groveledbar.hpp grovecircularled.hpp)
|
||||
upm_module_init()
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "grovecircularled.h"
|
||||
#include "grovecircularled.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
#include <string>
|
||||
#include <mraa/common.hpp>
|
||||
#include <mraa/gpio.hpp>
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
|
||||
namespace upm {
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "groveledbar.h"
|
||||
#include "groveledbar.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include <mraa/common.hpp>
|
||||
#include <mraa/gpio.hpp>
|
||||
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
|
||||
namespace upm {
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
%module javaupm_my9221
|
||||
%include "../upm.i"
|
||||
|
||||
%include "my9221.h"
|
||||
%include "my9221.hpp"
|
||||
%{
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
%}
|
||||
|
||||
%include "groveledbar.h"
|
||||
%include "groveledbar.hpp"
|
||||
%{
|
||||
#include "groveledbar.h"
|
||||
#include "groveledbar.hpp"
|
||||
%}
|
||||
|
||||
%include "grovecircularled.h"
|
||||
%include "grovecircularled.hpp"
|
||||
%{
|
||||
#include "grovecircularled.h"
|
||||
#include "grovecircularled.hpp"
|
||||
%}
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
%module jsupm_my9221
|
||||
%include "../upm.i"
|
||||
|
||||
%include "my9221.h"
|
||||
%include "my9221.hpp"
|
||||
%{
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
%}
|
||||
|
||||
%include "groveledbar.h"
|
||||
%include "groveledbar.hpp"
|
||||
%{
|
||||
#include "groveledbar.h"
|
||||
#include "groveledbar.hpp"
|
||||
%}
|
||||
|
||||
%include "grovecircularled.h"
|
||||
%include "grovecircularled.hpp"
|
||||
%{
|
||||
#include "grovecircularled.h"
|
||||
#include "grovecircularled.hpp"
|
||||
%}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%include "my9221.h"
|
||||
%include "my9221.hpp"
|
||||
%{
|
||||
#include "my9221.h"
|
||||
#include "my9221.hpp"
|
||||
%}
|
||||
|
||||
%include "groveledbar.h"
|
||||
%include "groveledbar.hpp"
|
||||
%{
|
||||
#include "groveledbar.h"
|
||||
#include "groveledbar.hpp"
|
||||
%}
|
||||
|
||||
%include "grovecircularled.h"
|
||||
%include "grovecircularled.hpp"
|
||||
%{
|
||||
#include "grovecircularled.h"
|
||||
#include "grovecircularled.hpp"
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user