Skip to content
This repository
Newer
Older
100644 16 lines (13 sloc) 0.432 kb
fa28f9e9 »
2012-04-08 Tag types system is now in place and integrated
1 #ifndef _LOG_H_
2 #define _LOG_H_
3 #include <stdio.h>
4
5 // macro to log fields in structs.
6 #define log_struct(st, field, format, typecast) \
7 log_msg(" " #field " = " #format "\n", typecast st->field)
8
9 FILE *log_open(const char *name);
10 void log_fi (struct fuse_file_info *fi);
11 void log_stat(struct stat *si);
12 void log_statvfs(struct statvfs *sv);
13 void log_utime(struct utimbuf *buf);
14
15 void log_msg(const char *format, ...);
16 #endif
Something went wrong with that request. Please try again.