]> gitweb.hhaalo.de Git - discspan.git/commitdiff
add: extern c in header for cplusplus
authorBastian Dehn <hhaalo@arcor.de>
Fri, 3 Sep 2021 19:59:05 +0000 (21:59 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 3 Sep 2021 20:26:31 +0000 (22:26 +0200)
libs/spandisc/include/config_spandisc.h.in
libs/spandisc/include/filehandler.h
libs/spandisc/include/libspandisc.h
libs/spandisc/include/logic.h
libs/spandisc/include/spandisc.h
libs/spandisc/include/splitter.h
src/config_discspan.h.in
src/help.h

index e4f520991c7e30254aba35d99cbef4c031e80660..c02de9aec1cbbca953dedd89ffd5b5a30b5c3a45 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef CONFIG_SPANDISC_IN_H
 #define CONFIG_SPANDISC_IN_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define SPANDISC_VERSION "@PROJECT_VERSION@"
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index 6502170ee497124cc53e4d625edebf664784b88e..17688f0fd87f6026069d3a1726913aa55dbf99ab 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _FILEHANDLER_H
 #define _FILEHANDLER_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Read a text file with file pathes into medium_t struct
  *
@@ -17,4 +21,8 @@ void read_input_file(const char *input, medium_t *srcdata);
  */
 void write_output_file(const char *output, medium_t disc);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index f106a19289b473bb9a0a54ac648a40c70c676a3d..443ed1e88a269163d0b0ab123cba66f094e75107 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _LIBSPANDISC_H
 #define _LIBSPANDISC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 // contains struct types
 #include "spandisc.h"
 // contains spanning logic with read and write file
@@ -10,4 +14,8 @@
 // contains splitting logic
 #include "splitter.h"
 
+#ifdef __cpluscplus
+}
+#endif
+
 #endif
index 40b70f621e352b8e68e1060c36a842e452057c83..7a910181508cb851e6dbb86bc441ee3902d51ef1 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _LOGIC_H
 #define _LOGIC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 const char *get_version();
 
 /**
@@ -24,4 +28,8 @@ extern status_print_t status_print;
  */
 void span(const char *input, const char *output, unsigned long long split);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index 244ee166a4e67ccbc700994709e4c223e68e9ab3..a074299d0f9e8f0d630ad4014ba3c47de553faae 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _SPANDISC_H
 #define _SPANDISC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef struct {
        char name[255];
        unsigned long long fsize;
@@ -19,4 +23,8 @@ typedef struct {
        medium_t *disc;
 } collection_t;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index ca834de3a58fd955107b80db141d1ddb33c35f43..9e12460a232de453fe4473b94591f4de6b011527 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef _SPLITTER_H
 #define _SPLITTER_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void free_medium(medium_t *medium);
 void free_collection(collection_t *col);
 
@@ -31,4 +35,8 @@ medium_t ignore(medium_t *srcdata);
  */
 collection_t split_all(medium_t *srcdata);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index de925014abe34f52923f4192f91d2ac4bf4ebf8a..5b839d4f117d6a04351f9229fa47c2f30aa60d71 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef CONFIG_DISCSPAN_IN_H
 #define CONFIG_DISCSPAN_IN_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define DISCSPAN_VERSION "@PROJECT_VERSION@"
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif
index 5744339ba77071831c77401ee9d0658412ea75eb..8aafb19b755ff573cbabf2238bdcbbc6226b5606 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef _HELP_H
 #define _HELP_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void useage();
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif