novi upstream verzije 2.8.3
[ossec-hids.git] / src / headers / custom_output_search.h
diff --git a/src/headers/custom_output_search.h b/src/headers/custom_output_search.h
new file mode 100644 (file)
index 0000000..a5af2a9
--- /dev/null
@@ -0,0 +1,77 @@
+/*
+ * 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
+ */
+
+#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
+ */
+
+#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_ */