From 9594ddced3666272e6bcc6afed81bbceadd1157d Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sat, 6 May 2017 08:27:47 -0700 Subject: [PATCH] Update license --- LICENSE | 2 +- include/cppkafka/buffer.h | 2 +- include/cppkafka/clonable_ptr.h | 2 +- include/cppkafka/configuration.h | 2 +- include/cppkafka/configuration_base.h | 2 +- include/cppkafka/configuration_option.h | 2 +- include/cppkafka/consumer.h | 2 +- include/cppkafka/error.h | 2 +- include/cppkafka/exceptions.h | 2 +- include/cppkafka/kafka_handle_base.h | 2 +- include/cppkafka/macros.h | 2 +- include/cppkafka/message.h | 2 +- include/cppkafka/message_builder.h | 2 +- include/cppkafka/metadata.h | 2 +- include/cppkafka/producer.h | 2 +- include/cppkafka/topic.h | 2 +- include/cppkafka/topic_configuration.h | 2 +- include/cppkafka/topic_partition.h | 2 +- include/cppkafka/topic_partition_list.h | 2 +- include/cppkafka/utils/buffered_producer.h | 29 +++++++++++++++++++ .../utils/compacted_topic_processor.h | 2 +- src/buffer.cpp | 2 +- src/configuration.cpp | 2 +- src/configuration_option.cpp | 2 +- src/consumer.cpp | 2 +- src/error.cpp | 2 +- src/exceptions.cpp | 2 +- src/kafka_handle_base.cpp | 2 +- src/message.cpp | 2 +- src/metadata.cpp | 2 +- src/producer.cpp | 2 +- src/topic.cpp | 2 +- src/topic_configuration.cpp | 2 +- src/topic_partition.cpp | 2 +- src/topic_partition_list.cpp | 2 +- 35 files changed, 63 insertions(+), 34 deletions(-) diff --git a/LICENSE b/LICENSE index b671a89..469d79c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2012-2014, Matias Fontanini +Copyright (c) 2016-2017, Matias Fontanini All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/buffer.h b/include/cppkafka/buffer.h index da831f9..f5b97d6 100644 --- a/include/cppkafka/buffer.h +++ b/include/cppkafka/buffer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/clonable_ptr.h b/include/cppkafka/clonable_ptr.h index da865a7..842e308 100644 --- a/include/cppkafka/clonable_ptr.h +++ b/include/cppkafka/clonable_ptr.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/configuration.h b/include/cppkafka/configuration.h index 2c904de..cb466ae 100644 --- a/include/cppkafka/configuration.h +++ b/include/cppkafka/configuration.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/configuration_base.h b/include/cppkafka/configuration_base.h index b3b08fb..d5c261f 100644 --- a/include/cppkafka/configuration_base.h +++ b/include/cppkafka/configuration_base.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/configuration_option.h b/include/cppkafka/configuration_option.h index 66205fc..dc12433 100644 --- a/include/cppkafka/configuration_option.h +++ b/include/cppkafka/configuration_option.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/consumer.h b/include/cppkafka/consumer.h index 97036ac..a6b1920 100644 --- a/include/cppkafka/consumer.h +++ b/include/cppkafka/consumer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/error.h b/include/cppkafka/error.h index 1165dba..626bd46 100644 --- a/include/cppkafka/error.h +++ b/include/cppkafka/error.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/exceptions.h b/include/cppkafka/exceptions.h index a480727..e159996 100644 --- a/include/cppkafka/exceptions.h +++ b/include/cppkafka/exceptions.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/kafka_handle_base.h b/include/cppkafka/kafka_handle_base.h index c61e67b..cf981e2 100644 --- a/include/cppkafka/kafka_handle_base.h +++ b/include/cppkafka/kafka_handle_base.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/macros.h b/include/cppkafka/macros.h index 56f2bd8..d69e259 100644 --- a/include/cppkafka/macros.h +++ b/include/cppkafka/macros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/message.h b/include/cppkafka/message.h index dc0ae10..18fa1a2 100644 --- a/include/cppkafka/message.h +++ b/include/cppkafka/message.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/message_builder.h b/include/cppkafka/message_builder.h index a28f5f9..a14fa03 100644 --- a/include/cppkafka/message_builder.h +++ b/include/cppkafka/message_builder.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/metadata.h b/include/cppkafka/metadata.h index fdea17b..6dacf80 100644 --- a/include/cppkafka/metadata.h +++ b/include/cppkafka/metadata.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/producer.h b/include/cppkafka/producer.h index 075a67e..d551dac 100644 --- a/include/cppkafka/producer.h +++ b/include/cppkafka/producer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/topic.h b/include/cppkafka/topic.h index 83f08fd..3eb972d 100644 --- a/include/cppkafka/topic.h +++ b/include/cppkafka/topic.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/topic_configuration.h b/include/cppkafka/topic_configuration.h index 41cd059..4c5fbeb 100644 --- a/include/cppkafka/topic_configuration.h +++ b/include/cppkafka/topic_configuration.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/topic_partition.h b/include/cppkafka/topic_partition.h index bfddd61..f9c41fd 100644 --- a/include/cppkafka/topic_partition.h +++ b/include/cppkafka/topic_partition.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/topic_partition_list.h b/include/cppkafka/topic_partition_list.h index 12b6d03..4e704d8 100644 --- a/include/cppkafka/topic_partition_list.h +++ b/include/cppkafka/topic_partition_list.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/include/cppkafka/utils/buffered_producer.h b/include/cppkafka/utils/buffered_producer.h index b703b91..775440f 100644 --- a/include/cppkafka/utils/buffered_producer.h +++ b/include/cppkafka/utils/buffered_producer.h @@ -1,3 +1,32 @@ +/* + * Copyright (c) 2017, Matias Fontanini + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ + #ifndef CPPKAFKA_BUFFERED_PRODUCER_H #define CPPKAFKA_BUFFERED_PRODUCER_H diff --git a/include/cppkafka/utils/compacted_topic_processor.h b/include/cppkafka/utils/compacted_topic_processor.h index 05eaa60..f714950 100644 --- a/include/cppkafka/utils/compacted_topic_processor.h +++ b/include/cppkafka/utils/compacted_topic_processor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/buffer.cpp b/src/buffer.cpp index a0fbded..164abe2 100644 --- a/src/buffer.cpp +++ b/src/buffer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/configuration.cpp b/src/configuration.cpp index 5f6c27d..8f574b1 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/configuration_option.cpp b/src/configuration_option.cpp index 926130d..f57793c 100644 --- a/src/configuration_option.cpp +++ b/src/configuration_option.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/consumer.cpp b/src/consumer.cpp index 2152685..3078834 100644 --- a/src/consumer.cpp +++ b/src/consumer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/error.cpp b/src/error.cpp index d2479e9..139c96f 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/exceptions.cpp b/src/exceptions.cpp index bdc178e..ec0d778 100644 --- a/src/exceptions.cpp +++ b/src/exceptions.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/kafka_handle_base.cpp b/src/kafka_handle_base.cpp index eea5e38..7890b1e 100644 --- a/src/kafka_handle_base.cpp +++ b/src/kafka_handle_base.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/message.cpp b/src/message.cpp index 9c42c57..605613a 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/metadata.cpp b/src/metadata.cpp index 93e9260..e47765d 100644 --- a/src/metadata.cpp +++ b/src/metadata.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/producer.cpp b/src/producer.cpp index ba65fe7..e091cd3 100644 --- a/src/producer.cpp +++ b/src/producer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/topic.cpp b/src/topic.cpp index f291e0c..efadb16 100644 --- a/src/topic.cpp +++ b/src/topic.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/topic_configuration.cpp b/src/topic_configuration.cpp index e95acfc..9db0a01 100644 --- a/src/topic_configuration.cpp +++ b/src/topic_configuration.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/topic_partition.cpp b/src/topic_partition.cpp index 82f8865..e6dfbfc 100644 --- a/src/topic_partition.cpp +++ b/src/topic_partition.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/topic_partition_list.cpp b/src/topic_partition_list.cpp index 2fcae88..4971b8a 100644 --- a/src/topic_partition_list.cpp +++ b/src/topic_partition_list.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Matias Fontanini + * Copyright (c) 2017, Matias Fontanini * All rights reserved. * * Redistribution and use in source and binary forms, with or without