summaryrefslogtreecommitdiff
path: root/navit/log.h
diff options
context:
space:
mode:
authorbustersnyvel <bustersnyvel@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-07-26 20:12:15 +0000
committerbustersnyvel <bustersnyvel@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-07-26 20:12:15 +0000
commit7f4c20f970181c4b11094b80b187d1320614c614 (patch)
tree717e0be9c6b14d548219afc3ebb0fd43db8087ce /navit/log.h
parenta5338112988943c1e5e2efa8bfd3ebbe02456556 (diff)
downloadnavit-7f4c20f970181c4b11094b80b187d1320614c614.tar.gz
add:core:GPX logs now include the current profile name of the logging vehicle
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2405 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/log.h')
-rw-r--r--navit/log.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/navit/log.h b/navit/log.h
index f17e90c8e..edb4433f2 100644
--- a/navit/log.h
+++ b/navit/log.h
@@ -30,5 +30,14 @@ void log_set_header(struct log *this_, char *data, int len);
void log_set_trailer(struct log *this_, char *data, int len);
void log_write(struct log *this_, char *data, int len);
void log_destroy(struct log *this_);
+
+#define LOG_BUFFER_SIZE 256
+/**
+ * printf-style writing to the log file. A buffer of LOG_BUFFER_SIZE
+ * bytes is preallocated for the complete format message, longer
+ * messages will be truncated.
+ */
+void log_printf(struct log *this_, char *fmt, ...);
+
/* end of prototypes */
#endif