mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 22:35:33 +00:00
criu: pie,log -- Prepate to move into compel std plugin
- Add uapi header and start using it - Add std_ prefix into functions and constants - Drop unneeded headers travis-ci: success for compel: The final infect move and install target Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
committed by
Andrei Vagin
parent
b46e5ec118
commit
387361946e
14
compel/plugins/include/uapi/std/log.h
Normal file
14
compel/plugins/include/uapi/std/log.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef COMPEL_PLUGIN_STD_LOG_H__
|
||||
#define COMPEL_PLUGIN_STD_LOG_H__
|
||||
|
||||
#define STD_LOG_SIMPLE_CHUNK 79
|
||||
|
||||
extern void std_log_set_fd(int fd);
|
||||
extern void std_log_set_loglevel(unsigned int level);
|
||||
extern int std_vprint_num(char *buf, int blen, int num, char **ps);
|
||||
extern void std_sprintf(char output[STD_LOG_SIMPLE_CHUNK], const char *format, ...)
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
extern void print_on_level(unsigned int loglevel, const char *format, ...)
|
||||
__attribute__ ((__format__ (__printf__, 2, 3)));
|
||||
|
||||
#endif /* COMPEL_PLUGIN_STD_LOG_H__ */
|
Reference in New Issue
Block a user