summaryrefslogtreecommitdiff
path: root/include/critical_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/critical_log.h')
-rw-r--r--include/critical_log.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/critical_log.h b/include/critical_log.h
new file mode 100644
index 0000000..070ac47
--- /dev/null
+++ b/include/critical_log.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.tizenopensource.org/license
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+extern int critical_log(const char *func, int line, const char *fmt, ...);
+extern int critical_log_init(const char *tag);
+extern int critical_log_fini(void);
+
+#define CRITICAL_LOG(args...) critical_log(__func__, __LINE__, args)
+
+/* End of a file */