new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / headers / custom_output_search.h
index a5af2a9..b803583 100644 (file)
@@ -1,77 +1,15 @@
-/*
- * custom_output_search.h
- *
- *  Created on: 10/10/2012
- *      Author: crosa
- */
-
-#ifndef CUSTOM_OUTPUT_SEARCH_H_
-#define CUSTOM_OUTPUT_SEARCH_H_
-/** char *searchAndReplace(char* orig, char* search, char*value)
- *  Searchs for 'search' on orig's string and replaces it by value.
- *  Returns NULL on error, otherwise returns the orig string with the replacements.
- */
-char * searchAndReplace(char* orig, char* search, char*value);
-
-/** char* escape_newlines(char *orig);
- * Escape the newlines characters
- * Returns NULL on error, otherwise returns a new allocated string.
- */
-char* escape_newlines(char *orig);
-
-
-#endif /* CUSTOM_OUTPUT_SEARCH_H_ */
-/*
- * custom_output_search.h
- *
- *  Created on: 10/10/2012
- *      Author: crosa
- */
-
 #ifndef CUSTOM_OUTPUT_SEARCH_H_
 #define CUSTOM_OUTPUT_SEARCH_H_
-/** char *searchAndReplace(char* orig, char* search, char*value)
- *  Searchs for 'search' on orig's string and replaces it by value.
- *  Returns NULL on error, otherwise returns the orig string with the replacements.
- */
-char * searchAndReplace(char* orig, char* search, char*value);
-
 
-
-#endif /* CUSTOM_OUTPUT_SEARCH_H_ */
-/*
- * custom_output_search.h
- *
- *  Created on: 10/10/2012
- *      Author: crosa
+/* Search for 'search' in string and replaces it by value
+ * Returns NULL on error, otherwise returns the orig string with the replacements
  */
+char *searchAndReplace(const char *orig, const char *search, const char *value) __attribute__((nonnull));
 
-#ifndef CUSTOM_OUTPUT_SEARCH_H_
-#define CUSTOM_OUTPUT_SEARCH_H_
-/** char *searchAndReplace(char* orig, char* search, char*value)
- *  Searchs for 'search' on orig's string and replaces it by value.
- *  Returns NULL on error, otherwise returns the orig string with the replacements.
+/* Escape the newline characters
+ * Returns NULL on error, otherwise returns a newly allocated string
  */
-char * searchAndReplace(char* orig, char* search, char*value);
-
-
+char *escape_newlines(const char *orig) __attribute__((nonnull));
 
 #endif /* CUSTOM_OUTPUT_SEARCH_H_ */
-/*
- * custom_output_search.h
- *
- *  Created on: 10/10/2012
- *      Author: crosa
- */
 
-#ifndef CUSTOM_OUTPUT_SEARCH_H_
-#define CUSTOM_OUTPUT_SEARCH_H_
-/** char *searchAndReplace(char* orig, char* search, char*value)
- *  Searchs for 'search' on orig's string and replaces it by value.
- *  Returns NULL on error, otherwise returns the orig string with the replacements.
- */
-char * searchAndReplace(char* orig, char* search, char*value);
-
-
-
-#endif /* CUSTOM_OUTPUT_SEARCH_H_ */