summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt6
-rw-r--r--examples/example-ae.c6
-rw-r--r--examples/example-glib.c6
-rw-r--r--examples/example-ivykis.c6
-rw-r--r--examples/example-libev.c6
-rw-r--r--examples/example-libevent-ssl.c6
-rw-r--r--examples/example-libevent.c6
-rw-r--r--examples/example-libhv.c6
-rw-r--r--examples/example-libsdevent.c6
-rw-r--r--examples/example-libuv.c6
-rw-r--r--examples/example-macosx.c7
-rw-r--r--examples/example-poll.c6
-rw-r--r--examples/example-push.c37
-rw-r--r--examples/example-qt.cpp6
-rw-r--r--examples/example-qt.h6
-rw-r--r--examples/example-redismoduleapi.c6
-rw-r--r--examples/example-ssl.c6
-rw-r--r--examples/example.c6
18 files changed, 109 insertions, 31 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 214898b..e1c693b 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,3 +1,9 @@
+# SPDX-FileCopyrightText: 2024 Hiredict Contributors
+# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+#
+# SPDX-License-Identifier: BSD-3-Clause
+# SPDX-License-Identifier: LGPL-3.0-or-later
+
INCLUDE(FindPkgConfig)
# Check for GLib
diff --git a/examples/example-ae.c b/examples/example-ae.c
index 8efa730..838a967 100644
--- a/examples/example-ae.c
+++ b/examples/example-ae.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-glib.c b/examples/example-glib.c
index d6e10f8..eea9acc 100644
--- a/examples/example-glib.c
+++ b/examples/example-glib.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdlib.h>
#include <hiredis.h>
diff --git a/examples/example-ivykis.c b/examples/example-ivykis.c
index f57dc38..a581e02 100644
--- a/examples/example-ivykis.c
+++ b/examples/example-ivykis.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libev.c b/examples/example-libev.c
index ec47430..cc6d27f 100644
--- a/examples/example-libev.c
+++ b/examples/example-libev.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libevent-ssl.c b/examples/example-libevent-ssl.c
index d0998ba..99f8ebf 100644
--- a/examples/example-libevent-ssl.c
+++ b/examples/example-libevent-ssl.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libevent.c b/examples/example-libevent.c
index 49bddd0..d0d3c79 100644
--- a/examples/example-libevent.c
+++ b/examples/example-libevent.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libhv.c b/examples/example-libhv.c
index ac68b00..a69f236 100644
--- a/examples/example-libhv.c
+++ b/examples/example-libhv.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libsdevent.c b/examples/example-libsdevent.c
index c3b902b..adc54f9 100644
--- a/examples/example-libsdevent.c
+++ b/examples/example-libsdevent.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-libuv.c b/examples/example-libuv.c
index 53fd04a..b92a29f 100644
--- a/examples/example-libuv.c
+++ b/examples/example-libuv.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-macosx.c b/examples/example-macosx.c
index bc84ed5..9e85627 100644
--- a/examples/example-macosx.c
+++ b/examples/example-macosx.c
@@ -1,7 +1,10 @@
+// Copyright (c) 2015 Dmitry Bakhvalov
//
-// Created by Дмитрий Бахвалов on 13.07.15.
-// Copyright (c) 2015 Dmitry Bakhvalov. All rights reserved.
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Dmitry Bakhvalov
//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
#include <stdio.h>
diff --git a/examples/example-poll.c b/examples/example-poll.c
index 954673d..eb53659 100644
--- a/examples/example-poll.c
+++ b/examples/example-poll.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-push.c b/examples/example-push.c
index 6bc1205..2003bad 100644
--- a/examples/example-push.c
+++ b/examples/example-push.c
@@ -1,32 +1,11 @@
-/*
- * Copyright (c) 2020, Michael Grunder <michael dot grunder at gmail dot com>
- *
- * 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.
- * * Neither the name of Redis nor the names of its contributors may be used
- * to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * 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.
- */
+// Copyright (c) 2020, Michael Grunder <michael dot grunder at gmail dot com>
+//
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Michael Grunder <michael dot grunder at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-qt.cpp b/examples/example-qt.cpp
index f524c3f..9ed61e8 100644
--- a/examples/example-qt.cpp
+++ b/examples/example-qt.cpp
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <iostream>
using namespace std;
diff --git a/examples/example-qt.h b/examples/example-qt.h
index 374f476..31195ae 100644
--- a/examples/example-qt.h
+++ b/examples/example-qt.h
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#ifndef __HIREDIS_EXAMPLE_QT_H
#define __HIREDIS_EXAMPLE_QT_H
diff --git a/examples/example-redismoduleapi.c b/examples/example-redismoduleapi.c
index 7d12f8a..3bbbbc5 100644
--- a/examples/example-redismoduleapi.c
+++ b/examples/example-redismoduleapi.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example-ssl.c b/examples/example-ssl.c
index 6d1e32e..03cf556 100644
--- a/examples/example-ssl.c
+++ b/examples/example-ssl.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/example.c b/examples/example.c
index c0a9bb7..e2c1842 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -1,3 +1,9 @@
+// SPDX-FileCopyrightText: 2024 Hiredict Contributors
+// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
+//
+// SPDX-License-Identifier: BSD-3-Clause
+// SPDX-License-Identifier: LGPL-3.0-or-later
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>