Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added License headers #18

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

use std::env::var;

fn main() {
Expand Down
16 changes: 16 additions & 0 deletions demo/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

use std::env;
use std::path::PathBuf;

Expand Down
16 changes: 16 additions & 0 deletions demo/src/ecal_rs.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

/// topic: /kpns/test/ping
#[derive(Clone, PartialEq, ::prost::Message, ecal::Message)]
#[type_prefix = "kpns_msgs."]
Expand Down
16 changes: 16 additions & 0 deletions demo/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

use anyhow::Result;
use clap::Parser;
use std::sync::{
Expand Down
16 changes: 16 additions & 0 deletions ecal-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

extern crate proc_macro;

use proc_macro::TokenStream;
Expand Down
16 changes: 16 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

use anyhow::Result;
use std::{
env, ffi,
Expand Down
16 changes: 16 additions & 0 deletions src/sys.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (c) 2024 Kopernikus Automotive
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/

#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(non_snake_case)]
Expand Down Expand Up @@ -592,7 +608,7 @@
concat!("Alignment of ", stringify!(SReceiveCallbackDataC))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SReceiveCallbackDataC>())).buf as *const _ as usize },

Check warning on line 611 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 611 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 611 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
0usize,
concat!(
"Offset of field: ",
Expand All @@ -602,7 +618,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SReceiveCallbackDataC>())).size as *const _ as usize },

Check warning on line 621 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 621 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 621 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
8usize,
concat!(
"Offset of field: ",
Expand All @@ -612,7 +628,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SReceiveCallbackDataC>())).id as *const _ as usize },

Check warning on line 631 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 631 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 631 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
16usize,
concat!(
"Offset of field: ",
Expand All @@ -622,7 +638,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SReceiveCallbackDataC>())).time as *const _ as usize },

Check warning on line 641 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 641 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 641 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
24usize,
concat!(
"Offset of field: ",
Expand All @@ -632,7 +648,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SReceiveCallbackDataC>())).clock as *const _ as usize },

Check warning on line 651 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 651 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 651 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
32usize,
concat!(
"Offset of field: ",
Expand Down Expand Up @@ -688,7 +704,7 @@
concat!("Alignment of ", stringify!(SPubEventCallbackDataC))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SPubEventCallbackDataC>())).type_ as *const _ as usize },

Check warning on line 707 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 707 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 707 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
0usize,
concat!(
"Offset of field: ",
Expand All @@ -698,7 +714,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SPubEventCallbackDataC>())).time as *const _ as usize },

Check warning on line 717 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 717 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 717 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
8usize,
concat!(
"Offset of field: ",
Expand All @@ -708,7 +724,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SPubEventCallbackDataC>())).clock as *const _ as usize },

Check warning on line 727 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 727 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 727 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
16usize,
concat!(
"Offset of field: ",
Expand Down Expand Up @@ -747,7 +763,7 @@
concat!("Alignment of ", stringify!(SSubEventCallbackDataC))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SSubEventCallbackDataC>())).type_ as *const _ as usize },

Check warning on line 766 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 766 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 766 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
0usize,
concat!(
"Offset of field: ",
Expand All @@ -757,7 +773,7 @@
)
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<SSubEventCallbackDataC>())).time as *const _ as usize },

Check warning on line 776 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 776 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer

Check warning on line 776 in src/sys.rs

View workflow job for this annotation

GitHub Actions / Test

dereferencing a null pointer
8usize,
concat!(
"Offset of field: ",
Expand Down
Loading