]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/seqlock.h
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / lib / seqlock.h
index b551e3ffc4dad1c78fbd9612fe5465128a127498..01735814fbf957ded8a6fd6b4695957254b4f803 100644 (file)
@@ -1,22 +1,8 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
 /*
  * "Sequence" lock primitive
  *
  * Copyright (C) 2015  David Lamparter <equinox@diac24.net>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA  02110-1301  USA
  */
 
 #ifndef _SEQLOCK_H
 #include <pthread.h>
 #include "frratomic.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
  * this locking primitive is intended to use in a 1:N setup.
  *
@@ -135,4 +125,8 @@ extern void seqlock_release(struct seqlock *sqlo);
  * anything other than reading RCU items was done
  */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _SEQLOCK_H */